
Topics
Replies
PanagiotisCharalampous
27 Sep 2022, 11:41
Hi HexDex,
The API does not offer the option to set the SL and TP in absolute prices, only in pips. If you want set the TP and SL in prices then you need to do this for the opened position.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
27 Sep 2022, 11:32
Hi Samuel,
I am sorry if my message was misunderstood but I am trying help you. You need to make it easy for me to do so.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
27 Sep 2022, 11:12
Hi Samuel,
You cannot throw at me 400 lines of code and just tell me that it has a problem and I need to figure it out ,or expect me to write the code for you. You need to be very specific regaridng the problem is. Your description needs to fullfil the following
- A clear explanation of the expected outcome
- A clear explanation of the problem
- Explicit steps to reproduce the problem
- Your cBot needs to include the minimum code necessary to reproduce your problem
Regarding your questions
- reference the Smooth Heiken-Ashi Indicator within the bot allowing it to get signals to execute trades OR
- move the indicator code into the cbot and refrain from referencing the indicator thereby enabling the cbot make the trades without reference to any indicator
This is really a matter of choice. Whatever is easier for you
- In case we go with the 1st option of referencing the indicator, how would the cbot code shared below be written to reference the indicator allowing it to get signals to execute trades.
- In case the easier option is to move the indicator code into the cbot code below, how would the cbot code shared below be written allowing it to get signals to execute trades.
Here you are actually asking me to write the code for you. I can't :) If you have specific questions about the API, I would be happy to address them. But if you need somebody to actually implement this for you
Best Regards,
Panagiotis
Join us onTelegram andFacebook
@PanagiotisCharalampous
PanagiotisCharalampous
27 Sep 2022, 10:44
Hi kowaj70,
No you cannot but why would you need that?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
27 Sep 2022, 10:39
Hi there,
We do not offer our services to Fair Forex anymore.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 14:38
Hi Vadivelan,
I don't see the System.Drawing.Common liblary checked nor the cAlgo.API.Alert library anywhere.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 12:25
Hi xabbu.
Use the latest one for .NET 6.0 projects.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 12:11
RE:
Xammo said:
Mines the build in VS (builds fine in the code editor) 4.1/VS2019 build just hangs/greys out can’t cancel have to kill VS process/has happened occasionally over the years but usually resolved by recreating the bot/deleting original so something else I think not related to OP’s issue but am stumped what is causing it - I’ve got one working setup at least frustrating as it is can live with/hopefully work out what’s going wrong
It could be an issue with the old integration but ee do not support 4.1 at the moment. It is advisable to upgrade your cBot.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 12:10
( Updated at: 21 Dec 2023, 09:22 )
Hi xabbu,
Which compiler do you use?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 11:58
Hi there,
At the moment, there is no such feature in cTrader.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 11:42
Hi ncel01,
I tried this on real time and I get no exceptions. You need to debug this in VS and check what is actually a null reference.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:59
Hi ctid3999979,
Thank you, it will be resolved in an upcoming update.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:58
Hi yuval.ein,
Unfortunately I have not received any email.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:52
Hi there,
Just use Positions :) It's a collection.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:50
Hi there,
In order to help you we need the full cBot code as well as exact steps to reproduce the problem.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:48
Hi Robert,
Yes ROI is only available for cTrader Copy at the moment.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:36
Hi to both.
Can you share screenshots with the errors?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:31
Hi Samuel,
It is not very clear to me what you are trying to do. The position id is available in every position and all accouint positions are accessible from anywhere in the cBot. What is the problem you are trying to solve here?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
26 Sep 2022, 10:26
Hi joeroeder94,
Are you sure this is correct?
live2.ctrader.2140621
It should be more like this
live2.icmarkets.2140621
Best Regards,
Panagiotis
Join us onTelegram andFacebook
@PanagiotisCharalampous
PanagiotisCharalampous
27 Sep 2022, 12:11 ( Updated at: 21 Dec 2023, 09:22 )
Hi kowaj70,
You can setup multiple profiles instead
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous