Hab mal versucht, nen EA entsprechend zu proggen. Ist im Anhang. Hab ihn aber noch nicht getestet...
Wär nicht schlecht, wenn man seine "UD"-MAs mal in nem Chart sehn könnte.
Deklarationen des normalen MA:
Code:
extern int Fast_MA_Period=3;
extern int Fast_MA_Chart_Shift=0;
input ENUM_MA_METHOD Fast_MA_Method=0;
Code:
double Fast_MA_B1=iMA(Symbol(),Timeframe,Fast_MA_Period,Fast_MA_Chart_Shift,Fast_MA_Method,PRICE_CLOSE,1);
Berechnung meiner "UD"-MAs:
Code:
double CP1_FMAB1 = CP1 - Fast_MA_B1;
double CP1FMAB1_FMAB1Per = NormalizeDouble( CP1_FMAB1 / Fast_MA_Period *_Point,_Digits);
double UD_F_B1 = CP1 - CP1FMAB1_FMAB1Per;