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.
I have been doing some extensive backtesting with this EA trying to find the "best" hull MA. By best i mean most profitable. I have tested a HMA from 5-100 in 5 period increments and am now narrowing down the best step period. After that I will do stop loss and trail based on the previous best step period. To do this with the current EA I had to change this line of code so that it would only take a signal on bar close...
signal = iCustom(NULL,0,"xpMA_15",TimeFrame,MA_Period,MA_Ty pe,T3MA_VolumeFactor,JMA_Phase,Step_Period,false,3 ,1);
The last "1" was a zero
,0);
I really need it to send a signal every bar close because sometimes it will get in a sell and immediately reverse and the EA will not close the sell and buy, but I dont know enough about MQl to do this.
When Im done I will post the results, and move on to a jurik. For now I have found the 50 period HMA with a step of 3 is the "best". Makes about 40,000 in 1 year at 1 standard lot on cable 1HR timeframe.
OK, I give up. I have been trying to convert an established EA (bagovino, originally emacross) to use three xpMA's of your choice but it is beyond my ability. I have went through it and changed everything I thought needed changing and have it down to about 10 errors and just cant get it worked out.
It has most of everything I want in it. The EMA Angle could be removed, the 4th EMA could be removed. Might as well keep the RSI filter, may be useful.
I havent gotten as far as putting an exit strategy into it, and probabally couldnt if I wanted to LOL. Anyway a closecondition on MA 1, or 2, or 3 will be needed.
It would be nice to make it like the original xpMAEA to use only one MA along with the option 2 or 3, but I will take what I can get.
If a generous coder could PLEASE take a look at it an at least fix it so it works as I have outlined I would be forever grateful. I tried my best but just cant get it.
(I havent changed the copyright's or credits or whatever, credit is due to them all)
I spent some spare time whacking in your file until it compiled. A comma here, remove a brace there, etc, and I suppose, severe re-indentation and added whitespace (my eyes are no less old than the rest :-))
Thanks Ralph. Still a no go though. It ran but wouldn't put up any indicators even. I will have a look at it later and pull out some more hair. looks like the signal from xpma will have to be changed as well to give a 1 or -1 without the 0 buffer for this to work.
At first I assumed that xpMA changed colour when price broke through the MA line but now I see that this isn't correct. Then I looked again and could see that the MA line changes to yellow after price breaks through the MA line and then an arrow is drawn if the next bar again closes through the MA in the same direction but this doesn't appear to be the case either. So how does xpMA work? What's it looking for and what is the criteria which draws the arrows?
- When the previous value of the MA is > the current value change the color to RED
- When the previous value of the MA is < the current value change the color to BLUE
- When the previous value of the MA is = the current value change the color to YELLOW
- Arrow displayed when colour changes to YELLOW