Converting metatrader Indicators to AFL

To add comments, please log in or register
bd food
90
bd food  

please anybody kind me for Converting metatrader Indicators to AFL ,thanks a lot!!!!!!!!!nonono:

s_yrn
6
s_yrn  
sohel rana:
please anybody kind me for Converting metatrader Indicators to AFL ,thanks a lot!!!!!!!!!nonono:

I do not know what is AFL. ex4 attached. you are. I tried running.

Good luck.

Files:
bd food
90
bd food  

SIR AFL meaning ( amibroker fomula language)!

s_yrn
6
s_yrn  
sohel rana:
SIR AFL meaning ( amibroker fomula language)!

I do not know him. I'm sorry.

Paul75
1316
Paul75  

I think coding a indicator for AFL with help of metatrader indicator is much better than converting it from metatrader.

bd food
90
bd food  

Paul75, with all respect , i want to convert from mql4(metatrader cod) to AFL cod try to understan, thanks< here ex4 formate and mq4 formate, please please help me,

bd food
90
bd food  

Paul75

please sir help me help me ,maybe if u wish u will!

bd food
90
bd food  

please sir help me ,,,Paul75

bd food
90
bd food  
sohel rana:
please sir help me ,,,paul75

plaese please!!!!!!!

leenazen
490
leenazen  

I NEED FOR AFL TO MQ4 CONVERT

//+------------------------------------ ------------------------------+

//| ZIG ZAG NON REPAINT.mq4 |

//+------------------------------------ ------------------------------+

#property copyright "Copyright©2010"

#property link ""

#property indicator_chart_window

#property indicator_buffers 1

#property indicator_color1 Yellow

extern int Candle=100;

extern int Length=1;

double ExtMapBuffer1[];

int init()

{

SetIndexEmptyValue(0,0.0);

SetIndexStyle(0,DRAW_SECTION, 5,5);

SetIndexBuffer(0,ExtMapBuffer1);

return(0);

}

int deinit()

{

return(0);

}

int start()

{

int cnt,ticket,counted_bars=IndicatorCo unted();

int shift,Swing,Swing_n,uzl,i,zu,zd,mv;

double LL,HH,BH,BL,NH,NL;

double Uzel[10000][3];

string text;

if (High[1]> High[0]) {Comment("SELL !!");}

else if (High[1]< High[0]) {Comment("BUY !!");}

Swing_n=0;Swing=0;uzl=0;

BH =High[Candle];BL=Low[Candle];zu=Candle;zd=Candle;

for (shift=Candle;shift>=0;shift--) {

LL=10000000;HH=-100000000;

for (i=shift+Length;i>=shift+1;i--) {

if (Low< LL) {LL=Low;}

if (High>HH) {HH=High;}

}

if (Low[shift]HH){

Swing=2;

if (Swing_n==1) {zu=shift+1;}

if (Swing_n==-1) {zd=shift+1;}

} else {

if (Low[shift]<LL) {Swing=-1;}

if (High[shift]>HH) {Swing=1;}

}

if (Swing!=Swing_n && Swing_n!=0) {

if (Swing==2) {

Swing=-Swing_n;BH = High[shift];BL = Low[shift];

}

uzl=uzl+1;

if (Swing==1) {

Uzel[uzl][1]=zd;

Uzel[uzl][2]=BL;

}

if (Swing==-1) {

Uzel[uzl][1]=zu;

Uzel[uzl][2]=BH;

}

BH = High[shift];

BL = Low[shift];

}

if (Swing==1) {

if (High[shift]>=BH) {BH=High[shift];zu=shift;}}

if (Swing==-1) {

if (Low[shift]<=BL) {BL=Low[shift]; zd=shift;}}

Swing_n=Swing;

}

for (i=1;i<=uzl;i++) {

mv=StrToInteger(DoubleToStr(Uzel[1],0));

ExtMapBuffer1[mv]=Uzel[2];

}

return(0);

}

leenazen
490
leenazen  
leenazen:
I NEED FOR MQ4 to AFL CONVERT //+------------------------------------ ------------------------------+ //| ZIG ZAG NON REPAINT.mq4 | //+------------------------------------ ------------------------------+ #property copyright "Copyright©2010" #property link "" #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Yellow extern int Candle=100; extern int Length=1; double ExtMapBuffer1[]; int init() { SetIndexEmptyValue(0,0.0); SetIndexStyle(0,DRAW_SECTION, 5,5); SetIndexBuffer(0,ExtMapBuffer1); return(0); } int deinit() { return(0); } int start() { int cnt,ticket,counted_bars=IndicatorCo unted(); int shift,Swing,Swing_n,uzl,i,zu,zd,mv; double LL,HH,BH,BL,NH,NL; double Uzel[10000][3]; string text; if (High[1]> High[0]) {Comment("SELL !!");} else if (High[1]=0;shift--) { LL=10000000;HH=-100000000; for (i=shift+Length;i>=shift+1;i--) { if (LowHH) {HH=High;} } if (Low[shift]HH){ Swing=2; if (Swing_n==1) {zu=shift+1;} if (Swing_n==-1) {zd=shift+1;} } else { if (Low[shift]HH) {Swing=1;} } if (Swing!=Swing_n && Swing_n!=0) { if (Swing==2) { Swing=-Swing_n;BH = High[shift];BL = Low[shift]; } uzl=uzl+1; if (Swing==1) { Uzel[uzl][1]=zd; Uzel[uzl][2]=BL; } if (Swing==-1) { Uzel[uzl][1]=zu; Uzel[uzl][2]=BH; } BH = High[shift]; BL = Low[shift]; } if (Swing==1) { if (High[shift]>=BH) {BH=High[shift];zu=shift;}} if (Swing==-1) { if (Low[shift]<=BL) {BL=Low[shift]; zd=shift;}} Swing_n=Swing; } for (i=1;i<=uzl;i++) { mv=StrToInteger(DoubleToStr(Uzel[1],0)); ExtMapBuffer1[mv]=Uzel[2]; } return(0); }
12
To add comments, please log in or register