Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Data of Control Center / Strategies

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

    Data of Control Center / Strategies

    Hi,

    I am testing some strategies at the same time, and I would like to record a log with some parameters of how, or where the strategy is running.

    Is there any function to get the data that exist in the ControlCenter/Strategies? I need the Strategy, DataSeries and Account.

    I would like to use these in my strategy to to record in my log with others parameters of my setups

    Is this possible?

    Thanks...

    #2
    Hello sasil,

    It would be possible to send this information to the Log using the Log() method.

    For example:

    Code:
    protected override void OnStartUp()
    {
    Log(string.Format("{0} | {1} {2} {3} | {4}", Name, Instrument.FullName, BarsPeriod.Value, BarsPeriod.Id, Account.Name), LogLevel.Information);
    }
    Log(string message, LogLevel logLevel)
    http://ninjatrader.com/support/helpGuides/nt7/log.htm
    Last edited by NinjaTrader_ChelseaB; 06-20-2016, 08:54 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by xiinteractive, 04-09-2024, 08:08 AM
    2 responses
    10 views
    0 likes
    Last Post xiinteractive  
    Started by Irukandji, Today, 09:34 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by RubenCazorla, Today, 09:07 AM
    1 response
    5 views
    0 likes
    Last Post RubenCazorla  
    Started by TraderBCL, Today, 04:38 AM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by WeyldFalcon, 08-07-2020, 06:13 AM
    11 responses
    1,423 views
    0 likes
    Last Post jculp
    by jculp
     
    Working...
    X