Hi, could somebody please explain what the following lines of coding mean:
if not longonmarket and buyc2 then
if range>SignalLargerThan*pointsize Then
buy lotsize contract at high-(range*.5) stop
and
if not shortonmarket and sellc2 then
if range>SignalLargerThan*pointsize Then
sellshort lotsize contract at low+(range*.5) stop
else
I think i get the most of it it’s just these parts i don’t understand… buy lotsize contract at high-(range*.5) stop
sellshort lotsize contract at low+(range*.5) stop
If i change the (range*.5) to (range*.0) i get different results… I’m trying to get my head around exactly how the code is executing trades on a backtest.