거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

MA_Mirror EA - MetaTrader 4용 expert

조회수:
19886
평가:
(7)
게시됨:
2010.10.13 08:41
업데이트됨:
2014.04.21 14:55
\MQL4\Include\
ea.mqh (8.96 KB) 조회
ea_1_1.mqh (12.1 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Based on the indicator https://www.mql5.com/en/code/9937 (Thanks a lot) I wrote this simple Expert Advisor and it makes profit, at least in trend phases. Also in small time frames like M1 or 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. Signal() returns -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(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,i)-iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_OPEN,i);
ma2=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_OPEN,i)-iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,i);

if (ma1 > ma2) signal = OP_BUY;
if (ma1 < ma2) signal = OP_SELL;

return (signal);

}


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).




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


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


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


Moving Average Mirror Moving Average Mirror

Entry BUY after Red Line crossing up the Blue Line and exit before the Red Line crossing down the Blue Line. Opposite position : entry SELL after Red Line crossing down the Blue Line.

BandsFilter BandsFilter

Полосы Боллинджера на основе цифровых фильтров

RSI Mirror RSI Mirror

Another simple, powerfull and profitable Mirror Indicator.

SDL_MAM SDL_MAM

Upgraded version of Slope Direction Line.