Download MetaTrader 5
To add comments, please log in or register
Format text in the messages editor. It is convenient!
kemalturgay
265
kemalturgay 2014.11.01 18:00 

It is always zero for an indicator applied to bar values ... right?

Exception: It is not zero only if a custom indicator applied to any other previous indicator which has PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,number) in its code?

In this case, "number" parameter is seen as a "begin" value for the second indicator?

Stanislav Korotky
16795
Stanislav Korotky 2014.11.03 15:07  
You are right. You may refer to this article - https://www.mql5.com/en/articles/10
MQL5: Create Your Own Indicator
MQL5: Create Your Own Indicator
  • 2010.01.06
  • MetaQuotes Software Corp.
  • www.mql5.com
What is an indicator? It is a set of calculated values that we want to be displayed on the screen in a convenient way. Sets of values are represented in programs as arrays. Thus, creation of an indicator means writing an algorithm that handles some arrays (price arrays) and records results of handling to other arrays (indicator values). By describing creation of True Strength Index, the author shows how to write indicators in MQL5.
kemalturgay
265
kemalturgay 2014.11.03 22:09  
Thank you.
/
To add comments, please log in or register