Topics
Replies
PanagiotisCharalampous
02 Apr 2020, 14:26
Hi there,
You can try the below
var pips = History.Where(x => x.Label == label).Sum(p => p.Pips);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 09:56
Hi sajad_benz65,
Can you please check again now?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 09:51
Hi Sanny,
It is not clear what do you mean. Can you please explain with some screenshots.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:50
Hi there,
Can you provide us with the cBot code and instructions how to reproduce this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:48
Hi Rimokatolik,
No there is no such option for FIX API. You need to handle this case on your side.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:47
Hi nmaxcom,
I am not really sure what are you trying to achieve here but obviously it works in a specific way and we cannot change something that works and thousands of cBots are built on it. OnBar() is called every time a bar changes only.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:37
Hi harrykang44,
We have plans to add more hotkeys in the future but we do not have an ETA yet.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:36
( Updated at: 02 Apr 2020, 08:52 )
Hi s_kabasov,
Please post your questions in the correct forum topics. This thread will be deleted.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:35
Hi Peter,
As I said above, if they are still listed in cTrader then it means your broker has not deleted them. Send them a screenshot of your cTrader displaying the accounts.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:33
Hi tigermc2022,
No we do not have an ETA for this feature at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:32
Hi Capilta,
You cannot use var as a parameter type in a method variable declaration. The correct type is PendingOrder.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:29
Hi Luca,
Here is an example of how to get a stochastics oscillator for another symbol
var symbol = Symbols.GetSymbol("EURUSD");
var stochastic = Indicators.StochasticOscillator(MarketData.GetBars(TimeFrame, symbol.Name), 9, 3, 9, MovingAverageType.Simple);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Apr 2020, 08:20
Hi mrha1000,
You need to change that line of code to the following
System.Windows.Forms.Application.Run(form);
since there is a conflict with the cBot's Application property.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 16:57
Hi Tj11,
Check here. You are actually missing an object initializer.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 16:49
Hi driftingprogrammer,
Renko or Range Block size of whatever 20,30,40,50,100
Thanks, this is what I needed. I have forwarded this issue to the product team to check.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 16:43
Hi terminalclub,
Just change cTrader time to UTC+3.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 16:12
( Updated at: 21 Dec 2023, 09:21 )
Hi,
If you change the _senderSubID to QUOTE, as expected in the Rules of Engagement, it should work fine. I will update the sample to reflect this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 15:12
Hi kittu.ce10,
1) If you change the timezone then the Server.Time will give you time in that timezone.
2) Volume is always set in units. If you want to use Lots as a parameter you will then need to convert it to volume using Symbol.QuantityToVolumeInUnits()
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Mar 2020, 15:07
Hi luca,
You can keep the symbol in a variable. See below
var symbol = Symbols.GetSymbol("EURUSD");
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Apr 2020, 08:20
Hi there,
Can you post your complete cBot? Where do you print the values? In OnBar()? You should do it in OnStop().
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous