Download MetaTrader 5
To add comments, please log in or register
You don't know MQL5 but you do know how to sell? The affiliate program is at your service!
MetaQuotes Software Corp.
MetaQuotes Software Corp. 2016.05.27 08:19 

New article How to create an indicator of non-standard charts for MetaTrader Market has been published:

Through offline charts, programming in MQL4, and reasonable willingness, you can get a variety of chart types: "Point & Figure", "Renko", "Kagi", "Range bars", equivolume charts, etc. In this article, we will show how this can be achieved without using DLL, and therefore such "two-for-one" indicators can be published and purchased from the Market.

Examples from the article can be downloaded from the Market for free:

  • USDx Chart MT4 - the "USDx Chart MT4" indicator creates an offline chart where dollar index is drawn instead of commonly used bars and candlesticks. 
  • Renko Chart MT4 - the Renko Chart MT4 indicator creates an offline Renko chart where all bars are shown as Renko bricks. Bricks don't have shadows, and the size of a brick is specified in settings.

2.3. Copying the indicator to the offline chart

We will add new functionality to the IndMACDDoubleDuty indicator. Now, while operating in the maintenance mode, the indicator must transfer its copy to the created offline chart. The following functions  ChartSaveTemplate and ChartApplyTemplate will be used to assist with this. The OnCalcalculate() algorithm will look as follows:


Author: Karputov Vladimir

To add comments, please log in or register