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 Skifree, Today, 03:41 AM
            1 response
            2 views
            0 likes
            Last Post Skifree
            by Skifree
             
            Started by usazencort, Today, 01:16 AM
            0 responses
            1 view
            0 likes
            Last Post usazencort  
            Started by kaywai, 09-01-2023, 08:44 PM
            5 responses
            603 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            6 responses
            23 views
            0 likes
            Last Post xiinteractive  
            Started by Pattontje, Yesterday, 02:10 PM
            2 responses
            23 views
            0 likes
            Last Post Pattontje  
            Working...
            X