Support Board
Date/Time: Sat, 23 Nov 2024 17:05:05 +0000
Post From: Scaling in using a study
[2013-07-15 01:04:25] |
flyboy615 - Posts: 56 |
Hi, In the case of using a configuration file with the settings "Support Scale-in" and "Use attached orders" both checked in the configuration. In the study.... sc.TradeWindowConfigFileName = TWConfigFile; Both the recommended settings set to true; Using a Buy stop limit for all entries; Example: NewOrder.OrderQuantity = EntryQuantity.GetInt(); NewOrder.OrderType = SCT_STOPLIMIT; NewOrder.LimitPrice = BuyStop; NewOrder.StopPrice = BuyStop; This combination creates multiple entries each with their own stop and target and doesn't add to the original position. I will use the above code to test further tomorrow. Thanks. |