I'm new to the forums, but not new to NinjaTrader. I recently became interested in going automated with my trades. I'm trying to get familiar with the Strategy Wizard and I understand how to program a simple SMA crossover. The question I have now is creating a simple MACD crossover. I am not sure if it's done correctly. I've attached a screenshot of the window for you guys to confirm if it looks correct. My second question would be, how could I setup a MACD Histogram crossover from negative to positive on the wizard? I'm guessing I would have to code that manually because I don't see it anywhere. Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
MACD Crossover
Collapse
X
-
MACD Crossover
Hi everybody,
I'm new to the forums, but not new to NinjaTrader. I recently became interested in going automated with my trades. I'm trying to get familiar with the Strategy Wizard and I understand how to program a simple SMA crossover. The question I have now is creating a simple MACD crossover. I am not sure if it's done correctly. I've attached a screenshot of the window for you guys to confirm if it looks correct. My second question would be, how could I setup a MACD Histogram crossover from negative to positive on the wizard? I'm guessing I would have to code that manually because I don't see it anywhere. Thank you.Last edited by VortexIndicator; 05-16-2013, 12:06 AM.Tags: None
-
Originally posted by NinjaTrader_Bertrand View PostWelcome to our forums VortexIndicator - looks correct, you picked the MACD and Avg plots in the CrossOver condition. For the histogram, you can access that plot as well in the wizard, however the condition would then be expressed like the attached example. All the best.
Thanks. I am having a hard time understanding the attachment. Am I supposed to import it? I'm looking at the syntax and not understanding it very well.
// Condition set 1
if (Position.MarketPosition == MarketPosition.Flat
&& CrossAbove(MACD(12, 26, 9).Diff, 0, 1))
How would that be inputted in the wizard?Last edited by VortexIndicator; 05-16-2013, 09:09 PM.
Comment
-
Okay, I figured out how to view the strategy by going to edit under tools. I don't understand why you added the first condition: Position.MarketPosition == MarketPosition.Flat. Can you walk me through on how and why the conditions are setup the way they are?
Comment
-
Great you were able to review, correct it needs to be imported first and then would be available for editing as NinjaScript wizard strategy. The flat condition is in, so the script would only take new trade if it's strategy position is currently flat, not as critial here as we're not having yet for example a condition for shorts in it. Depends generally of course what you're looking to setup and if would like to see reversals or not coming through.
To get started via the wizard's point and click strategy creation interface, I would highly suggest checking through these resources first - http://www.ninjatrader.com/support/h...egy_wizard.htm
Further we also offer live webinars on stratrgy creation, the next free one would be held on May 21st - http://www.ninjatrader.com/ProductEducation.php
In addition to that there's Premium educational content available that would go much deeper in detail on those topics - http://www.ninjatrader.com/PremiumEducation.php
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, Yesterday, 10:06 AM
|
0 responses
14 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
11 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
4 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
31 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment