Topics
Replies
PanagiotisCharalampous
01 Feb 2018, 09:43
Hi leohermoso,
This is planned for the next release of cAlgo which should be out really soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Feb 2018, 09:37
( Updated at: 09 Feb 2023, 11:42 )
Hi yoannes,
FYI /forum/calgo-support/11886?page=2.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jan 2018, 17:05
Hi MaRCHeW,
Yes we have plans doing this in one of the future versions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jan 2018, 16:10
Hi Drummond,
If you provide the complete code sample then we can suggest you how to do it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jan 2018, 15:36
Hi Daniel,
The reason you get these errors is because this a feature of C# 6.0. cAlgo compiler supports features up to C# 4.0.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 Jan 2018, 09:53
Hi Patrick,
Thanks for letting us know. We are aware of this issue and it is going to be resolved in a future update of cTrader Web.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 17:14
Hi Drummond,
Well that is the value. Would you like to explain to us what you are trying to do? If you are trying to get the pip size of a difference between two prices then you should divide instead of multiplying. See below
var abcSL = (UpPatternfib382 - minLow) / Symbol.PipSize; var abcTP = (ABCDentryPrice - minLow) / Symbol.PipSize;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 17:01
Hi Drummond,
This is because you round to the 2nd decimal place. Your values begin at the 8th decimal place. Try the following
var abcSL = Math.Round((UpPatternfib382 - minLow) * Symbol.PipSize, 8); var abcTP = Math.Round((ABCDentryPrice - minLow) * Symbol.PipSize, 8);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 16:22
Hi irmscher9,
It seems that the discrepancies are on Christmas day when usually markets are closed. Unfortunately this is not so obvious as the previous case to intervene ourserves, therefore you should contact IC Markets and let them know to check their historical data. Then if there is a problem they should contact us with instructions on how to resolve this issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 16:12
Ok thanks, didn't see your second post
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 16:12
Hi again,
I don't think this is the one. This is for USDJPY and it is for other dates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 15:55
Hi irmscher9,
Can you please post the image in the forum? I do not have access to it anymore.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 12:47
Hi Drummond,
Try the code below
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class FIBBOT : Robot { [Parameter("TP Pips", DefaultValue = 10, MinValue = 1)] public int takeProfitPips { get; set; } [Parameter("StopLossPips", DefaultValue = 1, MinValue = 1)] public int stopLossPips { get; set; } [Parameter("Periods", DefaultValue = 20)] public int period { get; set; } public DataSeries series { get; set; } string label = "Fib Bot"; protected override void OnStart() { } private int HighestBar(DataSeries series, int period) { for (int i = 0; i <= period; i++) { if (series[series.Count - 1 - i] == series.Maximum(period)) { return i; } } return -1; } private int LowestBar(DataSeries series, int period) { for (int i = 0; i <= period; i++) { if (series[series.Count - 1 - i] == series.Minimum(period)) { return i; } } return -1; } protected override void OnTick() { int x = HighestBar(MarketSeries.High, period); Print(" HighestBar = " + x); int y = LowestBar(MarketSeries.Low, period); Print(" LowestBar = " + y); if (x > y) { ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, label, stopLossPips, takeProfitPips); } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 11:13
Hi Drummond,
The problem is that you are not initializing the series anywhere. Which series would you like to use?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Jan 2018, 10:48
Hi Drummond,
Please post the complete cBot code and we will let you know why you receive the error.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 17:56
Hi,
Currently there is no way to do this but this feature will be available in a future release of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 17:27
Hi mishavas15@gmail.com,
From what I can see you are in the backtesting section. Lines are not drawn in the backtesting chart. Try to run the cBot on an actual chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 15:44
Dear Trader,
Thanks for posting in our forum. You can use the DrawVerticalLine function.
Let me know if this information is helpful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Jan 2018, 15:41
Hi again,
For example the price already hit the trigger for 20 pips, and an addition of 10 pips, so the SL move from breakeven point plus additional 10 pips, the question is is it still possible to use the breakeven function after that?
Yes you can, however you need to do this manually after the first break even is triggered
As for the advance protection take profit, my question, is it possible to use the advance protection even though my laptop/computer is offline, is the advance protection take profit server side, as well for the breakeven function.
No, the advanced protection is a client side function. Read the textbox in the Advanced Protection window.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Feb 2018, 09:53
Hi m.bister,
Thanks for posting in our forum. What timeframe do you use for your backtesting?
Best Regards,
Panagiotis
@PanagiotisCharalampous