| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Buy at Open with Easylanguage I am playing around with a simple gap strategy to learn basic EL and was wondering if it was possible to assess the gap condition, then buy or sell the market at open, when the opening price was a condition to be evaluated? It looks like TS will only let me buy/sell the NEXT bar, which doesn't work on a daily chart when I am trying to look at a particular condition to buy/sell THAT bar at the open. In layman's terms: I look at yesterday's close relative to that day's range, then I look at today's open relative to yesterday's close, then I want to buy or sell today's open based on a condition. Hope that makes sense. I basically want to 'buy/sell this bar at open' on a daily chart, and don't seem to have that option ? Any help would be appreciated. | ||
| |
|
| | #2 | ||
![]() | Re: Buy at Open with Easylanguage there is a 'buy this bar at close' there is no 'buy this bar at market', only 'buy next bar at market'. I believe this is just terminology that fits with the easylanguage 'bar' programming concepts. My understanding is if you place a buy this bar at close, it will get filled anywhere between the time you place it and the close. if you are trading the first bar of the market, you might also need to set MaxBarsBack to zero. | ||
| |
|
| | #3 | ||
![]() | Re: Buy at Open with Easylanguage Thanks! | ||
| |
|
| | #4 | ||
![]() | Re: Buy at Open with Easylanguage "if ____ then buy next bar at open of tomorrow" or "if ____ then buy next bar at open of tomorrow+2 stop" (buy stop 2 pts above OP) "if ____ then buy next bar at open of tomorrow-4 limit" (buy 4 pts below OP limit order) enjoy your weekend, d-bag. frank (btw, there are a bunch of EL coding tips like this in Art Collins book 'Beating the Financial Futures Market") | ||
| |
|
| | #5 | ||
![]() | Re: Buy at Open with Easylanguage | ||
| |
|
| | #6 | ||
![]() | Re: Buy at Open with Easylanguage Quote:
From EL_FunctionsAndReservedWo rds_Ref.pdf Tomorrow (Reserved Word) Disclaimer This word is retained for backward compatibility. Replaced by Next Bar. Remarks Tomorrow references the next bar, even when analyzing intraday bars. Tomorrow is no longer necessary as the following are equivalent: Buy at Open Tomorrow + Range Stop; Buy at Open Next Bar + Range Stop; Buy at Open[-1] + Range Stop; That means that if you are working on an intraday basis tomorrow doesn't mean "tomorrow" but "next bar" | ||
| |
|
| The Following 2 Users Say Thank You to skan For This Useful Post: | ||
EasyTrader_I (03-03-2011), Tams (03-02-2011) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help With Easylanguage Asap | cramerwilliams | Coding Forum | 4 | 04-04-2011 09:43 PM |
| Regards As Candlesticks in Easylanguage | pencil2 | Coding Forum | 3 | 08-22-2009 06:22 PM |
| Some EasyLanguage Help Please | jjthetrader | Coding Forum | 8 | 06-02-2008 04:20 PM |
| Easylanguage and Script Help | darknite999 | Coding Forum | 49 | 04-15-2008 07:37 AM |
| Labels in EasyLanguage | keymoo | Coding Forum | 7 | 03-24-2007 02:37 PM |