Let's start a discussion for Buy At Close in Blocks and move post(s) from an inappropriate topic.
Eugeni,
I didn't find the "buy at close" Rule-based strategies (Blocks), similar to WL6.
Today is it possible?
I didn't find the "buy at close" Rule-based strategies (Blocks), similar to WL6.
Today is it possible?
At the moment we're not including them in Blocks but code-based strategies are enabled with MarketClose orders. Order execution at close is not something easy to achieve, especially intraday (where it just doesn't make any sense because a market order is one tick away).
WL7 doesn't show you the partial daily bar (unless you're using a streaming chart or streaming bars in Strategy Monitor). So, even the awkward workaround of running a strategy prior to the market close as in WL6 with Yahoo provider is not supported.
WL7 doesn't show you the partial daily bar (unless you're using a streaming chart or streaming bars in Strategy Monitor). So, even the awkward workaround of running a strategy prior to the market close as in WL6 with Yahoo provider is not supported.
Rodrigo,
You could make WL6 buy at close on the same bar with Rules. The backtester in WL7 works differently so this is no longer possible. Using at close orders implies a code based strategy and peeking ahead at the next bar.
You could make WL6 buy at close on the same bar with Rules. The backtester in WL7 works differently so this is no longer possible. Using at close orders implies a code based strategy and peeking ahead at the next bar.
Hi Eugene,
I thought I saw something recently about how Wealth Lab has made it possible to buy at close with building block strategies, but I just looked at the newest WL7 release and couldn't find a way to do this with a strategy running on daily bars. Has this feature been added, or did I misunderstand?
I thought I saw something recently about how Wealth Lab has made it possible to buy at close with building block strategies, but I just looked at the newest WL7 release and couldn't find a way to do this with a strategy running on daily bars. Has this feature been added, or did I misunderstand?
From reading your comment from last year here: https://www.wealth-lab.com/Discussion/Buy-at-Close-5640
...if I understand correctly, the best way to use building blocks to buy at close is to convert to open as a C# coded strategy, then find the line where the order type is specified and write it like this:
Looking at a chart, this appears to work correctly but I just wanted to check with you to be sure, in case I'm missing a comma or something that may be required in the newest version of WL7
...if I understand correctly, the best way to use building blocks to buy at close is to convert to open as a C# coded strategy, then find the line where the order type is specified and write it like this:
CODE:
_transaction = PlaceTrade(bars, TransactionType.Buy, OrderType.MarketClose, 0, 0, "Buy At Market (1)");
Looking at a chart, this appears to work correctly but I just wanted to check with you to be sure, in case I'm missing a comma or something that may be required in the newest version of WL7
Hi Joe,
Your understanding is correct. And since it's on our FAQ, there's another topic that may come helpful in this context: "How can my strategy from Blocks enter or exit at close?"
Your understanding is correct. And since it's on our FAQ, there's another topic that may come helpful in this context: "How can my strategy from Blocks enter or exit at close?"
Great. Thanks very much for your help.
Your Answer
Post
Edit Post
Login is required