ATR(10) will default to whatever the default period is for the ATR indicator because you have nothing in []. The default is [14] and the (10) is where you would normally put what you want to calculate the ATR of so normally (close) or it defaults to close if there is nothing in (). So you are calculating the 14 period ATR based on the number 10. My guess is that where close would normally be used in the calculation it is replaced with the value 10.
It could be an interesting trend indicator or stop loss level though!
Thanks for that! What was used was a very big number, such as the price, and it gave great results because when I used it for my stop and target it was never hit – meaning that the trade was closed by the FLATAFTER statement, which turned out to give much better results than any stop and target that I found for this trend-following strategy.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue