Login Page - Create Account

Support Board


Date/Time: Wed, 25 Dec 2024 05:11:39 +0000



[User Discussion] - Order quantity

View Count: 1409

[2015-11-06 09:31:29]
User59228 - Posts: 47
Hello,

I have a question to order quantity field. For example, wenn a buy signal occurs the system buy a position of 100 shares xyz (one trade per day). Now it is possible that the system buy a position for 5 days (multiple entries) and then, when a sell signal occurs the system should sell 500 shares xyz. When the field order quantity is 0, then the software buys 1 unit every day and sell the whole position. But what I have to type in, when I will buy 100 units per day ??
[2015-11-07 01:44:23]
Sierra Chart Engineering - Posts: 104368
You need to use an Order Quantity of 100.

For the exit, use an Order Quantity of 0.

Refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/doc_SystemsAlerts.php#CellJ26

We will try also to get added very soon, a separate cell for the Order Quantity for exits.
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
Date Time Of Last Edit: 2015-11-07 01:48:47
[2015-11-07 09:54:25]
User59228 - Posts: 47
That means that it will be possible after adding of the separate cell. Until then it is not possible ?
[2015-11-07 10:41:29]
Sierra Chart Engineering - Posts: 104368
It will be easier with a separate cell, but you can always create an Order Quantity formula that determines whether an Entry or Exit will be triggered.
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
[2015-11-07 11:05:28]
User59228 - Posts: 47
ok, thank you. Such a formula you don´t Support ??
[2015-11-07 14:07:07]
Sawtooth - Posts: 4142
An example formula for J26 to allow different entry/exit quantities:
=IF(OR(K3,M3),100,IF(OR(L3,N3),500,0))

If your exits are the total position, you could also use cell J29, instead of L3,N3.
[2015-11-07 16:56:58]
User59228 - Posts: 47
ok, thank you. The Problem is, that i don´t know if the Position would be 300 or 700 when a Exit Signal occurs. In your formula i have to know that before. What would happen when I have only a Position with 300 Units and a sell Signal occurs. Then the Position would not be sold ?? and what i have to type in cell j29, when i will Exit the total Position ?
[2015-11-07 17:40:59]
Sawtooth - Posts: 4142
Cell J29 just needs to go TRUE when you want to flatten. Something like this:
=OR(AND(J8>0,YourBuyExitConditions),AND(J8<0,YourSellExitConditions))

BTW, for formulas in column J, reference row 3 if trigger is intrabar, reference row 4 if trigger is close of bar.
[2015-11-07 18:01:51]
User59228 - Posts: 47
ok, that are really good Information, thank you tomgilb

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

Login

Login Page - Create Account