Quote:
|
Originally Posted by Dave77
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.
|
That's much simpler then; no need to do pips filter hack. Assume MA (1) is 2-period EMA, and MA (2) is 30-period LWMA. Enter below logics into ZeroCode:
Buy logics:
MA (1) Previous < MA (2) Previous + 0.0005
AND MA (1) Current > MA (2) Current + 0.0005
Sell logics:
MA (1) Previous > MA (2) Previous - 0.0005
AND MA (1) Current < MA (2) Current - 0.0005
Quote:
|
Originally Posted by Dave77
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??
|
You can add that in ZeroCode as logics. No need to hack in the mql.