Hello,
Can someone help me with this. I need to add this fix to the EA, that was offered by the original programmer years ago. I have attached the EA and the indi it looks at. Many thanks in advance!
Code that should be added :
Code:
int previoussignal=0;
for(i=shift+1;i<=50;i++){
if(previoussignal!=0)continue;
if(iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i)>iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i+1))previoussignal=1;
if(iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i)<iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i+1))previoussignal=2;
Long conditions :
Code:
&& previoussignal==2
Short conditions :
Code:
&& previoussignal==1
Can someone help me with this. I need to add this fix to the EA, that was offered by the original programmer years ago. I have attached the EA and the indi it looks at. Many thanks in advance!
Code that should be added :
Code:
int previoussignal=0;
for(i=shift+1;i<=50;i++){
if(previoussignal!=0)continue;
if(iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i)>iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i+1))previoussignal=1;
if(iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i)<iCustom(NULL,0,"Renko_v1",periodatr,katr,0,i+1))previoussignal=2;
Long conditions :
Code:
&& previoussignal==2
Short conditions :
Code:
&& previoussignal==1
Attached File(s)
Renko v1 Expert Advisor.mq4
9 KB
|
548 downloads
Renko_v1.mq4
3 KB
|
538 downloads