Having read through the wiki on this but still feeling unclear about a couple things, I hope someone can help clarify.
1) Does the opening of a commentary window followed by a click on a bar cause the entire strategy to be recalculated?
2) The recalculation also causes orders to be resend in live trading if on a bar with orders. Is that correct?
3) To avoid resending the orders, is it recommended to wrap all orders with the following?
if CommentaryEnabled=false then begin
//some orders
end
question about expert commentary
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: question about expert commentary
Hello cnbiz850,
- In general, the answer is "yes".
- When a code with expert commentary is auto-trading, the strategy is not recalculated/restarted/no values are reset upon a call of expert commentary.
- No orders should be resent.