Import batch of limit orders
15 Jul 2017, 23:33
Hi, I am new to this, but I would like to know if there is an option to import a batch of limit orders and submit them to the market by using cAlgo or any other "c" tool :). The orders would be filled in csv or xls or any other text format. Entry price, stop loss distance, target profit distance. Is it possible to code a bot to do this? It is useful when one wants to cacel all pending limit orders before news events and after them, one would simply load them all back and again execute. Thanks a lotm Marek
Replies
jamadza
20 Jul 2017, 10:51
RE:
Thanks for the reply and link.
I will pass ti to someone who can help me to code it, since I do not have enough coding skills.
Marek
Spotware said:
Hi jamadza,
Thanks for posting your question in the forum. The answer to your question is yes, it is possible to read from files in cAlgo. Therefore you could store your limit orders in a .csv or any other format you like and then read the file whenever you want and submit your orders. See some samples of reading a csv file in C# here.
Please let us know if this information was helpful or if you need any further guidance.
Best Regards,
cTrader Team
@jamadza
Spotware
20 Jul 2017, 10:20
Hi jamadza,
Thanks for posting your question in the forum. The answer to your question is yes, it is possible to read from files in cAlgo. Therefore you could store your limit orders in a .csv or any other format you like and then read the file whenever you want and submit your orders. See some samples of reading a csv file in C# here.
Please let us know if this information was helpful or if you need any further guidance.
Best Regards,
cTrader Team
@Spotware