Page 1 of 1
EasyLanguage
Posted: Sat Feb 26, 2011 11:23 pm
by LeviF
Does this:
Code: Select all
Buy at next bar Open of next bar + BuyTrig Stop
Translate to this:
Code: Select all
broker.enterlongonstop(instrument.tradedayopen + buytrig)
Posted: Mon Feb 28, 2011 10:50 am
by Eventhorizon
Seems to ... you can verify by putting the following into Script: Entry Orders:
Code: Select all
IF instrument.symbol = "YourSymbol" THEN
PRINT "tradeDayOpen", instrument.tradeDayOpen, "today's open", instrument.open
ENDIF
Put a de-bugging break on the print statement. You should see tomorrow's open being returned along with today's open. I believe the idea is that tradeDayOpen allows you to "peek" into the future so you don;t have to re-set the stop price after the open.