Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 21:44:31 +0000



[Programming Help] - Advanced Custom Study/System Interface and Language (ACSIL) Auto trade entry

View Count: 619

[2019-06-25 17:36:13]
User384999 - Posts: 28
I am wanting to use sc.BuyEntry(NewOrder)

i am using SCT_ORDERTYPE_STOP_LIMIT order type but i dont think i got the right type for what i want to do

ie

Buy at 100 automatically close when reachs 150 ie limit
or stops out at 90

i am filling price1 as my stop
and filling price2 as my target

i cant seem to find any examples in the online doc

please could you let me know which type to set in this scenario

kind regards

chris
[2019-06-26 09:53:31]
Sierra Chart Engineering - Posts: 104368
No this is not correct. You need to specify the stop and target offsets through separate variables. Refer to:
Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::Target1Offset
Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::Stop1Offset
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: 2019-06-26 09:58:05

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

Login

Login Page - Create Account