GenerateExitOnClose(num_lots);

Questions about MultiCharts .NET and user contributed studies.
User avatar
Analyst
Posts: 19
Joined: 09 Jul 2013
Has thanked: 3 times
Been thanked: 2 times

GenerateExitOnClose(num_lots);

Postby Analyst » 21 Jul 2013

It looks like we can specify a number of lots with Send(int) but not with GenerateExitOnClose(). How can I specify lots to sell at close? Perhaps SOrderParameters should have an OnClose attribute for both Buy and Sell.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: GenerateExitOnClose(num_lots);

Postby Henry MultiСharts » 29 Jul 2013

Hello Analyst,

GenerateExitOnClose - is a special order that closes the entire position.
In order to close only a part of the position on the session end you need to create your own code. You can modify the following script:
EOD_Close


Return to “MultiCharts .NET”