Using different indicators on different time frames?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #214247 quote
    aldtrading
    Participant
    New

    Hello, I am playing with Nicola’s Buy Sell Magical Trend Indicator on 1 minute chart and was trying to use a certain configuration on m1 and a different one on m5 as follows in this simplified version :

    SBMT1 = CALL "PRC_BuySell Magical Trend"[8, 2.5](close)
    SBMT5 = CALL "PRC_BuySell Magical Trend"[5, 2](close)
    
    TimeFrame(1 minutes, UpdateOnClose)
    IF close CROSSES OVER SBMT1 THEN
      sbmt1Direction = 1
    ENDIF
    
    IF close CROSSES UNDER SBMT1 THEN
      sbmt1Direction = -1
    ENDIF
    
    TimeFrame(5 minutes, UpdateOnClose)
    IF close CROSSES OVER SBMT5 THEN
      sbmt5Direction = 1
    ENDIF
    
    IF close CROSSES UNDER SBMT5 THEN
      sbmt5Direction = -1
    ENDIF

     

    I also tried to do it this way :

    TimeFrame(1 minutes, UpdateOnClose)
    SBMT1 = CALL "PRC_BuySell Magical Trend"[8, 2.5](close)
    
    IF close CROSSES OVER SBMT1 THEN
      sbmt1Direction = 1
    ENDIF
    
    IF close CROSSES UNDER SBMT1 THEN
      sbmt1Direction = -1
    ENDIF
    
    TimeFrame(5 minutes, UpdateOnClose)
    SBMT5 = CALL "PRC_BuySell Magical Trend"[5, 2](close)
    
    IF close CROSSES OVER SBMT5 THEN
      sbmt5Direction = 1
    ENDIF
    
    IF close CROSSES UNDER SBMT5 THEN
      sbmt5Direction = -1
    ENDIF

    but it looks like both of the configurations are playing on the 1 minute chart only, so : is this possible to use indicators on multiple timeframes ?

    Thanks

    #214248 quote
    GraHal
    Participant
    Master

    Does this help to see what and how it is working working?

    TimeFrame(5 minutes, UpdateOnClose)
    SBMT5 = CALL "PRC_BuySell Magical Trend"[5, 2](close)
     
    IF close CROSSES OVER SBMT5 THEN
      sbmt5Direction = 1
    ENDIF
     
    IF close CROSSES UNDER SBMT5 THEN
      sbmt5Direction = -1
    ENDIF
    
    TimeFrame(1 minutes, UpdateOnClose)
    SBMT1 = CALL "PRC_BuySell Magical Trend"[8, 2.5](close)
     
    IF close CROSSES OVER SBMT1 THEN
      sbmt1Direction = 1
    ENDIF
     
    IF close CROSSES UNDER SBMT1 THEN
      sbmt1Direction = -1
    ENDIF
    
    C1 = sbmt5Direction = 1 AND sbmt1Direction = 1
    C2 =  sbmt5Direction = -1 AND sbmt1Direction = -1
    
    GRAPH C1
    //GRAPH C2
    //GRAPH sbmt5Direction = 1
    //sbmt1Direction = 1
    //GRAPH sbmt5Direction = -1
    //GRAPH sbmt1Direction = -1
    #214250 quote
    aldtrading
    Participant
    New

    Sure it’s a good way to know directly if the conditions are met or not, though I did a backtest on a m1 chart and kept the m5 chart and the opened positions on the m1 chart weren’t opened at the right position considering the m5 chart.

    It looked like the m5 indicator was in fact playing on the m1 chart, so that’s why I’m wondering if it is possible to use an indicator on a different time frame than the one the ProBackTest/ProOrder system is anchored on. Maybe I just did a mistake, it will not be the first time 🙂

    #214251 quote
    GraHal
    Participant
    Master

    t looked like the m5 indicator was in fact playing on the m1 chart,

    In the sense that every 5 bars on the 1 min Chart the 5 min indicator will update??

    Using the GRAPH function will reveal all?

    aldtrading thanked this post
    #214253 quote
    aldtrading
    Participant
    New

    Thanks indeed after some tests GRAPH seems to be updated every 5 bars so apparently it works as intended.

    I might have been confused by the fact that the following always return 0 on a m1 chart :

    TimeFrame(5 minutes, UpdateOnClose)
    SBMT5 = CALL "PRC_BuySell Magical Trend"[5, 2](close)
    Graph SBMT5
    

    While it doesn’t when anchored on the actual m5 chart.. Idk

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Using different indicators on different time frames?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
aldtrading @aldtrading Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by aldtrading
2 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/07/2023
Status: Active
Attachments: No files
Logo Logo
Loading...