Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Wizard for Coding Indicators
Collapse
X
-
Strategy Wizard for Coding Indicators
The NT strategy wizard seems to have more features and capabilities than the indicator wizard. Unless one knows programming, the indicator wizard is not really a big help. However, creating a simple strategy requires little knowledge of programming. Can one use the Strategy Wizard to develop indicators and how?
Thanks.Tags: None
-
Thanks Brett,
Well, I know that much already. My question is: Can I use Strategy Wizard to develope an indicator? For example, a strategy that will draw an arrow when two moving averages cross. Having done this, can I convert the strategy code into an indicator that simply when attached to the chart would draw the arrow without having to run the strategy? This is my question.
Thanks
Comment
-
Actually, you can, in many cases, as a lot of the commands are common between strategies and indicators. However, you will have to cut-and-paste the code from the strategy into the indicator. In the particular case that you cite, yes, you absolutely can. Just use the strategy wizard to write your crossover condition, then cut-and-paste it into your indicator.Originally posted by aligator View PostThanks Brett,
Well, I know that much already. My question is: Can I use Strategy Wizard to develope an indicator? For example, a strategy that will draw an arrow when two moving averages cross. Having done this, can I convert the strategy code into an indicator that simply when attached to the chart would draw the arrow without having to run the strategy? This is my question.
Thanks
In fact, in many cases, I find it the quickest way to get code, when I do not want to dig through the help file. It is a really handy quick and dirty way to get code snippets. Remember that in this case, you are just generating snippets, so the strategy does not even have to make sense. Just generate the action for drawing an arrow after a crossover action, then copy the code by showing it in the editor, with the appropriate button from the wizard screen.
Not all code can be generated this way, and obviously commands specific to strategies only, (for example, those that generate orders), will not work in indicators. If that is the case, the compiler will usually let you know.Last edited by koganam; 04-04-2011, 01:17 AM.
Comment
-
Interesting thread.
I have thought myself what is the difference.
A question I have is that you can not load a strategy if Chart Trader is active, which is (sort of) understandable but what if you just want to generate signals and trade from the chart manually?
If this is technically possible could there not be a switch to allow.
Thanks
Alan
Comment
-
In that case, I turn the strategy into an indicator, and where the strategy generated orders, I substitute drawing arrows or triangles. Actually, in many cases the strategy was making the drawings anyway, so I just have to comment out the trade order commands.Originally posted by saintalan View PostInteresting thread.
I have thought myself what is the difference.
A question I have is that you can not load a strategy if Chart Trader is active, which is (sort of) understandable but what if you just want to generate signals and trade from the chart manually?
If this is technically possible could there not be a switch to allow.
Thanks
AlanLast edited by koganam; 04-04-2011, 11:28 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
577 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment