Hi all
Can some one help provide code a stop order placing that if the previous candle was a bull one then an sell order will be placed 5 pips below market price and opposite if the previous candle was a bear candle?
Thanks
Ok worked it out – RE the candle – just want to know how you would do a stop order? Tried SELLSHORT 1 LOT AT MARKET + 4 but obviously not right
Think Ive got it –
BUY 1 LOT AT close+10 - will test it out
Right so get an equity curve like this. Take it the backtest isn’t that realistic on proreal?
You need to set STOP pending order, you were close the good syntax:
//long order
BUY 1 LOT AT close+10 STOP
//short order
SELLSHORT 1 LOT AT close-10 STOP
Keep in mind that pending orders need to be set at each candle (they always expire 1 bar later from the one where they were set).