Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help With Strategy Builder

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

    Need Help With Strategy Builder

    Trying to figure out what is not working with this. I want it to buy when the high touches the upper band of the channel. If it is in a position I then want it to sell that position when it touches the lower band. Right now with these settings nothing is happening.
    Attached Files

    #2
    Hello cbratton,

    Thanks for your post.

    If you are applying your strategy to a chart, you do not need to add the data series in the "additional data" window of the strategy builder. Unless you have a specific need for this I would advise removing the added data series.

    In the conditions window, you have two conditions and have selected "If any" condition is true then the actions section will be implemented. The actions are to enter and exit a position which would leave you with no position. A recommendation would be to set one order action per set. So set one would have the entry conditions and the entry order and set two would have the exit conditions and the exit order.

    The conditions of cross above and cross below both point to the "lower" plot of the Donchian Channel. When you set the conditions, you will want to select the "Upper" for the "value plot" selection for the cross above. The "value plot" is the plot used for the condition and in the case of multiplot indicators you must select the plot for the condition to use.

    It is a good practice to verify that you are in a position before using an Exit method. It is also a good practice to verify you are flat before entering a position. As part of the conditions for the set that has the ExitLong() method you can add a check to see if your market position is long. As part of your conditions for entering you can check that you are flat. Please see the helpguide section of the strategy builder titled, "How to create market position comparisons" here: http://ninjatrader.com/support/helpG...on_builder.htm

    When creating a strategy it can be helpful, for debugging purposes, to add a visual indication on the chart when a condition set is true. In the actions section you might consider adding the action to draw a marker such as a dot or a triangle above or below the bar. This marker then would show you on the chart exactly where your conditions are true and can help in understanding how your strategy logic is working. This often helps to remove the mystery of the strategy. You can always remove the dots/markers once you have the strategy working as expected. Here is a short video on some considerations needed to show markers for all conditions as well as relating them to price: https://www.screencast.com/t/Ijoqo7nde5vn
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jewelkulas, Today, 10:30 PM
    0 responses
    3 views
    0 likes
    Last Post jewelkulas  
    Started by jc.am, Today, 07:59 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by ybhx0315, Today, 09:06 PM
    0 responses
    9 views
    0 likes
    Last Post ybhx0315  
    Started by parkinsonbr, Today, 08:23 PM
    0 responses
    6 views
    0 likes
    Last Post parkinsonbr  
    Started by i2w8am9ii2, Today, 04:36 PM
    2 responses
    16 views
    0 likes
    Last Post i2w8am9ii2  
    Working...
    X