
Topics
Replies
PanagiotisCharalampous
12 Mar 2019, 12:52
Hi hmozahem,
Thanks for posting in our forum. Can you please let us know if you can still reproduce this behavior? If yes, can you tell us the broker please?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:49
Hi guys,
I tried to reproduce the problem but could not. If you can isolate the issue into a smaller indicator with more specific reproduction steps I can take another look.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:30
Hi dmn,
We will check this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:26
Hi Jeziel,
This is because the indicator recalculates its values when zoom is changed from the code. When changed from the interface, you need to handle this change yourself, as my solution did.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:21
Hi astevani,
This is a known issue. Please read more here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:14
Hi a.fernandez.martinez,
No there is no such feature. A cBot operates on a single chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:11
( Updated at: 21 Dec 2023, 09:21 )
RE:
gakazas said:
Hello, Thanks for the update.
"Load Parameters" for a cbot doesn't work when dealing with custom enums, as even if the parameter is saved in the .cbotset file, when loading from it an error message appears and the first option is always selected.
Hi gakazas,
Thans for letting us know about this. We will investigate it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:08
RE: Backtesting Options with custom timeframes
eivaremir said:
I've just written a bot which reads renko graphics, and I want to backtest it but this function isn't available, do you have plans to incorporate it in the future?
Hi eivaremir,
Yes this is in our plans. It will be added in one of the upcoming updates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:07
Hi erikvb,
There are several issues with your cBot. I made some changes so that you can build it but you need to check if this is what you want. See the code 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 HMABOT : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } [Parameter("Label", DefaultValue = "HMA")] public string Label { get; set; } [Parameter("Volume", DefaultValue = 1000)] public int Volume { get; set; } [Parameter("Source")] public DataSeries Source { get; set; } [Parameter("Periods", DefaultValue = 14)] public int Periods { get; set; } internal HMASignals HmaSignals { get; set; } public bool IsBullish = false; public bool IsBearish = false; private MarketSeries HmaDaySeries; private HMASignals _hmaSignal; protected override void OnStart() { // Put your initialization logic here HmaDaySeries = MarketData.GetSeries(TimeFrame.Daily); _hmaSignal = Indicators.GetIndicator<HMASignals>(Periods,Source,false,false,1,false,1); } protected override void OnTick() { // Put your core logic here // BEARISH if (_hmaSignal.IsBearish && Positions.FindAll(Label, Symbol, TradeType.Buy).Length == 0) { IsBearish = true; IsBullish = false; close(TradeType.Sell); trade(TradeType.Buy); } // BULLISH if (_hmaSignal.IsBullish && Positions.FindAll(Label, Symbol, TradeType.Buy).Length == 0) { IsBearish = false; IsBullish = true; close(TradeType.Buy); trade(TradeType.Sell); } } private void close(TradeType tradeType) { foreach (var position in Positions.FindAll(Label, Symbol, tradeType)) ClosePosition(position); } private void trade(TradeType tradetype) { ExecuteMarketOrder(tradetype, Symbol, Volume, Label); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 11:33
Hi Kafeldom,
There is no such feature at the moment. It will be added in a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 11:32
Hi Ziyad,
If you need professional assistance, you can post a Job or contact a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 11:30
Hi James,
As the message clearly states, you need to end your region somewhere. You start your region here
#region Indicator declarations private DSSBressert _DSS { get; set; }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 11:25
Hi Afrim,
If you need professional assistance, you can post a Job or contact a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 11:23
Hi AAZero,
There is no such option at the moment. We will consider this for a future update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2019, 17:27
Hi Ben,
There in no equivalent feature on cTrader at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2019, 15:32
Dear amsman,
There is no such thing as a single “root” memory issue with cTrader that needs to be addressed. First of all, most of the memory issues are caused by poorly programmed custom cBots and indicators.No matter how efficiently we program cTrader, if the custom cBot/Indicator uses a lof of memory, there is nothing we can do about it. This is why we always ask if a trader is running a custom cBot/Indicator and if yes, we ask for the code to investigate further.
In the rare cases a memory issue is caused by cTrader itself, we ask for the cooperation of traders to address it. I completely disagree with your statement “There is no support offered in these forums to eleviate the problem.... Other than post me you code and we'll have a look...”. We always ask for detailed troubleshooting information to reproduce the problem and we even proceed with TeamViewer sessions to investigate issues on trader machines. As soon as we identify the cause of each issue, we aim to resolve it with the next update. Many members of the community can confirm that they have received such treatment and that their issues have been handled and resolved in a reasonable time.
Also please note that cTrader is an evolving platform that constantly changes as new features and functionalities are introduced.Therefore there is no once and for all solution for everything unless we stop developing the platform. Issues will appear and will be resolved constantly as we release new versions of the platform. This is one of the main reasons we are releasing beta versions before releasing to brokers. So that you can test it and report to us any issues you might have. Therefore if you still face memory issues with cTrader, let us know how to reproduce and we will be happy to have a look.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2019, 15:29
Hi procumulative@gmail.com,
It seems you are using a custom indicator. Can you please share it with us?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2019, 11:47
Hi lec0456,
Sorry, my mistake, it does not work for non interactive objects. But we will add this feature in an upcoming update.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2019, 11:02
Hi Patrick,
Which cTrader are you referring to? I can see targets in Spotware Beta.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Mar 2019, 12:57
Hi Adrian,
Is it possible to send us the cBot and your settings file at community@spotware.com so that we can have a look?
Best Regards,
Panagiotis
@PanagiotisCharalampous