Scorpion I phrased my program wrong. What I need is a crossover condition where a crossover takes place and then the ma averages (gap) grows apart from each other .0005 pips (Variable) (difference between one moving (2 Exp MA average) and the other (30 LWMA) within the last 3 (Variable) candles before a buy or sell signal takes place.
The program is not working right with a cross over + .0005 pips filter. I need the Moving average gap variable filter to signal a buy or sell.
This should solve one of my biggest problems I am having so far. Could I ask that you rephrase that part of my program.
I wish there was a school on coding this stuff. I asked you a question before on the phrasing to check to see if current price is lower (or higher) than the lowest low during 10 previous candles.
Your answer was:
PriceBid<Lowest(Mode_low,10,10) and no doubt Pricebid>Highest(Mode_high,10,10)
Is this to be placed after: IsBuying=(ma2_1) etc. etc. and (ma2_0) etc. etc., Likewise IsSelling= . . . . . in my program??
I have attached the MQL File. Thanks Scorpion. You do not realize how frustrating it is not to be able to figure this programming stuff out on my own. Have you thought about writing a book on MQL for traders, by example?? If I get this program working right in the near future, tell me what you like to drink, and I will send you a bottle of it!!