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

Live last price from Point/Figure in NT7

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

    Live last price from Point/Figure in NT7

    Hi, if I'm programming an indicator or strategy based on a Point/Figure chart in NT7, how do I access the live current last/bid/ask price in the code?

    On minute and tick charts I do this with CalculateOnBarClose set to false and just accessing Closes[0][0]

    I see that the Closes[0][0] for Point/Figure value is based on current bar and equals the high or low, but the PF bars only update once every interval you set, I'd like that not to be 1 second, but need to program based on the current price and not the (very outdated 1-minute late) "Closes[0][0]" on the PF chart.

    I already have CalculateOnBarClose set to false.

    Thanks!

    #2
    Hello entropy,

    You may use the GetCurrentAsk() and GetCurrentBid() method for the Ask/Bid data. Note that you may use the overload that takes a "int barSeriesIndex" when using a multiseries script.

    If you would like to have some calculations done on an interval that you would like to set then you may want to use a Custom Event to do this. See the following thread for an example of this.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,789 views
    0 likes
    Last Post aligator  
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    837 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,294 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    13 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    63 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X