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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    129 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X