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

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 JonesJoker, 04-22-2024, 12:23 PM
    8 responses
    41 views
    0 likes
    Last Post JonesJoker  
    Started by timko, Today, 06:45 AM
    0 responses
    3 views
    0 likes
    Last Post timko
    by timko
     
    Started by Waxavi, 04-19-2024, 02:10 AM
    2 responses
    38 views
    0 likes
    Last Post poeds
    by poeds
     
    Started by chbruno, Yesterday, 04:10 PM
    1 response
    44 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Max238, Today, 01:28 AM
    1 response
    25 views
    0 likes
    Last Post CactusMan  
    Working...
    X