Forums ProRealTime English forum ProOrder support Automated trading with Pivot Points and Dojis Reply To: Automated trading with Pivot Points and Dojis

#70288

So far the performance is not bad as you can see in the attached picture. But the exit strategy when hitting the next pivot line does still not work. It should have stopped out as soon as the candle in the red first circle of the first picture was touched, but the exit was made in the second red circle because of the end of the trading day. For example for the case when a doji forms within a range of 4 points next to the R1 line and is supposed to exit at the pivot line, the code looks like this:

And the second Problem is, that I’m not even sure if the trade is only triggered when the doji is within the range of +- 4 points, because when you take a look at picture number 3 I don’t understand why it sold 1 contract short. There is no pivot line close to it.

Is it because the code is not right?

 

Thank you so much for your help!!:)