multiple timeframe – can't read variables of others timeframe

Forums ProRealTime English forum ProOrder support multiple timeframe – can't read variables of others timeframe

Viewing 4 posts - 1 through 4 (of 4 total)
  • #136711

    Hi guys

    I’ve reach a problem when I want to do something with 2 timeframe (very simple…).

    I saw in some others strategy that it’s possible to share and use a variable of a specific timeframe in an other one.

    But in my case an error message say that I cannot and that I can read variables of others timeframe.

     

    This is my little example :

     

    Do you know the good way to share the parameters with my default timeframe ?

     

    Thanks in advance,

     

    #136712

    Variables need to have exclusive names for each Timeframe, you can’t share the same name.

    So for example you could name limitB as

    hourLimitH under the 1 hour TF and minLimitH under a 10 minute TF.

     

    #136713

    You can READ variables from any TF, but they must be created (and their contents changed)  in only one TF!

    You can follow GraHal’s suggestions to keep names quite similar still different.

    1 user thanked author for this post.
    #136798

    Nevermind !

    I found why it was not working.

    On line 6 to 8 I reseted the value “LimitH” but not in the good timeframe…

    Sorry for this bad mistake 🙂

     

    Thanks for the support guys 🙂

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

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