Topics
Replies
PanagiotisCharalampous
13 Sep 2019, 09:05
Hi hogandsteer,
Thanks for posting in our forum. To remove the logo from the background just right click on the chart and click on Background Image. In the form that will pop up, you can choose the image opacity, you can even replace it or remove it completely.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Sep 2019, 09:01
Hi radoslawkupisek,
The problem is with your GetIndexByDate() method. To fix it just replace line 74 with the one below
var index24h = TF.OpenTime.GetIndexByTime(MarketSeries.OpenTime[index]);
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 14:54
Hi RayAdam,
You are looking at two different method signatures. To fix the issue in your code you need to use the symbol name instead of the symbol itself.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 14:41
Hi RayAdam,
There is no error posted. Did you forget to attach something?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 12:56
Hi Mario,
Here is an example
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 { Symbol _gbpjpy; protected override void OnStart() { _gbpjpy = Symbols.GetSymbol("GBPJPY"); } protected override void OnTick() { Print("GBPJPY Bid: " + _gbpjpy.Bid); Print("GBPJPY Ask: " + _gbpjpy.Ask); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 11:25
Hi all,
By design OnTick() will trigger only once if both bid and ask change. However TickVolume will add to the volume two ticks for both bid and ask price changes. A more accurate way to calculate and compare tick volume is the following
private int TickVolume; private decimal LastBid; private decimal LastAsk; protected override void OnTick() { var bid = (decimal)Symbol.Bid; var ask = (decimal)Symbol.Ask; if (bid != LastBid) TickVolume++; if (ask != LastAsk) TickVolume++; LastBid = bid; LastAsk = ask; } protected override void OnBar() { Print(MarketSeries.TickVolume.Last(1) + " vs " + TickVolume + " counted."); TickVolume = 0; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 11:04
Hi radoslawkupisek,
Unfortunately the code you posted here does not build
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 10:26
Hi zarn,
It is not clear what feature are you referring to. Pending orders were always executed as GTC orders.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 09:32
Hi pooria222222,
Demo accounts can follow live accounts because traders need to have the option to try your strategy before commiting theirmoney to it. Copying takes place on subaccounts which are not directly accessible by cTrader, cTrader Automate or API therefore there is not much benefit from following using a demo account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 09:05
Hi indra,
Thanks for posting in our forum. The indicator does not have any output series that can be accessed by a cBot. You will need to add an IndicatorDataSeries and save the range_adr value there, so that it can be accessed by a cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 08:59
Hi pooria222222,
It seems that your followers are following you from demo accounts.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 08:55
Hi all,
Multisymbol backtesting will be delivered with v3.7 of cTrader Desktop.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Sep 2019, 08:54
Hi radoslawkupisek,
Thanks for posting in our forum. Please share the indicator code and exact steps to reproduce the problem. Regarding swaps, currently they are not available from the API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Sep 2019, 08:26
Hi calgodemo,
Did you try changing the access rights of the cBot to FullAccess? See below
namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)] public class NewcBot : Robot {
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Sep 2019, 08:02
Hi sebatejob,
Thanks for posting in our forum. Please post your suggestions in the Suggestions section.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Sep 2019, 15:26
Hi vooncj,
You cannot interact with the chart indicators using the API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Sep 2019, 15:20
( Updated at: 21 Dec 2023, 09:21 )
Hi vooncj,
Thanks for posting in our forum. You can set the colors in the "Add Indicator" form. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Sep 2019, 08:09
Hi M B,
Just right click on the grid header and you will get a selection of the available columns. Choose the ones you want to be visible.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Sep 2019, 17:37
Hi jumpycalm,
See below
var buyTotalVolume = Positions.Where(x => x.TradeType == TradeType.Buy).Sum(x => x.VolumeInUnits); var sellTotalVolume = Positions.Where(x => x.TradeType == TradeType.Sell).Sum(x => x.VolumeInUnits);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Sep 2019, 09:08
Hi radoslawkupisek,
You can use DrawStaticText instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous