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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment