I hope you can help me out... Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
IsRising and IsFalling does not seem to work...please help.
Collapse
X
-
IsRising and IsFalling does not seem to work...please help.
I have set up a strategy that relies on the trend of the EMA. In order to accomplish this, I want to check the previous EMA one bar ago to verify that the EMA is rising before I go long or falling before I go short. I thought I had it set up correctly, but during my testing the IsRising and IsFalling conditions seem to be ignored. I have attached an image of the IsRising setup I have deployed.
I hope you can help me out... Thanks!Tags: None
-
Hello jmyonan3,
How are you currently checking if the condition is true?
If you are trying to do an action that may be part of the reason in case you are not seeing a result. You could make a empty set with an action of Misc -> Print and then output the value of IsRising, that would you look at all bars to see if it ever becomes true.
-
Hello Jesse.
I assume IsRising and IsFalling is a function and they work correctly. These functions test whether a line is going up or going down. I am placing the EMA 21 as its only parameter. I would expect that if I am inserting the IsRising function, and the EMA 21 is going up from left to right, it is rising and should result in a True value. Conversely, If the EMA 21 line is going down from left to right (and not flat), and I insert the IsFalling function with the EMA 21 into the Series 1, it should result in a True value...right?
Sorry...I was not able to locate Print.
Comment
-
Hello jmyonan3,
I wouldn't be able to tell you if that would be true or not on the given details, we really can't make assumptions when programming. The easiest way to figure out the problem would be to use the platforms built in output known as Print. That would let you physically see what values are being observed by the strategy. In the strategy builder that is under the Actions as Misc -> Print. You can open the output window by using the control center New -> NinjaScript output.
The Rising and Falling methods compare if the current bar is greater/lesser than the last bar. https://ninjatrader.com/support/help...htsub=isrising
You can additionally try the sample here: https://ninjatrader.com/support/help...htsub=isrising
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 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