Pivot point Supertrend strategy with mutltimeframe

Forums ProRealTime English forum ProOrder support Pivot point Supertrend strategy with mutltimeframe

  • This topic has 7 replies, 2 voices, and was last updated 7 months ago by avatarSVK.
Viewing 8 posts - 1 through 8 (of 8 total)
  • #220460
    SVK

    Hi all,

    small question on you knowledgeable guys.

     

    I’m using Nicolas’s PRC Pivot point supertrend indicator and have just noticed small problem with multitimeframe trading system.

    15 minute & 1 hour timeframes where strategy is executed on 15 min.

    Rule is simple both 15 min & 1 hour PRC PPS must be RED for short condition to be valid.

    However PRC PPS (PRC Pivot point supertrend) 15 min executes short trade despite 1 hour PRC PPS is still green.

     

    Please see photo where I have graphed 1 hour PRC PPS and used vertical lines to highlight the issue.

    First white vertical line shows where 15min timeframe thinks 1 hour turned RED but in fact 1 hour is still GREEN.

    Second white vertical line shows actual 1 hour timeframe turning RED.

    Trade was profitable on this occasion but there quite a few which are not profitable.

     

    Would someone know how to correct this ?

     

    Ps. It might have something to do with the way Pivot points are calculated.

     

    Thank you

     

    #220475

    Would you mind sharing the code you are using? Are you using UPDATEONCLOSE or not while getting the Supertrend value in 1-hour timeframe?

    1 user thanked author for this post.
    avatar SVK
    #220501
    SVK

    Hi Nicolas,

    I have tried with and without UpdateOnClose on 1hr timeframe and anomalies were still there.

    After work I will provide you a code no problem.

    Thank you very much for PRC PPS code as it works well with the single timeframe.

     

     

    #221098
    SVK
    #221183

    It seems ok for me.

    To make sure you are using the same values in the strategy than the ones displayed on your chart with the indicator, add these lines at the end of your probacktest code:

    It will add the Pivot Point Supertrend of both timeframe into your price chart during backtest.
    Also, verify that you are using the same timeframes in the code (10 minutes or 15 minutes?) and also the settings (period, ..) in your backtest and on your chart.

    1 user thanked author for this post.
    avatar SVK
    #221366
    SVK

    Hi Nicolas,

     

    thank you very much for taking look at it.

     

    It must be broken only on my end then.

    I have attached a snapshot below where you can see that price on 10 minute chart didn’t go below Supertrend as indicated on 2 minute chart.

    2 minute chart GRAPH indicates that Price on 10 minute chart crossed below Supertrend on 20 Sep 2023 15:18 but in fact price on 10 minute chart crossed below Supertrend an 1 hour and 12 minutes later at 16:30.

    Graph (red line) on 2 minute shall not dip down any sooner than 16:30.

    #221426

    Are you sure that your Supertrend is set with: 2, 3, 200 settings on your 10-minutes chart?

    Could you please add the 2 lines I gave, into the code of your strategy, launch a backtest and post the picture here? We must be sure that the indicators calculation made via CALL in your strategy results in the same ones than indicators applied on chart, thank you.

    1 user thanked author for this post.
    avatar SVK
    #221642
    SVK

    Hi Nicolas,

    10 minute – PRC PPS = 2,3,200

    2 minute – PRC PPS = 2,3,91

     

    Please see attached photo as requested.

    Looking at 2 minute chart both white lines (PRC PPS) went UNDER the price at 21:00 (26/09/2023) but on 10 minute chart PRC PPS changed folowing day 27/09/2023 at 08:00.

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

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