Multi timeframe – MTF indicators for ProRealTime
Forums › ProRealTime English forum › ProBuilder support › Multi timeframe – MTF indicators for ProRealTime
- This topic has 150 replies, 49 voices, and was last updated 1 week ago by robertogozzi.
Tagged: mtf, mtf indicators
-
-
10/02/2020 at 10:30 AM #14616410/02/2020 at 12:30 PM #14618711/16/2020 at 9:39 AM #150619
Hello, what does updateonclose parameters do exactly please ?
example :
timeframe(1 hour,updateonclose) used in a 15minutes chart and let’s say it is 11h22 o clock:
does that mean that for all 15mn candles inside the 1hour current candle (from 11h to 12h), test will use the 1h indicators values at the end of the 10h candle (closing at 11h) without actualising values for the current price (after 11h) ? or that the 1h indicators prices at current time (after 11h) will be refreshed at each 15mn candle close ?
thanks in advance
11/16/2020 at 9:41 AM #150620does that mean that for all 15mn candles inside the 1hour current candle (from 11h to 12h), test will use the 1h indicators values at the end of the 10h candle (closing at 11h) without actualising values for the current price (after 11h)
YES!
1 user thanked author for this post.
12/04/2020 at 3:16 PM #152609Bonjour Nicolas,(Suis nouveau et en surfant je vois le travail d’accompagnement / aide que vous assurez : impressive !! )Mon projet de swing trader en herbe ! : pour voir clair, construire des backtests et des screeners, j’aimerais ;sous le graph de prix en Daily, voire en 4H, mettre un histogr visuel de rappel de la tendance de l’UT supérieure (par ex W) proposée par PRT trend, en affichant tout simplement dans un 1er temps la variable trend (W) : +1 = vert, -1 = rougeEst-ce possible ? car je suis en train de galérer, ..ou peut-être ne peut-on faire du MTF qu’uniquement en UT inférieures à celle du graph principal ?Merci de votre réponseHello Nicolas, (I’m new and while surfing I see the support / help you provide: impressive !!) My budding swing trader project! : to see clearly, to build backtests and screeners, I would like; under the price graph in Daily, or even in 4H, put a visual histogram of the trend of the upper UT (for example W) proposed by PRT trend, by simply displaying in a 1st time the trend variable (W ): +1 = green, -1 = red Is this possible? because I am struggling, .. or maybe we can only do MTF in UT lower than that of the main graph? Thank you for your answer
12/04/2020 at 3:59 PM #152615Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 😊
1 user thanked author for this post.
12/04/2020 at 4:00 PM #152616précision à ma requête précédente : ne marche pas non plus si UT principale = 1 jour et indicateur avec UT = 5 jours (au lieu de Weekly) et ne marche pas en ajoutant le “updateonclose” ie timeframe( 5 days, updateonclose)precision to my previous request: does not work either if main UT = 1 day and indicator with UT = 5 days (instead of Weekly) and does not work by adding the “updateonclose” ie timeframe (5 days, updateonclose)
12/10/2020 at 11:40 AM #153187I have spotted something strange in the MTF behaviour… maybe it’s me that I missed something but let’s discuss it.
I’ll put down an example: I just want to plot (using the “timeframe” instruction) a 200 ticks bars inside a 50 ticks bars graph.So the idea is really simple and I have done as follows (see the attached pictures):
- Window 0: the 200 ticks graph
- Window 1: the 50 ticks graph with “PRC MTF 200 ticks v0” applied
- Window 2: the 50 ticks graph with “PRC MTF 200 ticks v1” applied
- Window 3: the probuilder “PRC MTF 200 ticks v0”
- Window 4: the probuilder “PRC MTF 200 ticks v1”
I would expect to see inside the Window 1 and 2 the same bars (in the bottom) of Window 0 (the 200 ticks bars), but it’s not the case…
Apparently “PRC MTF 200 ticks v0” is not working as I expected.
So I wrote the “PRC MTF 200 ticks v1”, in which I have written a workaround to get what I expected to get…I post here my two different codes:
PRC MTF 200 ticks v012345678timeframe(200 ticks, updateonclose) // --> change this line with a tf multiple of your default tfOpen1 = OpenHigh1 = HighLow1 = LowClose1 = Closedrawcandle(Open1, High1, Low1, Close1)returnPRC MTF 200 ticks v1123456789101112131415161718192021222324timeframe(200 ticks, updateonclose) // --> change this line with a tf multiple of your default tfIBar = barindextimeframe(default, updateonclose)newBar = IBar[1] <> IBar[2]if newBar thenOpen1 = Open0High1 = max(High0, High[1])Low1 = min(Low0, Low[1])Close1 = Close[1]Open0 = OpenHigh0 = 0Low0 = +1073741824 // 2^30drawcandle(Open1, High1, Low1, Close1)elseLow0 = min(Low0, Low[1])High0 = max(High0, High[1])endifreturnIs there another simply way to get the same result that I obtained with “PRC MTF 200 ticks v1” code?
Thank you in advance!
12/10/2020 at 11:56 AM #15319412/10/2020 at 11:59 AM #153196I have the same bars just with historical bars. In the moment I leave it run for a while on real, all values of the new bars are completely different from the “Window 0”. (PRT v11+IG)
12/10/2020 at 2:27 PM #153224I am still investigating on it…
I have written this simple code:PRC MTF 200 ticks barindex12345timeframe(200 ticks, updateonclose)IBar = barindextimeframe(default, updateonclose)return IBarIn the two attachments: the first with a 50 ticks and 50 units, the latter 50 ticks with 1k units…
If you compare the zone that i marked in green on the attachments with the IBar variable something strange is going on I think…
At least I see that it behaves differently from how I expect.
I would expect that in both the situations the green higlighted zone would have been plotted on the same bars in the two cases. And it is not the case.12/10/2020 at 8:26 PM #15327812/10/2020 at 9:05 PM #153280No, it isn’t; only numeric constants are allowed.
12/17/2020 at 7:44 PM #15420212/17/2020 at 9:26 PM #154215Already available!
You can start writing a simple mtf indicator and test it.
-
AuthorPosts