Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      21 views
      0 likes
      Last Post halgo_boulder  
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Started by gwenael, Today, 09:29 AM
      0 responses
      5 views
      0 likes
      Last Post gwenael
      by gwenael
       
      Started by Karado58, 11-26-2012, 02:57 PM
      8 responses
      14,830 views
      0 likes
      Last Post Option Whisperer  
      Started by Option Whisperer, Today, 09:05 AM
      0 responses
      2 views
      0 likes
      Last Post Option Whisperer  
      Working...
      X