Multi Timeframe Indicators - page 1033
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
HI MLADEN! please help me correct coode, EA not working indicator TMA + CG , I want that arrow X red -open buy ,and arrow X blue -open sell position. HOW CORRECT CODE EA WRITE ??
I am guessing that you omitted the first parameter (the TimFrame parameter) in the iCustom() call, but please post your iCustom() call code so that I can be sure
HI MLADEN!
THIS IS MY WRONG CODE
double TMDOWN0=iCustom(Symbol(),0,"TMA+CG",0,0);
double TMDOWN1=iCustom(Symbol(),0,"TMA+CG",1,0);
double TMDOWN2=iCustom(Symbol(),0,"TMA+CG",2,0);
double TMDOWN3=iCustom(Symbol(),0,"TMA+CG",3,0);
double TMDOWN4=iCustom(Symbol(),0,"TMA+CG",4,0);
double TMDOWN5=iCustom(Symbol(),0,"TMA+CG",3,5);
double TMDOWN6=iCustom(Symbol(),0,"TMA+CG",6,0);
double TMUP0=iCustom(Symbol(),0,"TMA+CG",0,0);
double TMUP1=iCustom(Symbol(),0,"TMA+CG",1,0);
double TMUP2=iCustom(Symbol(),0,"TMA+CG",2,0);
double TMUP3=iCustom(Symbol(),0,"TMA+CG",3,0);
double TMUP4=iCustom(Symbol(),0,"TMA+CG",4,0);
double TMUP5=iCustom(Symbol(),0,"TMA+CG",5,0);
double TMUP6=iCustom(Symbol(),0,"TMA+CG",4,6);
if (OPENBUY=="buyFULL" && TMDOWN5!=EMPTY_VALUE ) return(true);
if (OPENSELL=="sellFULL" && TMUP6!=EMPTY_VALUE ) return(true);
if (CLOSEBUY=="CLOSEbuy" && TMUP6!=EMPTY_VALUE ) return(true);
if (CLOSESELL=="CLOSEsell" && TMDOWN5!=EMPTY_VALUE ) return(true);
HI MLADEN!
THIS IS MY WRONG CODE
double TMDOWN0=iCustom(Symbol(),0,"TMA+CG",0,0);
double TMDOWN1=iCustom(Symbol(),0,"TMA+CG",1,0);
double TMDOWN2=iCustom(Symbol(),0,"TMA+CG",2,0);
double TMDOWN3=iCustom(Symbol(),0,"TMA+CG",3,0);
double TMDOWN4=iCustom(Symbol(),0,"TMA+CG",4,0);
double TMDOWN5=iCustom(Symbol(),0,"TMA+CG",3,5);
double TMDOWN6=iCustom(Symbol(),0,"TMA+CG",6,0);
double TMUP0=iCustom(Symbol(),0,"TMA+CG",0,0);
double TMUP1=iCustom(Symbol(),0,"TMA+CG",1,0);
double TMUP2=iCustom(Symbol(),0,"TMA+CG",2,0);
double TMUP3=iCustom(Symbol(),0,"TMA+CG",3,0);
double TMUP4=iCustom(Symbol(),0,"TMA+CG",4,0);
double TMUP5=iCustom(Symbol(),0,"TMA+CG",5,0);
double TMUP6=iCustom(Symbol(),0,"TMA+CG",4,6);
if (OPENBUY=="buyFULL" && TMDOWN5!=EMPTY_VALUE ) return(true);
if (OPENSELL=="sellFULL" && TMUP6!=EMPTY_VALUE ) return(true);
if (CLOSEBUY=="CLOSEbuy" && TMUP6!=EMPTY_VALUE ) return(true);
if (CLOSESELL=="CLOSEsell" && TMDOWN5!=EMPTY_VALUE ) return(true);
That code is OK
Tested it like that (just a slight change) and all worked OK :
extern int barToTestUp = 5;
extern int barToTestDn = 5;
int init()
{
return(0);
}
int deinit()
{
return(0);
}
int start()
{
double TMDOWN0=iCustom(Symbol(),0,"TMA+CG",0,barToTestUp);
double TMDOWN1=iCustom(Symbol(),0,"TMA+CG",1,barToTestUp);
double TMDOWN2=iCustom(Symbol(),0,"TMA+CG",2,barToTestUp);
double TMDOWN3=iCustom(Symbol(),0,"TMA+CG",3,barToTestUp);
double TMDOWN4=iCustom(Symbol(),0,"TMA+CG",4,barToTestUp);
double TMDOWN5=iCustom(Symbol(),0,"TMA+CG",3,barToTestUp);
double TMDOWN6=iCustom(Symbol(),0,"TMA+CG",6,barToTestUp);
double TMUP0=iCustom(Symbol(),0,"TMA+CG",0,barToTestDn);
double TMUP1=iCustom(Symbol(),0,"TMA+CG",1,barToTestDn);
double TMUP2=iCustom(Symbol(),0,"TMA+CG",2,barToTestDn);
double TMUP3=iCustom(Symbol(),0,"TMA+CG",3,barToTestDn);
double TMUP4=iCustom(Symbol(),0,"TMA+CG",4,barToTestDn);
double TMUP5=iCustom(Symbol(),0,"TMA+CG",5,barToTestDn);
double TMUP6=iCustom(Symbol(),0,"TMA+CG",4,barToTestDn);
Comment(TMDOWN5," ",TMUP6);
return(0);
}
MANY THANKS MLADEN! OK,WORKING !
Terry Toede
I have tested it just now too, and all seems to be working as it should
Would you mind sending us the exact parameters settings for that same indicator (with some screen capture would be perfect) of the case when it crashes for you?Dear mladen,
Unfortunately I have already deleted my demo account since it couldn't be used anymore.
And I didn't change given parameter setting of that indicator
But after I read you test result, I put that indicator in my new demo account and it worked properly.
I don't know what was wrong with my previous demo account.
Thank you so so much for your help and attention.
Have a nice day
Regards,
Dear mladen,
Unfortunately I have already deleted my demo account since it couldn't be used anymore.
And I didn't change given parameter setting of that indicator
But after I read you test result, I put that indicator in my new demo account and it worked properly.
I don't know what was wrong with my previous demo account.
Thank you so so much for your help and attention.
Have a nice day
Regards,
The important is that you can use it now
Happy trading
The important is that you can use it now
Happy tradingHappy helping to you, mladen
Wolf300, sorry for the late answer , this is a version of the HMA v2(Hull moving average) as mtf.
hull_moving_average_mtf_2.mq4
Hi mrtools,
I have to say sorry.(Not you ) Wasn t here for days and I just found your kind help. Thank you so much for your time and effort !!!!
Good afternoon Mladen/MrTools.
I would be very grateful if you transform this PVI indicator in a mtf version.
Thanks in advance.
Good afternoon Mladen/MrTools.
I would be very grateful if you transform this PVI indicator in a mtf version.
Thanks in advance.Francisco Jesus
Did you check this one : https://www.mql5.com/en/forum/general