• 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 psquare, Today, 03:11 PM
    4 responses
    12 views
    0 likes
    Last Post psquare
    by psquare
     
    Started by ballboy11, Today, 03:20 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by tonynt, Today, 02:18 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by denalek2419, Today, 01:46 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by REI140205, Today, 12:58 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X