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 burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X