
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
Ray
Try it out now
Mladen
Still no change. Can we try again?
This is all I did for the 2MA;
double fastMA = iMA(NULL,0,FastMa,FastMaShift,FastMaMethod,FastMaPrice,i);
double slowMA = iMA(NULL,0,SlowMa,SlowMaShift,SlowMaMethod,SlowMaPrice,i);
UpH[i] = EMPTY_VALUE;
DnH[i] = EMPTY_VALUE;
trend[i] = trend[i+1];
double diffu = (fastMA - slowMA);
double diffd = (slowMA - fastMA);
if (diffu > diff_Level ) trend[i] = 1;
if (diffd > diff_Level ) trend[i] = -1;
Thanks
Ray
Mladen
Still no change. Can we try again?
This is all I did for the 2MA;
double fastMA = iMA(NULL,0,FastMa,FastMaShift,FastMaMethod,FastMaPrice,i);
double slowMA = iMA(NULL,0,SlowMa,SlowMaShift,SlowMaMethod,SlowMaPrice,i);
UpH[i] = EMPTY_VALUE;
DnH[i] = EMPTY_VALUE;
trend[i] = trend[i+1];
double diffu = (fastMA - slowMA);
double diffd = (slowMA - fastMA);
if (diffu > diff_Level ) trend[i] = 1;
if (diffd > diff_Level ) trend[i] = -1;
Thanks
Ray
This is what I get when I try the multi time frame mode (the indicator from the post above)
As far as I see, all works as it is supposed to work
This is what I get when I try the multi time frame mode (the indicator from the post above)
Mladen
I apologize for not presenting my problem with clarity. Your correct about the diff_Levelms 0.0 working properly but the addition of diff_Levelms was to allow minor changes such as ranging to be dismissed such as .0002 for EURUSD or .02 for USDJPY. Apparently my diff calculation is not being used by the trend1 calculation
double diffums = (ma2[i]-ma3[i]); //med-slow Apparently my calculation
double diffdms = (ma3[i]-ma2[i]); //slow - med Apparently my calculation
if (ma1[i]>ma2[i]) trendfm[i] = 1;
if (ma1[i]<ma2[i]) trendfm[i] = -1;
if (ma1[i]>ma3[i]) trendfs[i] = 1;
if (ma1[i]<ma3[i]) trendfs[i] = -1;
if (ma2[i]>ma3[i] && diffums > diff_Levelms) trendms[i] = 1; not being used by the trend1 calculation
if (ma2[i]<ma3[i] && diffdms > diff_Levelms) trendms[i] = -1; not being used by the trend1 calculation
Thank you
ray
indicator does not update
I downloaded the attached "Outsidebar Trendline V2" indicator but for some reason it does not update on
the next bar/candle. When switching time frames it works well, but on the following bar at that timeframe not anymore.
Could some expert of you please help so that the indicator refreshes itself also on the next bars?
Thanks a lot
Lea
mladen,
My friend wrote this EA based on vertex indicator, we iave not been able to run a backtest after he created it. Please can you help me fix the error that prevents it from being able to backrest. but it requires a lot of update once it's cleaned
Thanks and humbly apprciate
And this is the continuation
And this is the continuation
HEY MLADEN
I'm new to this website, and i can see your good works, keep it up bro. However i wish you can help me with some coding on turning an indicator into an EA.
All i really need is for the EA to buy or sale when signal appears.
Idea is to go to a higher timeframe, 4hrs tf and find the trend of the market ( just to know the trend) and trade on lower tf (15-5mins). So if its short, we only short till the change of trend the higher timeframe.
Thanks in Advance.
Please attach the mq4 file - this way users can not test it easily and then they can not help you
Uploaded , please can anyone look into this code to know why it can not back test,the results may not be profitable but I will be gratefull
It is working (as long as you have the "vertex_mod_3.01" indicator in indicators folder)