Forums › ProRealTime English forum › ProOrder support › Automated trading with Pivot Points and Dojis › Reply To: Automated trading with Pivot Points and Dojis
05/24/2018 at 5:48 PM
#71279
Adding
1 2 3 4 5 |
GRAPH dojis2d GRAPH bullishs2d GRAPH ldbs2d GRAPH close GRAPH low[1] |
helped me to spot that ldbs2d is negative because it subtracts 2 from 1.14793. Try with line 84 replaced by
1 |
ldbs2d = low[1]-2*pipsize |
Now the trade you outlined will end at the closing of the candle with a closing price < low[1] (ProOrder will display a cross above the next bullish candlestick).