Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Thanks , now is clear.
So' I can prepare all charts that i have on D1 and wait the first signal,
put stop at 100 pips, no limit, for example, and when i am on gain between 20/30 pips, i can move stop at entry and wait for exit.
What do you thing ?
Thanks
dirk,
Ojala, I'll create the Expert Advisor when the market open Monday and proof my Indicator.
hi, I just noticed the indicator EMA_Prediction.mq4 contains a serious bug.
I spent all day yesterday marking my nice chart with vertical lines so that I would know when something important occured.
I put this indicator on and then took it off the chart... bad idea... all my lines are gone... I know it's my fault for not looking at the code before running but just in case there are some others who don't proof-read before running, I thought I'd give you the heads up.
So just to recap... EMA_Prediction.mq4 will delete all your Vertical Lines on the chart when you remove it or whenever else metatrader calls the deinit() function
my suggestion to the author would be to incorporate code similar to this:
Code:
// will delete all objects that contain aID_Prefix
void deleteObjects(string aID_Prefix) {
int nObjects = ObjectsTotal();
for (int i=nObjects; i>=0; i--) {
string objName = ObjectName(i);
if(StringFind(objName, aID_Prefix, 0) >= 0)
ObjectDelete(objName);
}
}
and to give his vlines all the same prefix that wouldn't conflict with those of another script... e.g. "EMA_PREDICTION_VLINE_"
[DISCLAIMER: use this code at your own risk. I am not responsible for any code I create. However, it seems to work for me so far just fine. Just be aware if you are too lenient with the aID_Prefix it will delete alot of objects... e.g. aIDPrefix="a" would delete all those CONTAINING "a". If you want to only delete those starting with "a" then I would suggest changing the StringFind's >=0 to just 0. Although I have not tested that modification, it should work]
i looke in the code and i see:
"iMA(NULL,0,LongEma,0,MODE_EMA, PRICE_CLOSE, pos-1)"
now my question is how can you get "pos-1" for current,or even previous, day ?
* i wish i wrong and this indicator will predict the direction of EMA.
Cheers.
CodersGuru,
Could you please address this? I think Shadow is correct. At first I thought that maybe it had something to do with your loop counting Down To 0 instead of Up From 0, but either way, I believe it should still be +1. (Been trying for an hour to get my head around this) Also, you seem to use "pos-1" to position the arrows Forward 1 bar, so I'm not sure how "pos-1" can also be used to reference the Previous bar in the MA.
If the PreviousEMA calculations are truly supposed to be "pos+1", then the 2 IF statements used to generate the signals can never be true.
I know I'm nowhere near the coder you are, so please correct me if I/we are wrong. Also, if your code is correct, could you please try to explain why/how it works as I don't understand.
Hi Coders
Thanks for this indicator (and all your other work). Can we manually backtest this? ie are the signals stable or will they change if we look back in time?
Thanks Mike.
Please do not use this indicator with a real account until CodersGuru (or some other knowledgeable coder) responds to my post above. I still do not believe it is calculating things properly. See post #13 above.
Keris
Note: If it turns out that the indicator does calculate properly, I'll delete my posts so as to not clutter up the thread.
Robak , i don't see anything wrong , also don't forget that you are using 1 hour TF, i believe it is too short , you 'll have choppy and wimpy market.
I am using H4 and D1