Automatic trade on indicator alert
Automatic trade on indicator alert
19 Jan 2020, 16:10
Hi,
I'm using this indicator https://ctrader.com/algos/download/363
I would like to create an automatism in my cbot, where when my indicator gives me an alert, it activates a market order.
I think that the easiest way could be to insert in the indicator something that can be recalled in the cbot (see attached examples).
The problem is that I don't know how to do that!
Please let me know your suggestions!
Replies
driftingprogrammer
20 Jan 2020, 14:02
Humiliating answer
The one response to the question here is humiliating. First cTrader has the worst documentation, in all the examples of cBots in their documentation there is absolutely not the slightest mention of how to have cBots triggered by an Indicator. And when someone has come to the forum to ask a legitimate question the answer being given is 'IF YOU DONT KNOW HOW TO CODE THEN RENT A CODER'.
Is that the purpose of this forum, Pimping consultants.
@driftingprogrammer
PanagiotisCharalampous
20 Jan 2020, 14:23
Hi driftingprogrammer,
There is no way to trigger cBots from an indicator therefore you should not expect to find documentation for something that does not exist. If you want to reference an indicator you can find several examples in our API Guides as well as our cBot samples that come with every cTrader installation.
Regarding your complaint about not helping traders, a simple look around the forum will refute your claim. We try to help traders to use cTrader and we try to answer every possible question. However there is always a thin line between answering questions to help traders to move to the right direction and a "Please do a,b,c for me" request. As Spotware we cannot engage into custom request development. If I misunderstood Matteo's question then I apologize and I am here to help him further. As I said above there are a lot of samples on how to reference an indicator from a cBot in the sample cBots in cTrader Automate.
Best Regards,
Panagiotis
@PanagiotisCharalampous
driftingprogrammer
20 Jan 2020, 14:37
RE:
I looked at the link you sent and still did not find any such code sample.
And thanks for letting me know it is not possible to trigger a cBot from an Indicator, in the absence of any best practices or architecture document one has to keep guessing on how to accomplish things.
Thanks.
PanagiotisCharalampous said:
Hi driftingprogrammer,
There is no way to trigger cBots from an indicator therefore you should not expect to find documentation for something that does not exist. If you want to reference an indicator you can find several examples in our API Guides as well as our cBot samples that come with every cTrader installation.
Regarding your complaint about not helping traders, a simple look around the forum will refute your claim. We try to help traders to use cTrader and we try to answer every possible question. However there is always a thin line between answering questions to help traders to move to the right direction and a "Please do a,b,c for me" request. As Spotware we cannot engage into custom request development. If I misunderstood Matteo's question then I apologize and I am here to help him further. As I said above there are a lot of samples on how to reference an indicator from a cBot in the sample cBots in cTrader Automate.
Best Regards,
Panagiotis
@driftingprogrammer
PanagiotisCharalampous
20 Jan 2020, 08:57
Hi matteo.caprani,
If you don't know how to program a cBot, you can consider posting a Job on contacting a Consultant.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous