Each indicator code script seems to have three basic sections.
1. The first section, when expanded, lists some declarations (like using System.Diagnostics;
using System.Drawing;etc etc.) - I do not change these. Correct?
2. The second section contains - in this case for the SMA indicator - three sub sections:
2.0. First it states the name of the indicator with: "public class SMA : Indicator". This is where I give my indicator a name, correct?
2.1. It then has a sub-section "Variables" which begins with #region and ends with #endregion:
private int period = 14; Once the indicator building is complete, this is what shows up as the default value. Correct?
2.2. Now come the sub-sections called
"protected override void Initialize()" and
"protected override void OnBarUpdate()". No question on these because I believe there is plenty of explanations in the NT Help section which I will study.
2.3. Now comes a sub-section called "#region Properties". Why is the earlier subsection "private int" but this one "public int"? Where can I read something about the difference between the two?
3. The third section is entitled NT generated code. Neither change nor remove. I take it to mean just that: I do not need to mess with it at all. It is created when I am done in Section 1 and 2 above and push the COMPILE button. Correct?
Lastly, one probably more advanced question: I want to evenutally create a multi time frame script. In which of the above three section do I need to put the Syntax "BarsArray [int index]"?
sandman
Comment