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
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
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 🙂
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?
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