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!
See more
See less

Partner 728x90

Collapse

Slope of an oscillator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tradingnasdaqprueba, 05-07-2024, 03:42 AM
    13 responses
    50 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by bill2023, Yesterday, 08:21 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by DawnTreader, Yesterday, 05:58 PM
    4 responses
    19 views
    0 likes
    Last Post DawnTreader  
    Started by lorem, 04-25-2024, 09:18 AM
    10 responses
    47 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by swjake, Today, 12:04 PM
    2 responses
    9 views
    0 likes
    Last Post swjake
    by swjake
     
    Working...
    X