Sell all contracts  [SOLVED]

Questions about MultiCharts and user contributed studies.
albevier
Posts: 24
Joined: 13 Nov 2005
Has thanked: 5 times
Been thanked: 3 times

Sell all contracts

Postby albevier » 11 May 2023

Does "sell all contracts" not work during autotrading? The following snippet does NOT work for me when auto trading is active but works fine when auto trading is off and for back testing. My brain says it has a a dim memory of a discussion on this issue but damned if I can find anything.

Can anyone point me in a direction?

Code: Select all

buy 4 contracts next bar at market ; If time >= 1545 then sell all contracts next bar at Market ; // this does NOT work during autotrade but does work when autotrade is disabled.

albevier
Posts: 24
Joined: 13 Nov 2005
Has thanked: 5 times
Been thanked: 3 times

Re: Sell all contracts  [SOLVED]

Postby albevier » 13 May 2023

Found the answer. viewtopic.php?t=10811. The entire string of questions and answers is nicely put together and well worth the read and even the study of all the issues TJ explains in topic 10811.


Return to “MultiCharts”