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 Unsuitable, Today, 07:26 PM
      0 responses
      1 view
      0 likes
      Last Post Unsuitable  
      Started by jvanelli, Today, 06:36 PM
      2 responses
      9 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by twitch251, Today, 05:14 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by robforee2, Today, 05:07 PM
      0 responses
      4 views
      0 likes
      Last Post robforee2  
      Started by blar58, Today, 03:16 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Working...
      X