
Topics
Replies
PanagiotisCharalampous
18 Jun 2019, 12:35
Hi lec0456,
There is no way to use older versions at the moment. The issue with the non persistent cBot parameters has been forwarded to the team and they possible solutions are under consideration.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 12:28
Hi Danial,
You cannot use chart operations on backtesting e.g. drawing objects in your chart. If you want to optimize your cBot, you need to remove this functionality from the code.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 12:26
Hi skalikas,
There is no built-in functionality for this. You need to develop such functionality yourself.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 12:23
Hi tentcows,
Thanks for posting in our forum. We have a new function for Market Range orders now. See here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 12:18
Hi zedodia,
I accidentally used the opposite values. See below the correct piece of code.
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("Fractal Period", DefaultValue = 5)] public int _period { get; set; } private Fractals _fractal; protected override void OnStart() { _fractal = Indicators.GetIndicator<Fractals>(_period); } protected override void OnBar() { var _fractaldown = Math.Round(_fractal.UpFractal.LastValue, Symbol.Digits); var _fractalup = Math.Round(_fractal.DownFractal.LastValue, Symbol.Digits); var position = ExecuteMarketOrder(TradeType.Buy, Symbol, 1000).Position; position.ModifyTakeProfitPrice(_fractaldown); position.ModifyStopLossPrice(_fractalup); } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 11:54
Hi Kafeldom,
We are planning improvements in the zooming functionality. Stay tuned!
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 11:52
Hi Bjorn,
If you need assistance in developing your cBot, you can always contact a Consultant or post a Job.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 11:49
Hi diegorcirelli,
Simulating deposits and withdrawals is not possible at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 11:47
Hi Alex,
The codes are in hex. The first two letters represent the opacity.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 10:43
Hi Asen,
I do not see any problem with the indicator and I still do not understand why you expect different values. At the time the value il logged, it matches the indicator value on the chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 10:41
Hi Bjorn,
I ran the cBot for some time but could not reproduce the issue. Do you still get this exception or was it something temporary? If yes, can you please provide us with the exact steps you follow to reproduce this problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 10:28
Ηι Greendreamer,
Brokers are responsible for their price feeds. You should address this issue to your broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 17:12
Hi Asen,
I am not sure what you are asking for. ef0 is now calculated OnTick, this is why the value keeps changing.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 16:41
Hi Asen,
The value of the closed bar is already found in ef1.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 16:33
Hi zedodia,
I have given you the code above, not sure why you changed it. Here is the complete cBot
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("Fractal Period", DefaultValue = 5)] public double _period { get; set; } private Fractals _fractal; protected override void OnStart() { _fractal = Indicators.GetIndicator<Fractals>(_period); } protected override void OnBar() { var _fractaldown = _fractal.UpFractal.LastValue; var _fractalup = _fractal.DownFractal.LastValue; var position = ExecuteMarketOrder(TradeType.Buy, Symbol, 1000).Position; position.ModifyTakeProfitPrice(_fractalup); position.ModifyStopLossPrice(_fractaldown); } } }
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 16:27
Hi Asen,
This happens because you log the value at the opening of the bar while the value displayed on the chart is the one calculated at the closing of the bar.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 15:06
Hi zedodia,
See an example below
var _fractaldown = _fractal.UpFractal.LastValue; var _fractalup = _fractal.DownFractal.LastValue;
However these values will not work as inputs for SL and TP. Try the below instead
var position = ExecuteMarketOrder(TradeType.Buy, Symbol, 1000).Position; position.ModifyTakeProfitPrice(_fractalup); position.ModifyTakeProfitPrice(_fractaldown);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 14:56
Hi Asen,
Can you send a screenshot of what you see and you think is wrong?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jun 2019, 14:53
Hi Bjorn,
Thanks. Can you also tell us the platform and the cBot parameters used to reproduce this problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jun 2019, 12:38
Hi DontAlgoMe,
No there is no such option at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous