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

MA Trend - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
16096
평가:
(39)
게시됨:
2019.02.07 09:02
MA Trend.mq5 (76.74 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Idea by: Dmitry

mq5 code by: barabashkakvn

The Expert Advisor uses indicator iMA (Moving Average, MA). It has many settings:

  • Only one positions - only one position can be held in the market
  • Reverse - reversal of trading signals
  • Close opposite - forcedly closing opposite positions when receiving a trading signal

Generating trading signals, where all parameters are set by default:

The current ASK price is higher than the indicator value on bar #1 -> a signal to open a BUY position

The current BID price is lower than the indicator value on bar #1 -> a signal to open a SELL position

And how it looks in the MQL5 code:

      if(m_symbol.Ask()>ma[1])
         m_need_open_buy=true;
      else if(m_symbol.Bid()<ma[1])
         m_need_open_sell=true;


A sample of how it works where parameters of Only one positions are false and true:

MA Trend


The next sample of Only one positions - true, Reverse - false, and Close opposite - true: A BUY position was opened, and then a signal for opening a SELL position was received. Since Close opposite - true, then the BUY position was closed first (as it was opposite to the signal) and only after that the SELL position was opened.

MA Trend

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/23589

PEMA_3HTF PEMA_3HTF

Three PEMAs from three different timeframes on a single chart

PEMA_2HTF PEMA_2HTF

A colored cloud made of two PEMAs from different timeframes on a single chart.

CandlesAutoFibo_Grand CandlesAutoFibo_Grand

Indicator CandlesAutoFibo with a wider range of settings to display Fibo levels.

BITEX.ONE MarketMaker v1.01 BITEX.ONE MarketMaker v1.01

The market maker robot for trading futures and swap cryptocurrency contracts