Forums › ProRealTime English forum › ProOrder support › Automated trading with Pivot Points and Dojis › Reply To: Automated trading with Pivot Points and Dojis
05/13/2018 at 5:40 PM
#70310
I change to code from “set target” to “exitshort” and “low crosses under pivot”. However, this is not exactly as I planned, because now the exit is triggered not immediatly but rather at the open of the new candle.
1 2 3 4 |
IF shortonmarket and low crosses under pivot then exitshort size contract at market ENDIF |
So apparently the Pivot lines must be identically with the Pivot lines from the chart since the exit is triggered as you can see in the picture.
Last but not least there is still the problem with the range. The program does not seem to recognise that condition.