Portland Oregon, United States
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731
|
Use the Add method to create dataseries for TICK and TICKQ in your indicator. Declare two doubles, L1 and L2.
OnBarUpdate, when BarsInProgress=1 then L1, the latest value of TICK will be Closes[1][0] and when BarsInProgress=2, then L2, the latest value of TICKQ will be Closes[2][0].
So whenever there is an OnBarUpdate event with BarsInProgress other than zero, set the value of your output dataseries to L1+L2.
For additional information look up BarsInProgress in Ninjatrader Help.
|