Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FORWARD Testing Problem

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

    #16
    Hello,

    I did see the code you had inserted, I simply changed it to only allow the condition to become true if you are flat, you could in turn add other logic for your entry or reversal. It is generally good to separate the order method calls into their own conditions so you can test when they are being met. if your order methods do share a common condition, you will need to plan out logic that prevents the calls from happening all in the same OnBarUpdate call.

    For testing these items you can use Print() statements for debugging using the Output Window, this will be your best resource when coding. http://www.ninjatrader.com/support/h...lightsub=Print


    For your question regarding CalculateOnBarClose, this depends on what you are trying to accomplish and how you code your logic. I would not be able to say to set that to true or false this will ultimately depend on how you end up coding your logic and how you want the script to preform. Here is more information regarding CalculateOnBarClose http://www.ninjatrader.com/support/h...ub=calculateon

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    575 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X