Hi,
I am new to TradeStateion so please forgive me if I am barking up the wrong tree.
The code described at http://www.elitetrader.com/tr/index.cfm?s=17&t=74&p=5 (I must compliment Charlie on this e-book as it's fantastic for us newbees) seem a bit strange. In the long strategy why does the code after the "or" exist? Isn't this the same criteria as for the short trade? Similarly the code after the "or" in the short trade seems to be the same code as for opening a long position. I have surrounded the code I am questioning in "quotes" below. Would appreciate your comments.
IF Open of next bar > High of this
bar or "Open of next bar < Low of
this bar" then Buy next bar at
Close of this bar + Range
of this bar Stop;
IF Open of next bar < Low of this
bar or "Open of next bar > High of
this bar" then Sell next bar at
Close of this bar - Range
of this bar Stop;
I am new to TradeStateion so please forgive me if I am barking up the wrong tree.
The code described at http://www.elitetrader.com/tr/index.cfm?s=17&t=74&p=5 (I must compliment Charlie on this e-book as it's fantastic for us newbees) seem a bit strange. In the long strategy why does the code after the "or" exist? Isn't this the same criteria as for the short trade? Similarly the code after the "or" in the short trade seems to be the same code as for opening a long position. I have surrounded the code I am questioning in "quotes" below. Would appreciate your comments.
IF Open of next bar > High of this
bar or "Open of next bar < Low of
this bar" then Buy next bar at
Close of this bar + Range
of this bar Stop;
IF Open of next bar < Low of this
bar or "Open of next bar > High of
this bar" then Sell next bar at
Close of this bar - Range
of this bar Stop;