Unisciti alla nostra fan page
Resistance & Support - indicatore per MetaTrader 5
- Visualizzazioni:
- 21321
- Valutazioni:
- Pubblicato:
- 2017.11.03 12:39
- Aggiornato:
- 2017.11.21 08:25
- Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
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:
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/19241
The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)
NovaThe 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.
An implementation of the dictionary (associative array) data structure in MQL5, based on CArrayObj and CList.
PS Magicas - Three moving averagesPS Magicas - Three moving averages that give target and possible entries.