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 strategist007, Today, 07:51 PM
      0 responses
      2 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,967 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      4 views
      0 likes
      Last Post rbeckmann05  
      Started by rhyminkevin, Today, 04:58 PM
      4 responses
      55 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by iceman2018, Today, 05:07 PM
      0 responses
      6 views
      0 likes
      Last Post iceman2018  
      Working...
      X