Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

trade direction filter

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

    trade direction filter

    Hello,

    i submit my orders via chart trader but sometimes when things are hectic i loose market overview and make trades in the wrong direction.

    Is there any possibility to limit the trade direction depending on an indicator value? For example i would like to setup a rule/filter that i can only trade in the direction of the SMA.

    Maybe it could be coded into the indicator to disable/enable the chart trader menu items and buttons?

    Thanks
    Walter

    #2
    Hello Walter,

    Thank you for your post.

    This is possible, although it requires the use of methods outside the supported bounds of NinjaScript.

    As NinjaScript is based on the Microsoft programming language C#, it is possible to create your own forms or toolbars within NinjaTrader.

    An example of a custom toolbar can be found at the following link: http://www.ninjatrader.com/support/f...d=5&linkid=490

    While this is outside the bounds of supported NinjaScript, if you have a question I may be able to point you in the right direction.

    Please let me know if I may be of further assistance.

    Comment


      #3
      Originally posted by walter79 View Post
      Hello,

      i submit my orders via chart trader but sometimes when things are hectic i loose market overview and make trades in the wrong direction.

      Is there any possibility to limit the trade direction depending on an indicator value? For example i would like to setup a rule/filter that i can only trade in the direction of the SMA.

      Maybe it could be coded into the indicator to disable/enable the chart trader menu items and buttons?

      Thanks
      Walter
      Code:
      bool DoNotTrade = ... //you specify those conditions here
       
      if (DoNotTrade)
      {
      ChartControl.ChartTraderEnabled = false;
      ChartControl.ChartTraderSupported = false;
      ChartControl.ChartTraderVisible = false;
      }
      Turn them back on when you want to use the Chart Trader.

      Remember that ChartControl is still not supported by NT, so they will answer no questions if you have any.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X