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 Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X