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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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).
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by tradingnasdaqprueba, 05-07-2024, 03:42 AM
|
13 responses
50 views
0 likes
|
Last Post Today, 12:35 PM | ||
Started by bill2023, Yesterday, 08:21 AM
|
3 responses
18 views
0 likes
|
Last Post Today, 12:17 PM | ||
Started by DawnTreader, Yesterday, 05:58 PM
|
4 responses
19 views
0 likes
|
Last Post
by DawnTreader
Today, 12:17 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
10 responses
47 views
0 likes
|
Last Post
by lorem
Today, 12:16 PM
|
||
Started by swjake, Today, 12:04 PM
|
2 responses
9 views
0 likes
|
Last Post
by swjake
Today, 12:42 PM
|
Comment