Join our fan page
ChartNavigate Demo - script for MetaTrader 5
- Views:
- 4646
- Rating:
- Published:
- 2011.02.22 17:06
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Simple script with demonstration of use of the ChartNavigate() function.
The script uses several chart functions:
- ChartID() - to get the handle of the chart with the script launched (the handle is used in chart operations)
- ChartGetInteger() - to get the number of the first visible bar on the chart (indexing as timeseries is used - the last (uncompleted) bar has index 0),
- ChartSetInteger() - to set chart shift from the right border of the chart, to disable autoscroll when new tick, to set drawing as candles and showing of tick volumes.
Each navigation demo is commented using the Comment() function.
t
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/296
Simple example of use of the DRAW_ZIGZAG drawing style.
MQL5 Wizard - Trade Signals Based on 3 Black Crows/3 White Soldiers + RSITrade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
MQL5 Wizard - Trade Signals Based on Dark Cloud Cover/Piercing Line + CCITrade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.