Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChartControl.Strategies

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

    ChartControl.Strategies

    Hi,

    I'm compiling some cs files from NT6.5 to NT7

    in NT6.5 from the Indicator's code, I was able to access to all of the Strategies loaded in the current ChartControl by this:

    for ( int s=0 ; s<this.ChartControl.Strategies.Length; s++ )
    Strategy.StrategyBase str = this.ChartControl.Strategies[s];

    and by this code I was able, for example, to call the function:

    str.Position.GetProfitLoss(..........);

    Now, in NT7 ChartControl.Strategies is no more available.

    Have I to renounce to this or is there a new way in NT7 to obtain the same?

    I need to access to the strategies loaded in the same chart where the indicator is loaded.

    Thank you
    Antonio Raso ( www.FloorFinance.com )

    #2
    Hello Antonio79,

    Chartcontrol is outside our scope of support. Unfortunately there isn't a supported way of accessing strategies currently applied to a chart.
    Ryan M.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
    89 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
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X