[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy Code



PureBytes Links

Trading Reference Links


Hi Cameron,

Try setting up a variable like ShortFlag, and only take a trade when it is 
true. The ShortFlag variable will return false when your criteria is met and 
negate the next trade.

Variables: ShortFlag(True);

If (MarketPosition[1] = -1 and PositionProfit(1) < 0) and (MarketPosition[2] 
= -1 and PositionProfit(2) < 0) then ShortFlag = False;

If MarketPosition = 1 Then ShortFlag = True;

If ShortFlag = True Then Begin
blah, blah
End;