Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsSinceExit() Stopping strategy from executing

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

    BarsSinceExit() Stopping strategy from executing

    Hi NT_Bertrand,

    When I include the line below, containing "BarsSinceExit", the strategy doesn't execute.
    When I remove/comment out the line, the strategy executes normally.

    protected override void OnBarUpdate()
    {
    Print("Bars since exit : " + BarsSinceExit().ToString());
    . . .
    }

    As you can see this is just a print out of the methods.

    Any idea?

    Cheers, Obi

    #2
    Hi Obi, do you see any errors being reported in the Log tab of the Control Center if you include those lines?
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kevinenergy, 02-17-2023, 12:42 PM
    116 responses
    2,757 views
    1 like
    Last Post kevinenergy  
    Started by franatas, 12-04-2023, 03:43 AM
    7 responses
    106 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by jpapa, Today, 07:22 AM
    0 responses
    1 view
    0 likes
    Last Post jpapa
    by jpapa
     
    Started by Jltarrau, Today, 05:57 AM
    3 responses
    7 views
    0 likes
    Last Post Jltarrau  
    Started by f.saeidi, Today, 05:56 AM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X