
Topics
Replies
PanagiotisCharalampous
28 Mar 2024, 07:39
Hi there,
The error is straight forward and it's not related to cTrader but general C# knowledge. The code you are writing does not make any sense. If you want to program cBots you need to learn C# first. As per the message, Bars does not contain any property called atr. I do not understand why you put that there.
Best regards.
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:35
RE: RE: How to access cancelled pending orders in history?
kienvu said:
PanagiotisCharalampous said:
Hi there,
Cancelled orders are not available via the API unfortunately.
Best regards,
Panagiotis
Then, how can access them?
You can't :)
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:32
Hi there,
Renko wicks are not available at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:29
Hi there,
Touch screens are not supported at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:26
Hi there,
No this is not possible at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:23
Hi there,
It is not clear what your post is about. Can you elaborate?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2024, 11:19
Hi there,
Cancelled orders are not available via the API unfortunately.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2024, 11:18
Hi there,
This is an expected behavior.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2024, 08:30
Your code has several amateur issues e.g.
var atr = Indicators.AverageTrueRange(14, MovingAverageType.Exponential);
You are initializing a global variable as a local one. Then when you try to access the global one inside OnbarsBarOpened, you get an exception. Fix your exceptions first and provide a workable cBot so that we can see the logic as well.
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2024, 07:42
Hi there,
You can merge all your accounts under one cTrader ID by asking one of the broker to reassign the account to the cTrader ID you wish.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2024, 07:30
Hi there,
Is this a broker account or a Spotware account? Can you share screenshots?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 07:08
Hi there,
The dispatch of such statements is configured by the broker. You should get in touch with them again.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 07:05
Hi there,
Candles are drawn by bid prices, not by ask prices. You should talk to your broker for more information regarding execution issues.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 06:55
Hi there,
Your question is not very clear. Can you elaborate please?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 06:53
Hi there,
Your money is held by your broker so only your broker can return them back.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 06:53
RE: Ctrader app for FTMO and TopFX not working
VulcanTrader said:
My app is not working after installing the Android OS update on my Pixel 8. Please advice. i don't see any update have these brokers been advised to add an update to the Play Store?
The update is only released for cTrader cross broker application at the moment. Use that one instead
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 06:52
Hi Joel,
No it is not possible. But you could develop a cBot that would do this for you.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Mar 2024, 06:48
RE: RE: Add a "Label" and a "Comment" in the Trading Panel code
Obiriec said:
PanagiotisCharalampous said:
Hi there,
This happens because you do not acquire the text box value anywhere. See below
var stopLossPips = GetValueFromInput(StopLossInputKey, 0); var takeProfitPips = GetValueFromInput(TakeProfitInputKey, 0); string label = LabelImputKey; string comment = CommentImputKey;
You acquire the sl and tp from the text boxes but you use the default label and comment.
Best regards,
Panagiotis
Good morning, I certainly misunderstood.
How should I correct the code so that the text that is written in the on-screen panel box is then used to be written in the label or comment when a position is opened?
Now it only works well if the text is written in the parameters window.
I need the insertion to become interactive even when the panel is on the screen, that is, when the cBot is in the start state.
Thank you and I hope I have been able to explain myself better.
Best regard,
Armando
Hi Armando,
I cannot write the code for you but the way stop loss and take profit are obtained can be used as guidance on developing this feature further
var stopLossPips = GetValueFromInput(StopLossInputKey, 0);
var takeProfitPips = GetValueFromInput(TakeProfitInputKey, 0);
@PanagiotisCharalampous
PanagiotisCharalampous
28 Mar 2024, 07:40
Hi there,
What is the exact issue you are trying to demonstrate here?
Best regards,
Panagiotis
@PanagiotisCharalampous