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

TP SL Trailing - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
12507
평가:
(30)
게시됨:
2018.10.25 15:49
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The author of the idea - Sergey Efimenko

mq5 code author - barabashkakvn

Stop loss (Stop Loss) and take profit (Take Profit) initial setting if these properties are not set for the position. Trailing works only for profitable positions.

If Only zero values is "true" - this means searching for positions having either stop loss, or take profit equal to zero. As soon as such a position is found:

  • If this is a BUY position
    • a stop loss is set: current price (Bid) minus stop loss
    • a take profit is set: current price (Bid) plus take profit
  • If this is a SELL position
    • a stop loss is set: current price (Ask) plus stop loss
    • a take profit is set: current price (Ask) minus take profit

If the Only zero values parameter is "false", stop loss (Stop Loss) and take profit (Take Profit) parameters are disabled.

The EA works for all positions on the current symbol - unique magic number is not considered.


To see how it all works, uncomment the strings:

   ExtStopLoss    = InpStopLoss     * m_adjusted_point;
   ExtTakeProfit  = InpTakeProfit   * m_adjusted_point;
   ExtTrailingStop= InpTrailingStop * m_adjusted_point;
   ExtTrailingStep= InpTrailingStep * m_adjusted_point;

//m_trade.Buy(2.0);
//m_trade.Sell(1.0);
//---
   return(INIT_SUCCEEDED);
  }

and launch the EA in the strategy tester.

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

XDeMarker_Histogram_Vol XDeMarker_Histogram_Vol

DeMarker_Histogram_Vol indicator with additional averaging of the resulting histogram

Breadandbutter2 Breadandbutter2

Trading system based on iADX (Average Directional Movement Index, ADX) and iAMA (Adaptive Moving Average, AMA) indicators. The system works on a new bar only.

SSL_NRTR SSL_NRTR

NRTR type trend indicator based on exiting the channel formed by averaging High and Low of the price series

Exp_TrendManager_Tm_Plus Exp_TrendManager_Tm_Plus

The trading system based on TrendManager indicator signals with the possibility to set a fixed position holding time