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 argusthome, Yesterday, 10:06 AM
            0 responses
            17 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            16 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            14 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            9 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            36 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X