
Topics
Replies
PanagiotisCharalampous
06 Apr 2020, 09:00
Hi agent.xzxz,
Can you provide us an example demonstrating this issue?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Apr 2020, 08:53
Hi Shares4UsDevelopment,
Can you share cBot code that will allow us to reproduce this issue?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Apr 2020, 08:51
Hi K100,
See below
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NewcBot : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
protected override void OnStart()
{
var bars = MarketData.GetBars(TimeFrame.Daily);
bars.BarOpened += OnBarsBarOpened;
}
void OnBarsBarOpened(BarOpenedEventArgs obj)
{
Print("D1 Bar Opened");
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 Apr 2020, 08:47
Hi centurioncassio,
You need to change IsOverlay = true to IsOverlay = false.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Apr 2020, 16:06
Hi K100,
If the bar change event of your custom data series is different than the standard timeframe, then you will need to develop this logic yourself.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Apr 2020, 14:07
Hi K100,
I am not sure what do you mean. With MarketData.GetBars() you can get the bars for another timeframe. Then using Bars.BarsOpened you can subscribe to the event raised each time a new bar is added to this collection. Isn't this what you are looking for?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Apr 2020, 08:32
Hi K100,
You can use Bars.BarOpened event to check bar changes for bars on other timeframes.
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
@PanagiotisCharalampous
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
06 Apr 2020, 09:02
Hi bsinclair2076,
You can post a Job or contact a Consultant to help you with this.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous