Hi Miner:

Have you gone through the Workshops in the Manual? They are quite helpful.

For your current question, it may be easiest to use your condition as an if criteria that must be passed before your enterLong can be activated.

if(my_long_condition == true)
{

enterLong();
}
// For Example

if(NumOpenLong < 3)
enterLong();

In other cases, it may be appropriate to use the Phantom features of Zorro as described in the manual if that is more along the lines of what you need

// suspend trading after 4 losses in a row
if(LossStreakShort >= 4 || LossStreakLong >= 4)
setf(TradeMode,TR_PHANTOM); // phantom trades
else
resf(TradeMode,TR_PHANTOM); // normal trading



Last edited by OptimusPrime; 12/16/18 06:46.

Thanks so much,

OptimusPrime