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 RookieTrader, Today, 09:37 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kulwinder73, Today, 10:31 AM
    0 responses
    7 views
    0 likes
    Last Post kulwinder73  
    Started by terofs, Yesterday, 04:18 PM
    1 response
    24 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    8 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Working...
    X