View Single Post
  #1393 (permalink)  
Old 03-18-2008, 08:48 PM
godfreyh godfreyh is offline
Junior Member
 
Join Date: Jun 2007
Posts: 1
godfreyh is on a distinguished road
Gann Hi -lo crossing alert

Quote:
Originally Posted by Sadly View Post
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!
Attached Files
File Type: mq4 Gann Hi-lo Activator SSL.mq4 (2.0 KB, 127 views)
File Type: mq4 Gann HiLo ActivatorV2_Alert_Email_v1.1.mq4 (5.0 KB, 112 views)
Reply With Quote