ATR STOP AND ATR TARGET

Forums ProRealTime English forum ProOrder support ATR STOP AND ATR TARGET

Viewing 7 posts - 1 through 7 (of 7 total)
  • #15612

    Dear all, I have tested all kind of coding regarding the ATR stop and ATR limit without success. I have follwoed earlier forum discussions but it wont work. I show my code and would appreciate if someone could comment!

    This is for backtesting;

     

    Best regards

    Johan

    #15615

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    Hi,

    Unless I’ve read too fast, first thing that comes to mind is: your atrlimit is not defined, so your atrstop in line 18 is probably either not defined, or if atrlimit=0 your atrstop is either negative or equal to zero (when you test without the -(5*…)), in any case it wouldn’t work without a positive value for the stop amount “atrstop”

    Best way to find out what happens when debugging personal code is to use the “graph” command at the end of your backtest code. It will open an extra window displaying all values asked by a “graph” line (up to 5 values at the same time last time I checked). For example:

     

    #15626

    Hi

     

    Nothing comes up when I write the graph command.

    #15631

    By “nothing”, do you mean there ‘s no graph window opened when adding any graph line at the end of your backtest code? Or do you mean there is a graph window, but you don’t see an atrstop line in the window?

    #15636

    Sorry, yes no window comes up

    #15639

    It didn’t work, but I solved my coding. Thanks anyway

    #46343

    Hi,

    Would you be willing to share your fixed code?

    Thanks

    Rob

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login