Multi time frame and trailing stop management

Forums ProRealTime English forum ProOrder support Multi time frame and trailing stop management

Viewing 3 posts - 61 through 63 (of 63 total)
  • #106500

    Variables cannot be created/modified in different TF’s. They can only be read anywhere.

    At lines 59 and 15 you are creating/modifying a variable already used elsewhere in a different TF.

    You should:

    • move line 56 to a new line between 9 and 10
    • insert a new line between line 2 with
      timeframe(default)

    the same TF can be used multiple times inside a strategy.

    I think this should solve most of your issues, since your 4-hour TF needs only line 9.

     

    #106508
    thank you very much for your kind reply and I immediately try to modify the code with the changes you suggested.

    I don’t understand why you say “since your 4-hour TF needs only line 9”.

    I would just like to point out that:


    the entry rules to be “on market” based on the Fractal pattern with candles at 4 hours (and I thought it was necessary to set the lines up to the number 54 with timeframe at 4 hours because I need the 4 hour pattern and the calculation of the ATR always at 4 hours).

    only after I am in the market, I need to use the 1 minute timeframe to be able to quickly move the stoploss to breakeven and then raise the takeprofit level (I thought in this case it was enough to indicate the timeframe at 1 minute starting from line number 57 , so that the “high” value of line 57 was updated every minute and not every 4 hours).

    I hope I have clearly explained my doubt.

    I await your kind clarification.

    GRAZIE !!
    #106549

    I don’t know if you tried what I suggested, I can’t see any other line that should be under the 4h TF. The only other indicator, the FRACTA LINE, had already been written outside that 4h TF so it is assumed to be the default TF (I suggest that you ALWAYS write the correct TF, even if it is not strictly required at the beginning, being assumed).

    If my above assumptions are incorrect, then you will hace to use different variable names at the lines reported in the error message.

     

Viewing 3 posts - 61 through 63 (of 63 total)

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