Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 22:40:36 +0000



Flatten all code in automated trade system

View Count: 984

[2014-10-05 20:21:51]
User49789 - Posts: 6
Hi

I'm trying to code the spreadsheet to flatten the entire position after running the length of the 1st standard deviation of a midas vwap. The only way I can get the code to execute every time it tests the DVAL/DVAH is by having the multiple execution option on but when I set the strategy to long exit at the 0.5 standard deviation it only executes 1 sell order.

Is there a few to change the quantity of these sell orders or is it possible to completely flatten the position once it breaks this level?

Thanks.

[2014-10-05 23:43:37]
Sawtooth - Posts: 4120
In addition to the formula in L3 to trigger an exit, you'll need a formula in J26 to control the quantity.
Or use cell J29.
Date Time Of Last Edit: 2014-10-06 01:35:44
[2014-10-09 04:16:05]
Sierra Chart Engineering - Posts: 104368
Use the Flatten cell:
http://www.sierrachart.com/index.php?page=doc/doc_SystemsAlerts.php#FlattenandCancelWorkingOrders
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account