Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alternative to CancelEntryOrdersOnDisable in NT7

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

    Alternative to CancelEntryOrdersOnDisable in NT7

    I would like to ask,
    what's the alternative for NT8 of following properties used in NT7?
    • CancelEntryOrdersOnDisable
    • CancelExitOrdersOnDisable

    • ChartControl.HorizontalGridLinesIntervalRight
    • ChartControl.HorizontalGridLinesIntervalTypeRight

    • How/where can be set ChartExecutionStyle for backtest chart?
    Last edited by misova; 10-24-2015, 02:11 PM.

    #2
    Hello,

    CancelEntryOrdersOnDisable is now implemented as Core.Globals.StrategiesOptions.CancelEntriesOnStra tegyDisable.

    CancelExitOrdersOnDisable is now implemented as Core.Globals.StrategiesOptions.CancelExitsOnStrate gyDisable

    ChartControl.HorizontalGridLinesIntervalRight is implemented as <ChartScale>.Properties.HorizontalGridlinesInterva l

    ChartControl.HorizontalGridLinesIntervalTypeRight is implemented as <ChartScale>.Properties.HorizontalGridlinesInterva lType

    ChartExecutionStyle is now implemented as ChartBars.Properties.PlotExecutions, which can be set via the ChartExecutionStyle enum, like so:

    Code:
    ChartBars.Properties.PlotExecutions = ChartExecutionStyle.DoNotPlot;
    Last edited by NinjaTrader_DaveI; 10-26-2015, 09:55 AM.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Great, thank you.
      Clear now.

      Comment


        #4
        Now I am not sure, where I should call these settings - especially those, where I need
        to access to <ChartScale> or <ChartControl>

        Should I set up these setting by overriding method below ?
        protected override void OnRender(ChartControl chartControl, ChartScale chartScale)

        ... so the parameters of this method provide me the <ChartScale> or <ChartControl>

        Comment


          #5
          Hello misova,

          These could be set in OnRender as you suggested.

          You can also access the ChartControl at any time.

          Through ChartControl you can access the panels. If you know which panel, you can grab the chartScale object through the panel.
          ChartControl.ChartPanels[0].Scales[0].Properties.HorizontalGridlinesInterval
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Thank you
            Clear now.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            22 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            24 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-25-2026, 09:53 PM
            0 responses
            30 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 03-25-2026, 09:51 PM
            0 responses
            18 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 03-23-2026, 11:13 AM
            0 responses
            27 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X