[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: Metastock's formula into AFL



PureBytes Links

Trading Reference Links


Can someone please 
convert this Metastock's formula into AFL - Thanks




ENTER 
LONG:C>Mov(C,OPT1,S) AND 
LinRegSlope(C,OPT2)>LinearReg(LinRegSlope(C ,OPT3),50) 
CLOSE LONG:C<Mov(C,OPT1,S) OR 
LinRegSlope(C,OPT2)<LinearReg(LinRegSlope(C ,OPT3),50)
ENTER SHORT:C<Mov(C,OPT1,S) AND 
LinRegSlope(C,OPT2)<LinearReg(LinRegSlope(C ,OPT3),50)
CLOSE SHORT:C>Mov(C,OPT1,S) OR 
LinRegSlope(C,OPT2)>LinearReg(LinRegSlope(C 
,OPT3),50)
OPTIMIZE:OPT1: Minimum 5 Maximum 50 Step 
5OPT2: Minimum 5 Maximum 50 Step 5OPT3: Minimum 5 Maximum 50 Step 
5 
Initial Equity: Any amount. 
Positions: Long and Short 
Trade Price: Close 
Trade delay: 0 

Thanks 
Peter