Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
4646
Rating:
(28)
Published:
2011.02.22 17:06
Updated:
2016.11.22 07:32
MQL5 Freelance 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.

tChartNavigate example


Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/296

Demo_DRAW_ZIGZAG Demo_DRAW_ZIGZAG

Simple example of use of the DRAW_ZIGZAG drawing style.

MQL5 Wizard - Trade Signals Based on 3 Black Crows/3 White Soldiers + RSI MQL5 Wizard - Trade Signals Based on 3 Black Crows/3 White Soldiers + RSI

Trade 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.

MQL5 Wizard - Trade Signals Based on Dark Cloud Cover/Piercing Line + Stochastic MQL5 Wizard - Trade Signals Based on Dark Cloud Cover/Piercing Line + Stochastic

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 + CCI MQL5 Wizard - Trade Signals Based on Dark Cloud Cover/Piercing Line + CCI

Trade 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.