Support Board
Date/Time: Sun, 09 Mar 2025 20:44:36 +0000
[Programming Help] - API to trade on Sierra and execute calls to cTraders
View Count: 1570
[2022-03-12 11:19:19] |
Tofer - Posts: 38 |
hello! could you please give me some directions to where look for this capability? I would like to code a small functionality that when trading on SC that triggers a REST API call to cTrader. Currently I chart on SC but I execute manually on my cTrader platform, and having this automation would save me time and would be more comfortable for me to just focus on one single place. Thank you! Date Time Of Last Edit: 2022-03-12 11:37:18
|
[2022-03-12 14:56:53] |
1+1=10 - Posts: 270 |
Hi Tofer, SC has a C++ library called ACSIL which includes functions for making HTTP Get/Post requests. To learn about using ACSIL you'll probably want to read the links in the order they appear here: Table of Contents | (Advanced Custom Study/System Interface and Language (ACSIL)) If you're going to enter trades manually on SC or automatically using a non-ACSIL method, that you want copied over to cTrader, then in ACSIL you would need to access the Positions to decide which HTTP requests to make to cTrader to replicate the Position: Automated Trading From an Advanced Custom Study: sc.GetTradePosition If you're entering trades automatically using ACSIL, then you would just call the HTTP requests when you make the orders to create the SC position. NOTE: I'm assuming you'd be creating SC orders/trades/positions in simulation mode that would be copied to cTrader but you could also copy live SC orders/trades/positions. HTTP Get Request from ACSIL: ACSIL Interface Members - Functions: sc.MakeHTTPRequest() HTTP Post Request from ACSIL: ACSIL Interface Members - Functions: sc.MakeHTTPPOSTRequest() Date Time Of Last Edit: 2022-03-12 14:57:41
|
To post a message in this thread, you need to log in with your Sierra Chart account: