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

How to compare Cumulative Delta , Price Movement and Volume

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

    How to compare Cumulative Delta , Price Movement and Volume

    Hello Guys,

    I want to make an Indicator which alerts me when certain thing Happens In Price Movement plus At a same time in Cumulative Delta and Volume

    For Example ,

    Price Remain sideways and Cumulative Delta Going Down with Volume Goes Up Too.Attaching Image For Example.

    There are other Condition too but If I can get the head start how to do this one of this type of condition I can do other on my own.
    Attached Files

    #2
    Hello svadukia,

    Thanks for your post.

    The likely difficult point is determining when price is in a range (sideways movement). You could use an indicator such as ATR(average true range). You would need to determine, for the instrument being used what period (lookback) to use as well as values to be expected for a "sideways movement". Alternatively, you could use Swing indicator and determine how long price has been between swing points. I'm sure there are other ways of determining sideways movement and this would be for you to investigate and test. Visually it is very easy, mathematically, not so much.

    For your other conditions, you can do simple checks of the current value to the previous value. You can check the current value to the previous n values if you want to look back multiple bars.

    When you write your conditions I suspect you would want to determine the sideways movement first and then check or wait for the other two conditions to occur. You can control the logic through the use of bool variables. For example (using psudeo code):

    if (Price is in a range)
    {
    ranging = true; // set the bool ranging to true
    }
    else
    ranging = false; // reset when not in a range

    if (Cumulative deta going down)
    {
    cdd = true; // set true when cumulative delat going down
    }
    else
    {
    cdd = false;
    }

    if (Volume goes up and cdd is true and ranging is true)
    {
    // do something
    }
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    12 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X