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

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 trilliantrader, Today, 03:01 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by geddyisodin, Today, 05:20 AM
    6 responses
    34 views
    0 likes
    Last Post geddyisodin  
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    67 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X