I want whenever the condition is ok it enterLong.
I have write:
protected overridevoid OnbarUpdate()
{ trade lastTrade= Performance.Alltrades[Performance.AllTrades.Count-1];
if (High [0]> High [1] && lastTrade.ProfitPoints >0)
enterLong,...
also I had thought to write:
if (High [0]> High [1] && lastTrade !=null && lastTrade.ProfitPoints >0)
enterLong....
These orders don't make error compiling but don't work as I want.
Thank you.

Comment