• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - trades on chart

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

    Strategy Builder - trades on chart


    I am creating a very simple strategy. If we go straight to condition and actions, I have 4 conditions that all need to be met and then one action.

    The conditions are as follows: If close (4) < open (4) (i.e. a red candle 4 days ago), If close (3) < open (3) (red candle 3 days ago), if close (2) > open (2) (green candle 2 days ago), if close (1) > open (1) (green candle 1 day ago)

    The action is as follows: Enter long position by a stop order with the stop price High (1) (i.e. if price (0) trades above the high of the previous candle (1), enter long.

    For some reason, the trades are not showing up on a chart? Why is that? I have plot and execution selected also.

    Thanks in advance for your help.

    #2
    Hello adams016,

    Thanks for your post.

    If the strategy is or is not taking actions as you would expect, debugging steps should be taken to monitor the strategy logic and determine what values are being used to evaluate your conditions and if these conditions becoming true or not.

    As a first step, I would suggest checking the Log tab of the Control Center if there are any errors.

    If there are errors, steps should be taken to correct the error. Please provide a screenshot for any errors that are not clear so we can give further input.

    If there are not any errors, the issue would be that the strategy logic is not allowing the order methods to fire. Debugging the strategy by adding prints to monitor the strategy logic will have to be done to find out why the strategy logic is not allowing the orders to fire. I have included a video showing how debugging prints can be added in the Strategy Builder. This is my own video that is publicly available.

    Debugging with the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

    Please let us know if we can be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dkbyond, Today, 04:11 PM
    0 responses
    5 views
    0 likes
    Last Post dkbyond
    by dkbyond
     
    Started by markus3500, Today, 03:29 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by bohenriksen, Today, 04:00 AM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by brett0, Today, 12:33 PM
    3 responses
    14 views
    0 likes
    Last Post marcus2300  
    Started by lordvader34, Today, 11:12 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X