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 RookieTrader, Today, 09:37 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by kulwinder73, Today, 10:31 AM
      0 responses
      5 views
      0 likes
      Last Post kulwinder73  
      Started by terofs, Yesterday, 04:18 PM
      1 response
      23 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by CommonWhale, Today, 09:55 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Gerik, Today, 09:40 AM
      2 responses
      7 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Working...
      X