Announcement

Collapse
No announcement yet.

buy at open & sell at limit same day?

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

  • buy at open & sell at limit same day?

    PLEASE IGNORE THE QUESTION BELOW.
    I FOUND MY PROBLEM.
    SORRY ABOUT THE CONFUSION.
    *************************************
    *************************************
    *************************************
    I am using daily bars.

    I would like to buy at the open and then close the same day at a limit price, [e.g.] open(0)+0.5, but the following code does not do what I intend it to do even when I know the limit price has been touched. I am probably doing something wrong - but if not, does eSignal not recognize that it makes real world sense because there is no ambiquity about which price was touched first [i.e.] the daily bar opening price is always the first price hit?

    Strategy.doLong("doLong entry",Strategy.MARKET,Strategy.THISBAR,1); //enter at the open
    Strategy.doSell("doSell exit",Strategy.LIMIT,Strategy.THISBAR,1,open(0)+0. 5); //exit at a limit
    Last edited by jcm21; 05-17-2008, 10:38 PM.
Working...
X