Thank you
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Wizard Question
Collapse
X
-
Strategy Wizard Question
Using the Strategy Wizard, is there a way to enter a position long only when a Moving Average's slope in increasing in a positive direction and increasing in strength(not starting to rollover). Some times a Moving Average will be going up but starting to slow down(rollover). I don't want to enter when this happens. I have been lookiing in the Strategy Wizard's Misc options. There is a Raising and a Slope option. Will either of these work?
Thank youTags: None
-
Slope Rising/Falling syntax errors - HELP
I'm kind of having similar issues with Slope().
In layman's terms, here is what I am trying to say:
"Slope of the 50SMA starting 15 bars ago is RISING"
I keep getting Error code CS0019: "Operator '==' cannot be applied to operands of type 'double' and 'bool'."
Here is the code I have that gets the error:
Slope(SMA(50), 15, 0) == Rising(DefaultInput)
If someone could please help me out with this, I have spent way too much time trying to figure out what if anything I am doing wrong.. seems like it should be pretty straight forward but apparently it is NOT. I did this is the strategy wizard.
Comment
-
Brian, unfortunately not directly doable in the wizard as Slope would not return a DataSeries. You could check for example if the SMA is rising, I attach a screenshot of how this would need to be setup, the boolean true / false value can be found under Misc to compare them to the Rising output in your condition.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment