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 Padan, Today, 02:02 AM
|
9 responses
21 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
||
Started by Lele2k24, Yesterday, 11:24 AM
|
12 responses
37 views
0 likes
|
Last Post Today, 03:07 PM |
Comment