Set the alertsOnCurrentparameter to false and it will alert only when the candle is closed
Did you see this thread : https://www.mql5.com/en/forum/181241 ?
Thanks for the explanation of TMA. But I thought it would be helpful to detect the market not for entry or exit. I use different method to enter/exit trade. In my opinion tmatrue doesn't repaint like TMA (repainting version), it doesn't matter how many times it recalculate for current bar. So is it possible to change the tma slope indicator based on tmatrue? I appreciate your help.
That is exactly what I said too (even on that thread). Linear weighted moving average (LWMA) is not repainting. As far as "TMATrue" is concerned here is a comparison of "TMATrue" (dotted) and linear weighted moving average (you have it in built in moving averages - gray thick line here) They are exactly the same when LWMA period is set to "TMATrue" period +1.
Linear weighted moving average is one of the oldest ways of calculating some moving average and as is, it is indeed useful. What I am saying that there is no such thing as "TMATrue". Please read that thread I posted the link to, I think you will find it informative as far as the fuss about TMA is concerned. As far as a slope of linear weighted moving average any indicator showing the slope of moving averages which can set the LWMA as a moving average will do
With alertsOnCurrent here so, for small frames well, for Н-1 - not so, make if probably, but anyway Maddlen, to you huge human thanks, excuse for bad English, with best regards
You now simply have to believe me : when alertsOnCurrent is set to true it checks if a cross happened between bars 0(current) and 1(first closed) which actually means that the current bar is the deciding. When it is set to false then it is checking bars 1 (first closed) and 2(second closed) which means that the first closed bar is the deciding one (which is what you are looking for). So set the alertsOnCurrent to false and it will alert on closed bar. It does not make any difference among time frames (all it is looking are bars regardless of the time frame they are at)
hope this helps
Thanks and once again thanks for competent explanations and the done work, I have understood...
Alert and paint bar request!
I was hoping that you could modify the TD-2 and TD-3 indicators to alert and paint the current bars when they aligned? As indicated by the arrows in the chart below?
Thanks for your consideration in this challenge.
How Reliable TD2?
The TD2 indicator looks like a terrific filter. Almost too good to be true. Do you know if it repaints?
It will repaint in lower TF...It's best used in the 4 hour tf and above.
How Reliable TD2
The source code contains "high...a sure sign of repainting.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.