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 Mindset, Today, 06:46 AM
            0 responses
            8 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, Yesterday, 05:21 PM
            0 responses
            12 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            15 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            82 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            47 views
            0 likes
            Last Post PaulMohn  
            Working...
            X