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 terofs, Yesterday, 04:18 PM
    1 response
    21 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    13 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X