View Single Post
  #8 (permalink)  
Old 06-27-2005, 03:48 PM
scorpion's Avatar
scorpion scorpion is offline
Administrator
 
Join Date: Aug 2004
Posts: 1,931
Thanks: 99
Thanked 365 Times in 149 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

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.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Last edited by scorpion : 06-27-2005 at 03:52 PM.
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now