need to know two things:
1. As I explained above about my MA/indicator , If I've 10 stocks (rows) and 5 columns (5m/15m...)
how many instances of my indicator will be runing ?.
2. I need to run the pivot check to do a calculation but only once I need to do this, how do I control this in onBarUpdate() only once per session, if possible.
here is the code I'm using as a call in the onBarUpdate()
private void getPivotValue(){
if (Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).PP.ContainsValue(0))
{
// Prints the current pivot point value
pivotPP = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).PP[0];
Print(Instrument.MasterInstrument.Name+"pivot is " + pivotPP.ToString());
}
}// end

Comment