Currently I'm trying to port all my indicators and systems to C# Ninja script.
One of my indicators for my intraday systems is the yesterday high-, low-, close-line and the today's open line.
In the helpfile and in some samples I found out, that for this reason I have to use the 'Add' method with PeriodType-Class (Day) to create multiple timeframe dataseries.
I copied the sample source code from the helpfile into the Initialze script to see
how this methods are working:
Add(PeriodType.Minute, 3);
Add("AAPL", PeriodType.Minute, 1);
But by compiling the code, the system fires the following message:
No overload method for 'Add' takes 2 .. ( 3 ) .. Argruments -- error code CS1501
What is wrong with this code - can anybody help me ?
Comment