거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
20750
평가:
(41)
게시됨:
2017.11.03 12:39
업데이트됨:
2017.11.21 08:25
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Resistance and support lines are drawn based on the iFractals indicator. The indicator takes into account the fact that the last value of Fractals can be redrawn, therefore +5 additional bars are analyzed:

//--- number of values copied from the iFractals indicator 
   int values_to_copy=-1;
//--- if it is the first start of calculation of the indicator
   if(prev_calculated==0)
      values_to_copy=rates_total;
   else
     {
      //--- it means that it's not the first time of the indicator calculation, and since the last call of OnCalculate() 
      //--- for calculation not more than one bar is added 
      //--- value "+5" - because of the feature of drawing fractals
      values_to_copy=(rates_total-prev_calculated)+5;
     }

In order to compare "Resistance & Support" and "Fractals" in the strategy tester, do the following:

  • Attach "Fractals" on a clear chart.
  • Then right-click on the chart → Templates → Save Template. Use "tester" for the name of the template. As a result, you save the chart with the attached Fractals indicator in the "tester.tpl" template.
  • Start:
    • Either debugging on history (from the MetaEditor by pressing "Ctrl" + "F5")
    • Or visual testing (from the terminal, from the Strategy Tester window).

Testing of the "Resistance & Support" indicator in the strategy tester is shown below:

Resistance & Support

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

MACD Stochastic MACD Stochastic

The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)

Nova Nova

The Expert Advisor checks the direction in which the price has been moving for the last 10 seconds, and opens a position in accordance with the movement. The EA sets Stop Loss and Take Profit.

CDictionary CDictionary

An implementation of the dictionary (associative array) data structure in MQL5, based on CArrayObj and CList.

PS Magicas - Three moving averages PS Magicas - Three moving averages

PS Magicas - Three moving averages that give target and possible entries.