Universal MA Cross EA - page 94

 

Hello at first I wanted to thank you for your nice work Secondly, I would like to ask you for help.

I find myself confronted with a problem with the use of third EMA and counter tred in the version "universalMA_Cross_EA + ecn 1.05.mq4". It turns out that the EA opens buy orders while the third EMA is above and sell orders when the third EMA is below. Could someone help me solve this mystery? ReverseCondition on the "true" does not change my problem. The platform is FXCM. Thank you in advance for your help and sorry for my English medium, but I'm French.

I attached a screen.

MY SETTINGS :

EcnBroker = true;

Expert_Name = "---------- Universal MA Cross EA v8.1";

MagicNumber = 1234;

StopLoss = 100,

TakeProfit = 200;

TrailingStop_Setting = "---------- Trailing Stop Setting";

tsp4 = " 4 = Breakeven + Lockin";

TrailingStopType = 1;

TrailingStop = 40;

ts4 = "Settings for Type 4";

BreakEven = 30;

LockInPips = 1;

Indicator_Setting = "---------- Indicator Setting";

FastMAPeriod = 4,

FastMAType = 1,

FastMAPrice = 0,

FastMAshift = 0,

SlowMAPeriod = 16,

SlowMAType = 1,

SlowMAPrice = 0,

SlowMAshift = 0;

CossDistance_Setting = "---------- Min Cross Distance Setting";

MinCrossDistance = 0,

MaxLookUp = 0;

Exit_Setting = "---------- Exit Setting";

StopAndReverse = false, //

PureSAR = false,

ExitOnCross = false;

ThirdEMA_Setting = "---------- Third MA Setting";

UseThirdMA = true,

UseCounterTrend = true,

OnlyCounterTrend = true;

ThirdMAPeriod = 200,

ThirdMAType = 1,

ThirdMAPrice = 0,

ThirdMAshift = 0,

CTStopLoss = 100,

CTTakeProfit = 200;

Pivot.Setting = "---------- Pivot Filter Setting";

Use.Pivot.Filter = false;

/* reserve for future development

extern string BGFilter_Setting = "---------- BG Cross Filter Setting";

extern bool UseBGFilter = false;

extern int BGFilter = 20;

*/

Order_Setting = "---------- Order Setting";

ReverseCondition = false,

ConfirmedOnEntry = true,

OneEntryPerBar = true;

NumberOfTries = 10,

Slippage = 5;

OpenOrder_Setting = "---------- Multiple Open Trade Setting";

MaxOpenTrade = 1,

MinPriceDistance = 5;

Time_Parameters = "---------- EA Active Time";

UseHourTrade = false;

FromHourTrade = 8;

ToHourTrade = 19;

MM_Parameters = "---------- Money Management";

Lots = 0.01;

MM = false,

AccountIsMicro = true;

Risk = 10;

Alert_Setting = "---------- Alert Setting";

EnableAlert = true;

SoundFilename = "alert.wav";

Testing_Parameters= "---------- Back Test Parameter";

PrintControl = false,

Show_Settings = true;

Thank's.

Sébastien.

Files:
ea_crossover.jpg  191 kb
 
seb7513:
Hello at first I wanted to thank you for your nice work Secondly, I would like to ask you for help.

I find myself confronted with a problem with the use of third EMA and counter tred in the version "universalMA_Cross_EA + ecn 1.05.mq4". It turns out that the EA opens buy orders while the third EMA is above and sell orders when the third EMA is below. Could someone help me solve this mystery? ReverseCondition on the "true" does not change my problem. The platform is FXCM. Thank you in advance for your help and sorry for my English medium, but I'm French.

I attached a screen.

MY SETTINGS :

EcnBroker = true;

Expert_Name = "---------- Universal MA Cross EA v8.1";

MagicNumber = 1234;

StopLoss = 100,

TakeProfit = 200;

TrailingStop_Setting = "---------- Trailing Stop Setting";

tsp4 = " 4 = Breakeven + Lockin";

TrailingStopType = 1;

TrailingStop = 40;

ts4 = "Settings for Type 4";

BreakEven = 30;

LockInPips = 1;

Indicator_Setting = "---------- Indicator Setting";

FastMAPeriod = 4,

FastMAType = 1,

FastMAPrice = 0,

FastMAshift = 0,

SlowMAPeriod = 16,

SlowMAType = 1,

SlowMAPrice = 0,

SlowMAshift = 0;

CossDistance_Setting = "---------- Min Cross Distance Setting";

MinCrossDistance = 0,

MaxLookUp = 0;

Exit_Setting = "---------- Exit Setting";

StopAndReverse = false, //

PureSAR = false,

ExitOnCross = false;

ThirdEMA_Setting = "---------- Third MA Setting";

UseThirdMA = true,

UseCounterTrend = true,

OnlyCounterTrend = true;

ThirdMAPeriod = 200,

ThirdMAType = 1,

ThirdMAPrice = 0,

ThirdMAshift = 0,

CTStopLoss = 100,

CTTakeProfit = 200;

Pivot.Setting = "---------- Pivot Filter Setting";

Use.Pivot.Filter = false;

/* reserve for future development

extern string BGFilter_Setting = "---------- BG Cross Filter Setting";

extern bool UseBGFilter = false;

extern int BGFilter = 20;

*/

Order_Setting = "---------- Order Setting";

ReverseCondition = false,

ConfirmedOnEntry = true,

OneEntryPerBar = true;

NumberOfTries = 10,

Slippage = 5;

OpenOrder_Setting = "---------- Multiple Open Trade Setting";

MaxOpenTrade = 1,

MinPriceDistance = 5;

Time_Parameters = "---------- EA Active Time";

UseHourTrade = false;

FromHourTrade = 8;

ToHourTrade = 19;

MM_Parameters = "---------- Money Management";

Lots = 0.01;

MM = false,

AccountIsMicro = true;

Risk = 10;

Alert_Setting = "---------- Alert Setting";

EnableAlert = true;

SoundFilename = "alert.wav";

Testing_Parameters= "---------- Back Test Parameter";

PrintControl = false,

Show_Settings = true;

Thank's.

Sébastien.

Hi Sebastien, As you are showing on your picture if counter trend = true, from my understanding that's what the EA is doing.

 
mrtools:
Hi Sebastien, As you are showing on your picture if counter trend = true, from my understanding that's what the EA is doing.

Hello, thank you for your reply. I thought counter trend meant "trading way". I had mistranslated the word. Thank you for your help, now it works as I wanted.

 

Hello, it's me again So I worked on optimizing the parameters of this EA, I did not find the optimal parameters, even though I'm not very far. I joined up with my strategy backest optimize parameters(more backtest come after because it takes time to do it).CAUTION I am a fan of trading one-way, so backests are consistent with my strategy.

If I come to you once again, it is already at first to share my parameters (normal after finding this EA on this forum) and a second time, I would ask someone who would able, the addition of a volume indicator which serve in the specific case of trend indicator. I do not ask this on a whim, I checked that it is consistent before coming to seek help for a complicated job.

I put the meaning of the color code for the volumes extracted directly from the source code.

# Property indicator_color1 lightseagreen / / Climax High

# Property indicator_color2 White / / Neutral

# Property indicator_color3 firebrick / / Low

# Property indicator_color4 DodgerBlue / / High Churn

# Property indicator_color5 lightsalmon / / Climax Low

# Property indicator_color6 Magenta / / Climax Churn

# Property indicator_color7 lightseagreen / / My

The colors we are interested in defining the trend are:

Climax High to IDENTIFY the uptrend:

# property indicator_color1 lightseagreen / / Climax High

Climax Low to IDENTIFY the downtrend :

Low property # indicator_color5 lightsalmon / / Climax Low

Settings :

EcnBroker = true;

Expert_Name = "---------- Universal MA Cross EA v8.1";

MagicNumber = 1234;

StopLoss = 100,

TakeProfit = 1000;

TrailingStop_Setting = "---------- Trailing Stop Setting";

tsp4 = " 4 = Breakeven + Lockin";

TrailingStopType = 1;

TrailingStop = 80;

ts4 = "Settings for Type 4";

BreakEven = 30;

LockInPips = 40;

Indicator_Setting = "---------- Indicator Setting";

FastMAPeriod = 34,

FastMAType = 1,

FastMAPrice = 0,

FastMAshift = 34,

SlowMAPeriod = 136,

SlowMAType = 1,

SlowMAPrice = 0,

SlowMAshift = 136;

CossDistance_Setting = "---------- Min Cross Distance Setting";

MinCrossDistance = 100,

MaxLookUp = 100;

Exit_Setting = "---------- Exit Setting";

StopAndReverse = false, //

PureSAR = false,

ExitOnCross = false;

ThirdEMA_Setting = "---------- Third MA Setting";

UseThirdMA = true,

UseCounterTrend = false,

OnlyCounterTrend = false;

ThirdMAPeriod = 1161,

ThirdMAType = 1,

ThirdMAPrice = 0,

ThirdMAshift = 1161,

CTStopLoss = 0,

CTTakeProfit = 0;

Pivot.Setting = "---------- Pivot Filter Setting";

Use.Pivot.Filter = false;

/* reserve for future development

extern string BGFilter_Setting = "---------- BG Cross Filter Setting";

extern bool UseBGFilter = false;

extern int BGFilter = 20;

*/

Order_Setting = "---------- Order Setting";

ReverseCondition = false,

ConfirmedOnEntry = true,

OneEntryPerBar = true;

NumberOfTries = 10,

Slippage = 5;

OpenOrder_Setting = "---------- Multiple Open Trade Setting";

MaxOpenTrade = 1,

MinPriceDistance = 5;

Time_Parameters = "---------- EA Active Time";

UseHourTrade = false;

FromHourTrade = 8;

ToHourTrade = 19;

MM_Parameters = "---------- Money Management";

Lots = 0.1;

MM = false,

AccountIsMicro = true;

Risk = 10;

Alert_Setting = "---------- Alert Setting";

EnableAlert = true;

SoundFilename = "alert.wav";

Testing_Parameters= "---------- Back Test Parameter";

PrintControl = false,

Show_Settings = true;

Thank's.

Sébastien.

Colors code :

indicator :

bettervolume-1.5-new-with-alerts.zip

 

Backtest :

Hi Seb - looks like it is Ok - I have never used the third MA. The only thing that occurs to me is that if your broker is ECN are you using the right version of the EA. There is a specific version as I understand for ECN brokers which is UniversalMA_CROSS_EA+ecn1.05 . Mind you as I have had no luck with this thing I could be wrong. I have given up on it.

Regards

Jeff

 
seb7513:
Screen : Backtest :

Hello Sébastien, just to let you know am working on adding the Better Volume indicator.

 
jeffpark:
Hi mladen,

I have been trying again to get the Universal MA Cross to work and just wonder if I have made some silly mistake in the settings as I cannot get it to enter trades - or at least only rarely. The settings I have for M5 gold and oil are:

Re: Universal MA Cross EA

Settings are:

Settings are:

Ecn broker - true

StopLoss (default 100) - 2

TakeProfit (default 200) - 3

TrailingStop (default 40) 2

Moving Average Setting :

------------------------

FastMAPeriod (default 10 - ) 10

FastMAType (default EMA / 1) - 1

FastMAPrice (default Close / 0) - 0

SlowMAPeriod (default 80) - 15

SlowMAType (default EMA / 1) - 1

SlowMAPrice (default Close / 0) - 0

Slow MA Shift - 0

ver.2 MinCrossDistance (default 0) – 0, tried 1 also

ver.7 MaxLookUp (default 1) - 1

Exit Setting :

-------------

StopAndReverse (default true) – true

PureSAR (default false) - false

ver.7.2 ExitOnCross (default false) - false

ver.5 UseThirdMA (default false) – false

ver.7 OnlyCounterTrend (default false)

Use third MA - false

ver.5 CT – all false

ver.8.0 Use.Pivot.Filter (default false) – false

ReverseCondition (default false) - false

Set TRUE to reverse the entry condition.

ver.3 ConfirmedOnEntry (default true) - true

ver.4 OneEntryPerBar (default true) - true).

NumberOfTries (default 5) - 5

Slippage (default 5) - 1

MagicNumber (default 1234)

ver.5 MaxOpenTrade (default 2) - 2

ver.6 MinPriceDistance (default 5) - 1

UseHourTrade (default false) - false

Lots (default 1) – 10 for gold (1 pip = £0.065

MM (default false) - false

AccountIsMicro (default false) - false.

Risk (default 10) - false

EnableAlert (default true) – true

ver.5 SoundFilename (default "alert.wav")

Thanks

Jeff

Jeff while testing do you get any messages in your terminal/experts or terminal/journal tabs? Am thinking your trailing stop, take profit, and stop loss are to small.

 
jeffpark:

Hi Seb - looks like it is Ok - I have never used the third MA. The only thing that occurs to me is that if your broker is ECN are you using the right version of the EA. There is a specific version as I understand for ECN brokers which is UniversalMA_CROSS_EA+ecn1.05 . Mind you as I have had no luck with this thing I could be wrong. I have given up on it.

Regards

Jeff

Hello Jeff, thank's for you message.

I work on ECN broker with UniversalMA_CROSS_EA + version ecn1.05. My broker is FXCM and is ECN. For me no problem with this version. THE third EMA is very useful to me, but not sufficient to determine the trend. Once MrTools (thank's soo mutch for your work) has finished work on adding the BetterVolume indicator that will give us a pattern to follow, I optimize my best parameters to make it work in all the world ECN or not. I thought that moving averages are among the most reliable indicators and also the most used. Do not give up and continue to seek the ideal parameters (if it's exist) Personally it is now three days non-stop (sleeping 5 hours per night) I'm trying to optimize my parameters to work at best and especially over time. Because at first, I had different parameters that worked great from 1999 to 2006 (backtest) and from 2006 to 2009 these same parameters made ​​me lose all my profits and even took on the previous year. So that's why in my opinion the optimization of a trading robot and a tedious and very long work. because the interest eventually and it works on time and not just over a short period. Know this, I will post my findings for the parameters that I consider ideal, as and when my research. And if I find one that works parameters over time, then everyone will be happy and will enjoy it. I'm all for sharing. Besides passing a big thank you to the person in this forum who create robots and then share with us, then we make it a good use.

See you soon.

sorry for my english Frenchified lol

Sébastien.

 
mrtools:
Hello Sébastien, just to let you know am working on adding the Better Volume indicator.

Thank's Thank's Thank's MrTools, I hope that I would get this indicator to find much better parameters. It is nice of you to dedicate time to requests like mine. Hoping that it benefits everyone.

Thank's.

Sébastien.