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.
"TD2" == "Solar Wind" (here : https://www.mql5.com/en/forum/179650 )
"TD3" == "Forex trend histo" (to cut it short, just this post here : https://www.forex-tsd.com/forum/debates-discussions/116-something-interesting-please-post-here/page185#comment_595169 )
Sorry guys, but again the same old, same old ...
Too good to be true.
Thanks for the heads up PT, Michael, & Mladen. And Michael, thanks for the tip on what to look for in the code. You all have saved me a lot of time testing a strategy using this. Some people may know how to successfully use repainting indicators to their advantage but, for me such indicators are a waste of time. If it appears too good to be true, indeed it is.
It is not what you have to look for.
An example : stochastic does the same thing (highest high an lowest low) and it never ever repainted since the first day it existed. Look for negative values in indexes (and that is what those call have in them - negative values instead of positive) See the explanation for that at this post : https://www.forex-tsd.com/forum/debates-discussions/116-something-interesting-please-post-here/page184#comment_594931 . If those were "+" it would not repaint, but then the values would not be even close to what it is giving
This is nrp Mladen gave us to replace the solar wind types, not sure if it was posted this way or not.
I did some negative to positive as you mentioned
Will you please check it, is it correct or not ?
Thanks in advance