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 f.saeidi, Today, 08:01 PM
      0 responses
      2 views
      0 likes
      Last Post f.saeidi  
      Started by Rapine Heihei, Today, 07:51 PM
      0 responses
      3 views
      0 likes
      Last Post Rapine Heihei  
      Started by frslvr, 04-11-2024, 07:26 AM
      5 responses
      96 views
      1 like
      Last Post caryc123  
      Started by algospoke, 04-17-2024, 06:40 PM
      6 responses
      49 views
      0 likes
      Last Post algospoke  
      Started by arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Working...
      X