Dear colegues,
I want to discuss here about a concept I found on the website http://www.lightpatch.com/forex, particularly concerning Divergence Trader EA http://www.forexmt4.com/_MT4_Experts...nce Trader.mq4. I examine this robot because January and the outcomes on H1 are amazing! On other TFs everything was enormous reduction. You can look here: https://www.forexforum.co.za/general...realistic.html
Largely, this robot assesses that the divergence between SMA 88 and SMA 7 (Both with price available ). The formula is
Inserted Code DVBuySell=0.0011; DVStayOut=0.0079 ------------- maF1=iMA(Symbol(),0,7,0,MODE_SMA,F_Price,0); maS1=iMA(Symbol(),0,88,0,MODE_SMA,S_Price,0); dv1=(maF1-maS1); maF2=iMA(Symbol(),0,7,0,MODE_SMA,F_Price,1); maS2=iMA(Symbol(),0,88,0,MODE_SMA,S_Price,1); dv2=-LRB-(maF1-maS1)-(maF2-maS2)); yield (dv1-dv2);
( I think it's a mistake, because finally (maF2-maS2) is returned , it signifies difference between preceding values of SMA7 and SMA88 - for the people doesn't understand MQL)
I created a histogram that reflects the signals for transactions given from the EA. I believe this is the best way to visualize the situation.
I put also a modified histogram to ignore reversals, because the original may buy on market and falling on uptrend. . .at least for a while, I do not consider a good thing.
I'm testing both versions.
if I find here enthusiasts that would like to test and try different values of SMAs, or to make any adjustments, I'm open to execute. . .maibe we can make it better...
it's a lot of work, and also therefore what I advice you to alter:
1.
Fast_Period=7;
Fast_Price =1;
Slow_Period=88;
Slow_Price = PRICE_OPEN;
you can try to change values of periods, and also of price applied ( see values below):
PRICE_CLOSE=0
PRICE_OPEN =1
PRICE_HIGH=two
PRICE_LOW =3
PRICE_MEDIAN=4 (Median price, (high low)/2)
PRICE_TYPICAL=5 (Typical price, (high low close)/3)
PRICE_WEIGHTED 6 (Weighted close price, (high low close close)/4)
DVBuySell=0.0011;
DVStayOut=0.0079;
All these are worth in pips of the period of trading. All these are for 4-5 digits (instance EUDUSD, GBPUSD); for 3 digits you must cut 00 following the dot (for USDJPY will probably be 0.11 and 0.79 )
Look forward for your reaction. Hope we can make a good job....
https://www.forexforum.co.za/attachm...4151958515.ex4
https://www.forexforum.co.za/attachm...5434835874.ex4