[beta-testing] multi timeframe support for automatic trading, ideas are welcome!

Forums ProRealTime English forum ProOrder support [beta-testing] multi timeframe support for automatic trading, ideas are welcome!

Viewing 15 posts - 166 through 180 (of 288 total)
  • #78933

    et

    No, i tried both, still different.

    If I am forced to use lower time frames to manage a trade on a higher timeframe, the result is totally different. So it means that something is not right.

     

    #78938

    I think it is because you are trying to buy and sell with those instructions in the 4 hour timeframe when with MTF you should be buying and selling in the default time frame. That is just a poorly educated guess though.

    #79030

    Hello to everybody!
    I have two questions that I would like to clarify; maybe they have already been asked, but I cannot find them.

    In a multi timeframe scenario, something like that

     

    [1] what does it refer to? to the default TF?

    And in something like

    [1] is referred to the value of MA20 in the TF bar 5 minutes before?

    Thanks,
    Lorenzo

    #79031

    1) it does not involve TFs, it simply checks whether a trade has just been closed, though you usually use this for in the lowest TF.

    2) yes.

    1 user thanked author for this post.
    #79034

    but I cannot find them.

    This may help?

    https://www.prorealcode.com/blog/learning/approach-multi-timeframe-trading-prorealtime/

    1 user thanked author for this post.
    #79100

    I think it is because you are trying to buy and sell with those instructions in the 4 hour timeframe when with MTF you should be buying and selling in the default time frame. That is just a poorly educated guess though.

    i think that is the reason, but if is like this MTF is useless to use in Trailing stop code, and no so Revolutionary as said for the TF, in fact i think that one of the big problems of PRT is the use of the Trailing Stop function specially with Big TF, in fact if the funcion #trailingstop makes the results of the backtesting unreliable, a big improve should be using MultiFrame even for smaller periods even if the strategy is for a big periods.

    If the MTF remains like now, with the only possibility to use MTF starting for a small periods, thats will be not a big improve.

    And also, if i use a strategy originally made with the 4hr TF, starting from a lower TF but with the command Timeframe4hr, results should be the same, not differents.

    #79104

    I think it is because you are trying to buy and sell with those instructions in the 4 hour timeframe when with MTF you should be buying and selling in the default time frame.

    That’s wrong. In this example, the strategy is buying on a 15-minute timeframe and the orders are managed in a lower TF: Partial closure of positions when price is retracing

    a big improve should be using MultiFrame even for smaller periods even if the strategy is for a big periods.

    That’s possible, why not using one of the trailing code functions available on the website, like the way I did in the article above?

    If the MTF remains like now, with the only possibility to use MTF starting for a small periods, thats will be not a big improve.

    That’s obvious that if you are using a lower timeframe to manage your orders, the ‘starting’ TF is the smallest one. But I deplore the fact that the history is limited to this one though..

    if i use a strategy originally made with the 4hr TF, starting from a lower TF but with the command Timeframe4hr, results should be the same, not differents.

    If the whole code of the strategy is embedded in the timeframe(4 hours, updateonclose), results should be the same (example attached below).

    #79109

    When your strategy works as expected on a 4-h TF, with your trailing stop code embedded in the default TF, you can detect any benefit from MTF just:

    • Backtest it from a 4-hour TF using the max time interval allowed for 1-minute chart
    • Bscktest it from a 1-minute chart

    if this shows benefits, then keep your strategy MTF for the trailing code, otherwise do not!

    If you use MTF for your 4-hour strategy to run trailing stop code in a 30-minute TF you’ll never have benefits, because in 30 minutes prices can move so many pips, especially Dax and EurUsd.

    MTF should be used if:

    • you want to test indicators in more than one TF
    • you want to make your trailing stop code more responsive
    • you want both

     

     

     

     

     

    #79299

    I’m trying a mtf  code in demo live, and I wanna share with you how I am unable to see errors in opening trades…

    This is the code:

    And this is a screenshot from actual live trades:

    REPORT-PER-PRT

    As you can see, the need for having superior tfs above upperlevel (green zones) and crossing up of base tf (30m) are not respected.

    Why?

    #79301

    Line 6 assigns values to variables based on PRC_RSIoMA extended called from the deafult (lower, I guess) TF.

    Lines 10-11, 15-16 and 21-22 reflect this behaviour, rather than referencing an indicator for their own TF. You should move line 6 to the beginning of each TF using different variable names:

     

    2 users thanked author for this post.
    #79302

    Your indicator is declared and calculated in the ‘default’ timeframe and not in any other one. So, even if you are testing above/below levels in other TF, the code will always use the same indicator values.

    EDIT: Faster than me Roberto! and with a more precise answer! 😉

    1 user thanked author for this post.
    #79304

    Ok,

    so I have to declare the Rsioma in each timeframes with different names.

    I will try and let you know.

    #79318

    Now what?

    It says I cannot use the same variables in different timeframes.

    So what should I do to exclude a variable from different tfs?

    I tried “ignored2” but it doesn’t work out.

     

    ignored

    #79324

    You should use

    for the DAILY TF and

    for the 1-hour TF.

     

     

    #79326

    That was clear to me.

    My question is: how can I exclude “myLevelDownD” from daily and “mymedlevel1H ” from h1? If I use “ignore” for both it gives me error like my screenshot.

Viewing 15 posts - 166 through 180 (of 288 total)

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