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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    139 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    295 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    240 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    338 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    172 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X