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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X