
Topics
Replies
PanagiotisCharalampous
08 Jul 2022, 11:42
Hi colymaxa,
There is no such option at the moment in the API. You will need to filter the results on your side.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
08 Jul 2022, 11:40
Hi jordangail,
This can happen when the SL is moved within the spread. In this case, the price is invalid and the SL cannot be set, leaving your position exposed.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
08 Jul 2022, 11:36
Hi there,
cTrader will only load the necessary data once.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
08 Jul 2022, 11:27
Hi strakmi,
Any chance you can record a video demonstrating all this so that I can forward it to the product team to check?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
07 Jul 2022, 12:44
Hi strakmi,
Can you share your cBot code and exact steps that reproduce the problem?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
07 Jul 2022, 08:28
Hi Alfie,
You can try something like this
if (Server.Time.DayOfWeek == System.DayOfWeek.Friday && Server.Time.TimeOfDay > TimeSpan.ParseExact("21:00", "hh\\:mm", null))
{
foreach (var position in Positions)
position.Close();
}
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 15:42
Hi Florent,
You don't need to reinstall Windows, just cTrader. Let me know what happens.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 15:36
Hi Florent,
No its not. Delete doesn't work either? Did you try reinstalling cTrader?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:44
Hi MongolTrader,
Here you go
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None)]
public class ADXOtherTimeFrame : Robot
{
private BollingerBands _bb;
private Bars _otherTimeFrameBars;
[Parameter("Other Time Frame")]
public TimeFrame OtherTimeFrame { get; set; }
[Parameter("Periods")]
public int Periods { get; set; }
[Parameter("Deviation")]
public int Deviation { get; set; }
protected override void OnStart()
{
_otherTimeFrameBars = MarketData.GetBars(OtherTimeFrame);
_bb = Indicators.BollingerBands(_otherTimeFrameBars.ClosePrices, Periods, Deviation, MovingAverageType.Simple);
}
}
}
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:26
Hi Florent,
I just tried and I have no problem erasing it. Just put the cursor after the last character and press backspace.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:23
Hi MongolTrader,
You need to make your question more specific. What exactly do you need to find out? How to initialize the indicator using data from another timeframe?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:20
Hi waym77,
Here is an example
Chart.DrawRectangle("Rectangle", Server.Time.AddHours(1), Symbol.Bid, Server.Time.AddHours(10), Symbol.Bid + (Symbol.PipSize *10),Color.Red);
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:15
RE: Live account don't link with bidaskbit
Hi jthtrading0,
You need to contact your broker regarding this matter.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:14
Hi ncel01,
Just tried on live execution this and looks fine
On backtesting there is an issue indeed because margin is calculated based on the current rate and not the historical one, hence the discrepancy. It will be fixed in a future version of the application.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
06 Jul 2022, 14:06
( Updated at: 21 Dec 2023, 09:22 )
Hi noolohp,
This extension works only for these versions of VS Studio
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jul 2022, 18:14
Hi waym77,
You can't use Bars.OpenTimes because it does not contain the time you want. You need to set the actual time you need.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jul 2022, 17:51
Hi there,
You need to read the specification. Field 55 is for the symbol. There is no timeframe field, since you are subscribing to spot prices and DoM, not to historical candles.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jul 2022, 12:38
Hi there,
1. MDReqID is set by you, you don't find it somewhere.
2. You need to send heartbeats every 10 seconds else you might get disconnected
Check our samples on GitHub, they will help you
https://github.com/spotware?q=fix&type=all&language=&sort=
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jul 2022, 12:24
Hi ergun+de,
4.2 has already been released. It should reach all brokers soon.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
08 Jul 2022, 11:43
Hi Clovito,
You need to contact your broker regarding this matter.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous