Forums ProRealTime English forum ProOrder support BUY or SELL in the actual bar is possible? Reply To: BUY or SELL in the actual bar is possible?

#55099
Leo

I feel you upset SickBoySpain,

Your code will exclty work if you reduce the time frame by half and increase the period by 2.

Another possibility is to think more deep into the mathematics of code, you can know far in advance if the slope of your moving average will Change ist slope. (unless North Korea attacks Usa or something very strange in the bar will happend)

In any case, let us know if you get a profitable code in a so symple way.