Announcement

Collapse
No announcement yet.

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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X