Quote:
Originally Posted by Sadly
Looking at the code, adding if (PrevPr != Pr) Alert("Colour change") on a line above PrevPr = Pr, should have done the trick but that didn't seem to work out as expected. The sequence is 0,0 / 0,1, / 1,1 / 1,0. By my logic the added code above ought to have worked OK but nope! Sorry.
|
Hello Sadly (or any other who could assist

),
Sometime ago, in November to be exact, someone asked you to modify the gann hi-lo cross to create an alert when crossed with a moving average. There were 2 problems though, 1, I don't think they had the source code for the gann and 2, the alerts would occur multiple times, so that if the MA had crossed the gann, every candlestick that followed would give an alert. I am posting your file with the alert and the original gann code. I wonder if you could have your code replicate the maths of the SSL one, and would it be possible to fix the multiple alerts? Thanks!