MA_미러 EA

0
(0)
이름:
MA_미러 EA
작가: 플로레스 (2010.10.13 10:41)
다운로드됨: 3050
다운로드:
MA_Mirror EA 1
of.mqh (9.0 kb) 보다
MA_Mirror EA 1 ea_1_1.mqh (12.1 kb) 보다
MA_Mirror EA 1 MA_MirrorEA.mq4 (2.7 kb) 보다
Based on the indicator http://codebase.mql4.com/7061 (정말 감사합니다) 이 간단한 Expert Advisor를 작성했는데 수익이 발생했습니다., 적어도 추세 단계에서는. 또한 M1 또는 M5와 같은 짧은 시간 프레임에도.

The more complicated functions are in the include file ea.mhq and serve for all my expert advisors. The start() functions checks the order, calls the function which does trailing stop loss and such then calls the function Signal() to find out if the indicator part of the EA wants something to have done, it than acts acording to the Signal. 신호() 보고 -1 or OP_BUY/OP_SELL if it wants to sell or buy.

int Signal()
{

int i=1;
int signal = -1;
double ma1, ma2;
ma1=iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,나)-iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_OPEN,나);
ma2=iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_OPEN,나)-iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,나);

만약에 (ma1 > ma2) signal = OP_BUY;
만약에 (ma1 < ma2) signal = OP_SELL;

반품 (신호);

}

 

You can simple modify the Signal() to do what you want, for example a different indicator, always buy or sell or even use a random number gernerator (I use all of them in order to see if the expert is better than simply buying or selling (in a trend) or random).

 

MA_Mirror EA 4

MA_Mirror EA 5

 

 

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

 

Updated version of ea.mqh, please rename to ea.mqh

 

There was an error in FindOrders (I accidently removed a line)
New feature: 손익분기점, if indicator is 20 pips in plus, it sets stop loss to be 0

 

8 코멘트 새 댓글을 게시하려면, 제발 로그인 또는 등록하다

Thanks for EA, this EA did not start. the error is "Cannot open file: 씨:\meta\ SIGTrader\experts\MA_MirrorEA.ex4 on the GBPUSDX,M1". Please specify instructions on how to go about your EA.
02.12.2011 07:26 gspin

Thankyou very much.

I put the ea file in experts folder and try to run the ea on chart but it is not working. Please suggest me if anything to do with above two files as well.

 

Regards

Mayank

22.11.2010 13:39 mayanksaini11

I think it also makes the moving average react faster - at least it is more successful than using a single ma.
29.10.2010 01:38 플로레스

There are some brokers which do not allow setting the stop loss at the same time as opening the order.

The EA has more functions than nessary, this is because I develop ea.mqh separatly from the experts, so each expert profits from a new version of ea.mqh.

29.10.2010 01:17 플로레스

I don't think the signal function is doing much, just gets the difference of CLOSE & OPEN prices, we only need one variable MA, no need of ma1 & ma2, ma2 is opposite of ma1

int Signal()
{

int i=1;
int signal = -1;

double ma;

ma=iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,나)-iMA(없는,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_OPEN,나);

만약에 (엄마 > 0) signal = OP_BUY;
만약에 (엄마 < 0) signal = OP_SELL;

반품 (신호);

 

18.10.2010 12:30 samuelkngugi

I have the same error, "Invalid stops, Order Send error 130", and I have tried many different lot sizes with no difference.

Have you got a hint on why your stoploss or stops are failing!

I also noticed that "EA.mqh and MA_MirrorEA.mq4" when compiled, show all errors about missing links to functions.

감사해요

Roger

16.10.2010 08:31 Micky52

kwng:
I have tried your EA and have an error message: MA_MirrorEA EURUSD,M1: Error invalid trade volume, an EA was not working, may I know what's wrong with it. 감사해요.

This is the lot size, default ist 0,01 but this small is not allowed by all brokers.

14.10.2010 14:24 플로레스

I have tried your EA and have an error message: MA_MirrorEA EURUSD,M1: Error invalid trade volume, an EA was not working, may I know what's wrong with it. 감사해요.

이 게시물이 얼마나 유용했나요??

평가하려면 별표를 클릭하세요.!

평균 평점 0 / 5. 투표수: 0

현재까지 투표가 없습니다! 이 게시물을 가장 먼저 평가해 보세요..

이 게시물이 귀하에게 도움이 되지 못했다니 죄송합니다!

이 게시물을 개선해 보겠습니다.!

이 게시물을 개선할 수 있는 방법을 알려주세요.?



작가: 외환 위키 팀
우리는 경험이 풍부한 Forex 트레이더 팀입니다. [2000-2023] 우리 자신의 조건에 따라 삶을 살기 위해 헌신하는 사람들. 우리의 주요 목표는 재정적 독립과 자유를 얻는 것입니다., 우리는 자기 교육을 추구하고 Forex 시장에서 자립 가능한 라이프 스타일을 달성하기 위한 수단으로 광범위한 경험을 얻었습니다..