I have an indicator in which the user selects from one of several options. Lets call them a, b, or c. Depending on the option selected, I would like to associate a different IDataSeries with a custom series I call input. I would like to use the following in the OnStartUp():
switch (inputValue)
{
case a:
input = Open;
break;
case b:
input = 0.273 *(High - Low) + 0.333;
break;
case c:
input = Open/Low;
break;
default: // no action required
break;
}
This way I could simply use the variable (series) input in my code. I know about the Input series that is already available but I am looking to assign custom series rather than the PriceType supported.
Any suggestions would be greatly appreciated. Thank you.

Comment