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 Mariawilcoxi, Today, 01:32 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
3 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
44 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
5 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
9 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
Comment