Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting Custom Trading Hours

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

    #16
    Hello Bmatarese,

    Thank you for your note.

    If the expected trade(s) are not appearing, this would indicate that the condition to place the order is not evaluating as true or the order is being ignored for other reasons.

    To understand why the script is behaving as it is, such as placing orders or not placing orders when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.

    In the strategy add prints (outside of any conditions) that print the values of every variable used in every condition that places an order along with the time of that bar.

    Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).

    Also, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.

    Below is a link to a forum post that demonstrates using prints to understand behavior and including a link to a video recorded using the Strategy Builder.
    https://ninjatrader.com/support/foru...121#post791121

    If you still need assistance after debugging your script, please send us an exported version of your script and the Trading Hours template being used so we may test this on our end. See the help guide link below for information about exporting your script. The Trading Hours template is located at Documents/NinjaTrader 8/templates/TradingHours.

    Exporting - https://ninjatrader.com/support/help...tAsSourceFiles

    Please let me know if I may further assist
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    49 views
    0 likes
    Last Post geddyisodin  
    Started by DayTradingDEMON, Today, 09:28 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by George21, Today, 10:07 AM
    0 responses
    8 views
    0 likes
    Last Post George21  
    Started by navyguy06, Today, 09:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X