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

Opening and Сlosing on time v2 - MetaTrader 5용 expert

조회수:
6385
평가:
(24)
게시됨:
2017.01.19 17:08
업데이트됨:
2018.07.20 14:29
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The EA opens and closes positions at a specified time. The condition is additionally checked:

  • for Buy —  if the fast iMA on the first bar exceeds the slow iMA
                   if(iMAGet(handle_iMAFast,1)>iMAGet(handle_iMASlow,1))
                     {
                      if(!RefreshRates())
                         return;
                      price=m_symbol.Ask();
                      if(Extm_sl>0.0)
                         sl=m_symbol.Bid()-Extm_sl;
                      if(Extm_tp>0.0)
                         tp=m_symbol.Bid()+Extm_tp;
                      m_trade.Buy(m_lots,InpSymbol,price,sl,tp);
                     }
  • for Sell — if the fast iMA on the first bar is less than the slow iMA
                   if(iMAGet(handle_iMAFast,1)<iMAGet(handle_iMASlow,1))
                     {
                      if(!RefreshRates())
                         return;
                      price=m_symbol.Bid();
                      if(Extm_sl>0.0)
                         sl=m_symbol.Ask()+Extm_sl;
                      if(Extm_tp>0.0)
                         tp=m_symbol.Ask()-Extm_tp;
                      m_trade.Sell(m_lots,InpSymbol,price,sl,tp);
                     }

Only HH:mm are considered in the inputs (time).

Inputs:

opening time (only HH:mm are considered) — position open time

closing time (only HH:mm are considered) — position close time

symbol — traded symbol

volume transaction — position volume

sell stop stop loss level

take profit  take profit level

true -> Buy, false -> Sell — if "true", only "Buy" positions are opened; if "false", only "Sell" ones

magic number — EA's magic number. 

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

Exp_Bezier_ReOpen Exp_Bezier_ReOpen

The Exp_Bezier_ReOpen trading system is based on the Bezier indicator color change with adding to trend-following positions.

EnvelopesATR_Cloud_HTF EnvelopesATR_Cloud_HTF

The EnvelopesATR_Cloud indicator with the timeframe selection option available in the input parameters.

DoubleUp с изгибом DoubleUp с изгибом

The Expert Advisor works comparing iCCI and iMACD indicators.

Exp_JBrainTrend1Stop_ReOpen Exp_JBrainTrend1Stop_ReOpen

The Exp_JBrainTrend1Stop_ReOpen trading system is based on the JBrainTrend1Stop indicator color change with adding to trend-following positions.