Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 23:42:28 +0000



[User Discussion] - Dollar Order Quantity

View Count: 1194

[2015-04-09 18:25:01]
Jagui - Posts: 19 Invalid SC Account Name.
First, let me state that SC is a great software and I am glad to have discovered it.

I would like to ask if it is possible to specify order quantity in terms of dollar value instead number of shares.
For example, for a share priced $129 I would like to enter $100000 in the order quantity and have SC to buy 100000/129 = 775 shares.
This way one can specify $100000 in the order quantity for all share symbols, without having to insert a different number of shares for each symbols (I trade as many as 100 different share symbols...)
[2015-05-22 01:16:41]
Kinobe - Posts: 86

I ll be interested in this feature too

no answer?
[2017-09-07 17:17:22]
Jagui - Posts: 19 Invalid SC Account Name.
I had success in it by writing a custom indicator that automatically set order quantity in chart trader.
[2017-09-11 19:55:00]
Kinobe - Posts: 86
could you share it?

I am interested.

thank u.
[2017-09-28 07:56:19]
Jagui1 - Posts: 14
This is an indicator to set order quantity to risk $200 if price goes 3*ATR(100) far away from current price. You can adapt it to your own needs.

// Automatically set the trade size in chart trader
SCSFExport scsf_LTradeSize(SCStudyInterfaceRef sc) {
  if (sc.SetDefaults) {
    sc.GraphName = "LTradeSize";
    sc.GraphRegion = 0;
    sc.FreeDLL = 0;
    sc.AutoLoop = 1;
    return;
  }  
  
  sc.ATR(sc.BaseDataIn, sc.Subgraph[0], 100, MOVAVGTYPE_SIMPLE);
  float ATR = sc.Subgraph[0][sc.Index];
  sc.TradeWindowOrderQuantity = (int) (200 / (3 * ATR));
}

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

Login

Login Page - Create Account