declaring a string input variable
eg. private string symbol = @"SPY"
and then adding the new instrument in Initialize
eg. Add(symbol, Period.Type.Day, 1)
And that way I can manually change what additional instrument I add into the indicator every time I set my parameters for an indicator.
But how do I change the Period.Type? It's not a string, so I can't just enter in another string parameter/variable.
Comment