I am attempting to create an indicator that gives me the total volume of all members of the Dow 30 on a single chart of the DJIA index.
I'm attempting to use Add("<Instrument>", PeriodType.Minute, 1); were <instrument> would be an individual stock. But when I try to Compile it, it gives a message, "No overload for method 'Add' takes '3' arguments": And the error code is; CS1501.
Even if I cut-and-paste the example straight from the NT user manual, I still get this message. Can someone please tell me what I'm doing wrong here?
The following is a sample from the manual:
Examples
protected override void Initialize()
{
// Add a 5 minute Bars object - BarsInProgress index = 1
Add(PeriodType.Minute, 5);
// Add a 100 tick Bars object for the ES 12-06 contract - BarsInProgress index = 2
Add("ES 12-06", PeriodType.Tick, 100);
// Charts a 20 period simple moving average to the chart
Add(SMA(20));
}
But If I try to use any of the examples, it won't compile
Yam Digger
Comment