Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit after 3:40pm

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

    exit after 3:40pm

    I'm using the following code to place an exit after 4:40 (5 min interval) but it only works on occasion; Volume is enough to support exit at market...
    What am I missing??

    TIA!

    curH = Time[0].Hour;
    curM = Time[0].Minute;
    if(( curH==15 && curM > 42))
    ExitLong("LXe");

    #2
    hairymug, are you sure you get any bars on that occasions to trigger the exit logic? As even if time would be up there would not need to be a new bar forming in NT's event based framework. If there was no trade / tick coming in > then no new bar would form until that would be the case.

    What market and session template do you work with here?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Just solved the issue; I was giving the name of the signal instead of the name of the entry signal... when I changed it to the name of the entry signal, all worked as expected.

      It seems that the "intelle-Help #2" for "exitLong" is incorrect as it has "signal name" as first arg and "entry signal" as second arg...

      Since I usually rely on this, and it was swapped, it caused issues with all my exits.

      More Info: when I added a signal name for arg2, the issue happened again... It looks like the help doc is incorrect as I can't seem to name my exit signal...

      Thanks!
      Last edited by hairymug; 11-18-2014, 06:18 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,606 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      9 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      19 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      6 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      15 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X