Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Converting indicators from NT7 to NT8

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

    Converting indicators from NT7 to NT8

    Hi,

    I am going trough the painful task of converting my indicators/ninjascripts from NT7 to NT8. I found most of the answers already in this forum. However, I could not figure out how to modify the following three lines in my code:

    1) path_1= Cbi.Core.UserDataDir.ToString(); -> UserDataDir not longer in Cbi.Core. Where is it?

    2) a = Cbi.Globals.Accounts.FindByName("Sim101"); -> Globals not longer in Cbi

    3) a.Connection.ConnectionStatus += new Cbi.ConnectionStatusEventHandler(ConnectionStatusH andler); -> Cbi.Connection has no longer a ConnectionStatus method. It is replaced by a callback method of which I could not find any documentation. Also, ConnectionStatusEventhandler is no longer in Cbi.

    Anybody knows how to help? Thank you very much,
    Daniel

    #2
    Hello Daniel,

    Thank you for writing in and welcome to the NinjaTrader Support Forum!

    To answer your questions:
    1. UserDataDir can be found within NinjaTrader.Core.Globals.

    2. I would suggest taking a look at this link to another support forum post about utilizing the Account class: http://ninjatrader.com/support/forum...php?p=410327#2

    3. ConnectionStatusUpdate can be used for subscribing to connection status update events: http://ninjatrader.com/support/helpG...atusupdate.htm


    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    668 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X