PDA

View Full Version : Modification of indicator used by strategy


ct
05-12-2007, 09:17 AM
Scenario: I modify a custom indicator that is used by an active strategy. I make the changes and press compile for the indicator.

Question: Does the strategy the uses this indicator see the new compiled version of the indicator or do I need to press f5 or "apply" on the strategy?

I wanted to know what is required (if anything) to make sure the new version is used.

Also if I recompile an active strategy do I need to do anything for the new version to take effect.

Cliff

NinjaTrader_Ray
05-12-2007, 09:26 AM
Cliff,

Good question. Any active strategies will be using the prior version of your indicator. If you change an indicator and have strategies running, you will have to remove those strategies and reapply them to a chart.

NinjaTrader_Ray
05-12-2007, 09:28 AM
I should add, if you changed the implementation of the indicator by adding/removing Inputs, the method signature for this indicator may change. You may have to edit your strategy to compensate for the changing overloads.

ct
05-12-2007, 10:05 AM
Ray

Thanks for the reply. Glad you are there but shame on you for working on Saturday. lol.

I understand the signature issue but that isn't a problem for me. I have a set of values/constants I manually input each day. Then recompile. I can put the values in the strategy or custom indicator. I didn't know if one or the other was better.

If I modify a strategy or indicator it seems f5 works. Is this ok or not recommended?

Regards

Cliff

NinjaTrader_Ray
05-12-2007, 10:47 AM
Yes, F5 is fine since that reloads all NinjaScript objects in a chart.