Im trying to get an alert triggered on "Trend Change" using (Renko Hybrid Bar Type)
So what i did is i got the indicator calculating on bar Close= false
and
( Close[2] > Open[2] && Close[1] < Open[1] )
{
AlertXXXX
}
But the alert doesn't get triggered until after a 3rd bar has closed after the condition was met, which is unnecessary.
if i do ( Close[1] > Open[1] && Close[0] < Open[0] ) it gets triggered despite the current bar hasn't closed yet, so it can reverse and that's not good :P
How can i get the alert triggered immediately after the "change trend" bar close ??
Thank you guys.
Comment