Hi All, I like to create an indicator and use that indicator in my algorithm. I also want to backtest the algorithm online.

Now I am think of two ways,

1. Instead of create an indicator, create a method inside of the algorithm.

2. Create a cs file (indicator), and save it in the file folder online.

And there is the third way,

3.Create this indicator in local, but I am running a multiple equities and time frame strategies, so I think it is better to run backtest online. Is it right? 

Thanks guys