One way is to find the value for current bar and previous bar but when you calculate on each tick this might give a false values.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Slope of an oscillator
Collapse
X
-
Slope of an oscillator
Is there a way to find the slope of an oscillator (say for example MACD fast line) - all i need to know is +ve or -ve slope.
One way is to find the value for current bar and previous bar but when you calculate on each tick this might give a false values.Tags: None
-
Hello ark321,
Thanks for your post.
You can use the Slope() method which can be applied to any data series: https://ninjatrader.com/support/help...html?slope.htm
If you only want to check once per bar in a script running with Calculate.OnEachTick, you can use the system bool of IsFirsTickOfBar: https://ninjatrader.com/support/help...ttickofbar.htm (See usage example in help guide).
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
172 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
88 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
128 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
208 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment