
Topics
Replies
PanagiotisCharalampous
05 Jan 2018, 11:37
Hi swingfish,
The build in moving average indicators do not offer this functionality, You would need to develop a custom indicator. Why do you need such functionality?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jan 2018, 10:31
Dear Trader,
Thanks for posting in our forum. Check this guide on how to reference custom indicators in cAlgo. Let me know if this helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jan 2018, 10:28
Hi DelTrader,
Depth of market is available in cAlgo. Check MarketData GetMarketDepth. Let me know if this helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 17:11
Hi Drummond360,
From what I see, then yes, it should work...
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 16:52
Hi Drummond360,
Thanks for the code. Can you please explain what is the purpose of the following line of code is
if (order.StopLossPips == null)
From what I see you always specify a stop loss, therefore
if (order.StopLossPips == null) ModifyPendingOrder(order, targetPrice, order.StopLoss, order.TakeProfit, Server.Time.AddMinutes(Duration));
will never execute.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 16:31
Hi tradingu,
Even though I cannot commit to this, hopefully yes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 16:30
Hi ctid410629,
Can you provide us with the following information please?
-
A demo cBot that reproduces the problem.
-
Optimization settings that you use.
-
A screenshot of the problem.
The above information will help us reproduce the problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 15:57
Dear Trader,
Thanks for posting in our forum. Unfortunately the information provided is not enough for us to help you. Can you post the code of the cBot and some detailed steps on how to reproduce this behavior? This way we will be able to determine if this is a bug or not.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
04 Jan 2018, 15:04
Hi Drummond360,
Is it possible to post the full code of the cBot? It will be easier to advise you if we have the full cBot code.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 16:57
Hi Drummond360,
There is no straightforward way to do this however I think that with some coding it is possible. You can access the PenringOrders properties as below
PendingOrders[index].SymbolCode PendingOrders[index].TradeType
Therefore with a loop and some checks, you should be able to split the orders.
Best Regards
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 16:51
Hi itmfar,
Did you mean EURUSD instead of EURUSG? In any case, please try the code sample below
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; using cAlgo.Indicators; namespace cAlgo { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class MultiCurrency : Indicator { [Parameter(DefaultValue = "EURUSG")] public string Symboleu { get; set; } [Parameter(DefaultValue = "USDJPY")] public string Symboluj { get; set; } [Parameter(DefaultValue = "XAUUSD")] public string Symbolxu { get; set; } [Output("Correlation1", Color = Colors.Goldenrod)] public IndicatorDataSeries Result1 { get; set; } [Output("Correlation2", Color = Colors.Blue)] public IndicatorDataSeries Result2 { get; set; } [Output("Correlation3", Color = Colors.GhostWhite)] public IndicatorDataSeries Result3 { get; set; } MarketSeries series1; MarketSeries series2; MarketSeries series3; protected override void Initialize() { series1 = MarketData.GetSeries(Symboleu, this.TimeFrame); series2 = MarketData.GetSeries(Symboluj, this.TimeFrame); series3 = MarketData.GetSeries(Symbolxu, this.TimeFrame); } public override void Calculate(int index) { // Calculate value at specified index //Result1[index] = MarketData.GetSeries(Symboleu, TimeFrame.Hour).Close[index]; if (series1 != null) { int index1 = series1.OpenTime.GetIndexByExactTime(MarketSeries.OpenTime[index]); Result1[index] = series1.Close[index1]; } if (series2 != null) { int index2 = series2.OpenTime.GetIndexByExactTime(MarketSeries.OpenTime[index]); Result2[index] = series2.Close[index2]; } if (series3 != null) { int index3 = series3.OpenTime.GetIndexByExactTime(MarketSeries.OpenTime[index]); Result3[index] = series3.Close[index3]; } } } }
You need to check first if the series have any values before invoking them to avoid any unexpected issues.
Let me know if this solves your problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 16:04
Hi paanoik@seznam.cz,
Currently there is no workaround for this. We will release soon cTrader 3.0 with a new API that will include a new property, Symbol.DynamicLeverage, that will resolve your issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 15:12
Hi paanoik@seznam.cz,
This question is better to be addressed to the broker since the leverage for each asset is set by them.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 11:14
Hi Omega,
Indeed one of the purposes of the forum is to update traders. The comment from Spotware above is four years old, lately we have been giving insights on what you should expect from us in the Coming Soon section. It is our policy though not to commit to deadlines since our top priority is quality. We release only when everything is ready and meets our quality standards. Therefore we avoid giving delivery dates. Regarding Renko charts, they will be included in one of the next releases of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 10:53
Hi olddirtypipster,
Thanks for taking the time to post this suggestion. I will communicate it with the team responsible for FIX API for consideration.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Jan 2018, 10:31
Hi paanoik@seznam.cz,
Indeed margin is not taken into account in backtesting but it is in our plans to add it in future releases.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Jan 2018, 14:27
Hi Drummond360
I guess my question is whether cAlgo can cope with 4 instances scalping on a 1 min chart with most of the logic onTick?!?
The answer to this question is directly related to the hardware you are running your cAlgo on. I would encourage you to test your cBot on the hardware you are planning to use using a demo account and if the performance does not satisfy you, make the necessary adjustments e.g. upgrade your computer or VPS, check your network connection, optimize your code etc.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Jan 2018, 11:03
( Updated at: 21 Dec 2023, 09:20 )
Hi simitenbiri,
Depth of Market is available in the Symbol's information panel. You can access the information panel by right clicking on a symbol. See screenshot below.
Let me know if this helps.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Jan 2018, 10:43
Hi tradingu,
No there is no such feature available in cTrader. However, I don't think you avoid any fees using it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Jan 2018, 11:50
Hi Drummond360,
Indeed it should have been PipSize. I fixed the code. Can you try now please?
Best Regards,
Panagiotis
@PanagiotisCharalampous