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 FishTrade, Today, 03:42 PM
    0 responses
    1 view
    0 likes
    Last Post FishTrade  
    Started by Richozzy38, Today, 01:06 PM
    3 responses
    14 views
    0 likes
    Last Post Richozzy38  
    Started by ttrader23, Today, 09:04 AM
    2 responses
    12 views
    0 likes
    Last Post ttrader23  
    Started by geotrades1, Today, 07:54 AM
    10 responses
    26 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ninza33, Yesterday, 12:31 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X