Page 13 of 38

Re: Simple Expert Advisors (EA's) for MT4

Posted: Sat Jun 03, 2017 8:15 pm
by AmirDehghani
Dear Pro s
I Do some Changes till the line 200th , But after that , get Confused!
Please Help.
(I Tried to Change the "universalMA Averages 8.8 Cross(sessions)_Ea.mq4" Codes to Make My EA Based on the Indi "GannHiLoActivator_mtf.mq4")
I attached them:

Re: Simple Expert Advisors (EA's) for MT4

Posted: Sun Jun 04, 2017 9:05 am
by MrPip
I have found a problem with the universalMA... EA.
It does not allow closing or modifying open trades outside the trade time from the original code because that is the first check and it returns to start instead of allowing the close and trailing rule to be used.
I am modifying by moving code to the proper place and a little rework to make it easier to make mods for other ideas.

Re: Simple Expert Advisors (EA's) for MT4

Posted: Sun Jun 04, 2017 11:10 am
by MrPip
Here is the new version of universal... and the Gann strategy as I understand it. No custom indicator as I rolled the code to the EA for faster testing.
I moved code around to more logical places.
It should be easier to change strategies now, especially by comparing the two.

Re: Simple Expert Advisors (EA's) for MT4

Posted: Sun Jun 04, 2017 9:43 pm
by AmirDehghani
MrPip wrote: Sun Jun 04, 2017 11:10 am Here is the new version of universal... and the Gann strategy as I understand it. No custom indicator as I rolled the code to the EA for faster testing.
I moved code around to more logical places.
It should be easier to change strategies now, especially by comparing the two.
Dear MrPip
As I understand, you didnt call the Indicator by icustome from outside, yes?
the Indi Code, Is Inside the EA ?
And Is the EA done ? or need some change to take order according to "Gann HiLo Activator MTF" SIGNAL and when signal changed, at next bar, close the current and take the opposite?
Many Thanks

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 5:06 am
by MrPip
The code that determined when to take a trade was taken from the indicator and placed in the EA.
GetSignal routine has the code for that by assigning trend and trend change determines the entry/exit.
It appeared to work correctly on backtest.

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 5:53 am
by mntiwana
MrPip wrote: Mon Jun 05, 2017 5:06 am The code that determined when to take a trade was taken from the indicator and placed in the EA.
GetSignal routine has the code for that by assigning trend and trend change determines the entry/exit.
It appeared to work correctly on backtest.
Hi MrPip
Big Appreciations for your time and work for traders
regards

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 5:59 am
by AmirDehghani
MrPip wrote: Mon Jun 05, 2017 5:06 am The code that determined when to take a trade was taken from the indicator and placed in the EA.
GetSignal routine has the code for that by assigning trend and trend change determines the entry/exit.
It appeared to work correctly on backtest.
Many Thanks Dear MrPip

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 7:43 am
by AmirDehghani
MrPip wrote: Mon Jun 05, 2017 5:06 am The code that determined when to take a trade was taken from the indicator and placed in the EA.
GetSignal routine has the code for that by assigning trend and trend change determines the entry/exit.
It appeared to work correctly on backtest.
Dear MrPip
There is a surplus message alert.
Also when market begins, Indi Show sell but EA, (with same setting as Indi for LB and used tf) , take a buy, next bar close buy and take sell and next bar again buy!
maybe ea take position according "still open bar" (in setting is false)
Please take a look at pics:

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 8:54 am
by MrPip
Updated to use entered myTimeFrame.
Misses that piece and old version used same timeframe as chart.

Re: Simple Expert Advisors (EA's) for MT4

Posted: Mon Jun 05, 2017 5:02 pm
by AmirDehghani
MrPip wrote: Mon Jun 05, 2017 8:54 am Updated to use entered myTimeFrame.
Misses that piece and old version used same timeframe as chart.
Thank You MrPip
fake alert still exists