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 bmartz, 03-12-2024, 06:12 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    13 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X