Need a confirmation about the "begin" paramater in the OnCalculate

 

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?

 
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.
 
Thank you.
Reason: