There is great potential in MTF for ProBuilder, but this functionality still seems to suffer from youthful flaws.
An indicator using MTF for ProBuilder is very good at processing historical data. But if we want to use it as a dynamic indicator, i.e. for data updated in real time, this indicator runs out of steam quickly, in the sense that the data no longer updates and a past result repeats itself (seconds after seconds, minutes after minutes depending on the time unit used) without updating.
To illustrate this behavior with a readily available example, let’s take a 3 second SMI on a 1 second chart. The use of the background color will highlight the non-updating of the data.
On both attachments, the top graph -the “test” graph”- shows the SMI 3s on a 1s graph, the bottom graph -the control graph- shows the SMI 3s on a 3s graph.
First attachment. The white vertical line on the left corresponds to the start of our test (a first refresh of the top graph).
The double vertical line on the right was placed just before a second manual refresh of the graph. We see a uniform red range between the vertical bars
The 2nd attachment presents the situation after the second manual refresh of the test graph: we see that the data between the vertical lines has been updated. There is a minor difference between the update and the control graph, this is probably due to some flaw in the code, but the demonstration here concerns the non-updating in real time of the data from a ProBuilder indicator using MTF.
// code for the "test" graph
timeframe(3 seconds, updateonclose)
smi3s = SMI[14,3,5](close)
smi3s1 = smi3s[1]
timeframe(1 second, updateonclose)
if smi3s > smi3s1 then
backgroundcolor(0,255,0,110)
else
backgroundcolor(255,0,0,110)
endif
return
// code for the reference graph
smi3s = SMI[14,3,5](close)
if smi3s > smi3s[1] then
backgroundcolor(0,255,0,110)
else
backgroundcolor(255,0,0,110)
endif
return