Is there a way to just change Alert() to something else and run it as a Strategy? Alternatively, could I copy the entire code from the indicator into a new Strategy?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How convert an indicator to a strategy
Collapse
X
-
How convert an indicator to a strategy
If I have a custom NinjaScript indicator that gives an alert when a given set of conditions is true, how can I backtest it in Strategy Analyzer?
Is there a way to just change Alert() to something else and run it as a Strategy? Alternatively, could I copy the entire code from the indicator into a new Strategy?Tags: None
-
If your indicator has a plot value such as 1 when true, 0 when false, just reference the indicator in a strategy otherwise, you could just copy releveant logic from the indicator onBarUpdate() to the strategy OnBarUpdate(). Keep in mind, there may be some methods/properties that don't transfer over.RayNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by r68cervera, Today, 05:29 AM
|
0 responses
2 views
0 likes
|
Last Post
by r68cervera
Today, 05:29 AM
|
||
Started by geddyisodin, Today, 05:20 AM
|
0 responses
3 views
0 likes
|
Last Post
by geddyisodin
Today, 05:20 AM
|
||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
6 responses
34 views
0 likes
|
Last Post
by JonesJoker
Today, 05:14 AM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
12 responses
3,239 views
0 likes
|
Last Post
by Leafcutter
Today, 05:08 AM
|
||
Hi
by AveryFlynn
Started by AveryFlynn, Today, 04:57 AM
|
0 responses
6 views
0 likes
|
Last Post
by AveryFlynn
Today, 04:57 AM
|
Comment