by Gilles » Wed Jun 28, 2023 5:33 am
Hi Apprentice,
Will we be able to obtain the Extreme_TMA_Line.mq4 indicator with automatic smoothing activation of the line after each tick?
Next, I propose a variation of the indicator by incorporating the following elements:
With:
FullLength = 2 * HalfLength + 1.
upBuffer[period] = tmBuffer[period] + 6 * source:pipSize();
dnBuffer[period] = tmBuffer[period] - 6 * source:pipSize();
if tmBuffer[period] > tmBuffer[period-FullLength+1], then tmBuffer = green and upTrend = true
elseif tmBuffer[period] < tmBuffer[period-FullLength+1], then tmBuffer = red and upTrend = false
end
As long as upTrend is "true":
Place a green arrow to buy on dnBuffer[period] every time the price touches this line.
As long as upTrend is "false":
Place a red arrow to sell on upBuffer[period] every time the price touches this line.
The fact that the Extreme_TMA_Line indicator repaints will facilitate market visualization and the progression of its evolution through smoothing after each tick.
Thank you in advance :)