Login Page - Create Account

Support Board


Date/Time: Tue, 24 May 2022 06:59:22 +0000



Post From: Custom Order Quantity on New Sierra Chart Version

[2013-06-13 13:16:23]
CMG - Posts: 179

What is happening is that when I put any formula, at the start of the test back the formula result is 0, so it seems like it defaults to 1 and that is the quantity that is buying overiding cell J65.

How it worked on the previous Sierra Version was: the formula result was 0 while program had no positions, as soon as the program buys according to the quantity the J26 cell value changed to whatever custom quantity. In the case of my example :

=IF(ABS(J8)=($J$65*5),($J$65*3), IF(ABS(J8)=($J$65*2),($J$65*1),0))

When the buy entry condition is met, and buys the first 20 contracts, the value of J26 changed from 0 to 12, the effect on the buy exit was to sell 12 contracts.If the quantity was 8 contracts, the effect on buy exit was to sell 4 contracts.

As you know this J26 cell is combined with the buyexit or sellexit. http://www.sierrachart.com/index.php?l=doc/doc_SystemsAlerts.php#AutomatedTradingExample

The formulas on J26 on the new version are not working because from 0 default to 1 overiding the default quantity.

Any other suggestions so I can use custom exits?