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

Accessing Bid / Ask Volume at End of Bar

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

    Accessing Bid / Ask Volume at End of Bar

    I have a problem programming a strategy that I cannot really solve.

    I would like to enter limit buy and sell orders that are conditional to levels of the indicator Buy / Sell Pressure. I use Volume Charts with for example 400 Volume per Bar. The whole stategy cannot run on bar close because the indicator is not working on bar close.

    So I would need to calculate the indicator value on each incoming tick and then reference the value of the indicator on the bar close to create an order.

    For the moment I have solved it with a volume condition, so my orders are only updated for vol > 350, when I use 400 Vol Charts. Of course this is not a nice and clean solution so I would like to calculate the indicator values live and then send / update the orders on the close of the bar / beginning of next bar.

    I hope that this is clear and I would appreciate any help.

    Thanks!

    #2
    You can check for FirsTickOfBar which is in essence the same event as the close of the prior bar.

    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    4 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    40 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X