Make Indicator work on Different Timeframes

Forums ProRealTime English forum ProBuilder support Make Indicator work on Different Timeframes

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by avatardruby.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #198410

    Hi there, I don’t know if this is a Timeframe issue but I have a “percent moves” indicator that is used on a Daily chart that I want to be able to use on a 12, 8 or 1 hr chart. I think it’s the AnchorDate code that is not allowing me to use the code? How would I convert this so that I can choose an AnchorDate too?

    Cheers,
    Bard

     

    #198415

    Hi..

    If you comment out lines 3, 14 and make anchordate a dynamic variable with a default value, that appears to work.

    Removing line 3, doesn’t link the code to another time frame other than the chart default.

    And adding ‘anchordate’ as a dynamic variable allow you to set an appropriate date depending on what chart time frame your on.

    That’s a simple solution.

    Additionally, because their’s no feedback between what you may set a dynamic value to, and whats acceptable in the code, you could set up some checking and an error message if you go out of an acceptable range.

    This might not be a problem because you may only setup once and forget.

    But for the date, you could compare the date ‘set’ with the date on bar zero to see if its in the chart’s loaded historical data. etc

    Just one last note, if your code uses a lot of dynamic variable, it’s best to export your code and upload. This save’s time and allow others to run your code with the settings you use and focus on getting a solution.

    Best regard

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

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