
Topics
Replies
PanagiotisCharalampous
06 May 2019, 11:11
Hi danimy16,
Thanks for posting in our forum. Do you still have problems with this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:09
Hi LukasForex,
There is no ETA for this at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:08
Hi trader.andyng,
You can set a trailing stop loss when you execute an order using ExecuteMarketOrder() function or add a trailing stop loss to an existing position using ModifyTrailingStop() function. Trailing stop losses are executed on the server so you do not need to worry about leaving your PC turned on.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:04
Hi Afzali,
Thanks for posting in our forum. It would be better to address this question to the broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:03
Hi Desert,
Thanks for posting in our forum. It would be better to address this question to the broker.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 09:00
Hi clusterr023,
You can find a comparison table for the two applications here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 15:13
Thanks John,
Tell me if the alternative below works for you
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; using cAlgo.Indicators; namespace cAlgo { [Indicator(IsOverlay = false, AccessRights = AccessRights.None)] public class Bot_Indicator_v1 : Indicator { [Parameter("Y-Series")] public string Y_Symbol { get; set; } [Parameter("X-Series")] public string X_Symbol { get; set; } [Output("X Series", PlotType = PlotType.Line, LineColor = "#FFFF0000", LineStyle = LineStyle.Solid)] public IndicatorDataSeries X_Series { get; set; } [Output("Y Series", PlotType = PlotType.Line, LineColor = "#FFFF0000", LineStyle = LineStyle.Solid)] public IndicatorDataSeries Y_Series { get; set; } private MarketSeries X_Source; private MarketSeries Y_Source; protected override void Initialize() { X_Source = MarketData.GetSeries(X_Symbol, TimeFrame); Y_Source = MarketData.GetSeries(Y_Symbol, TimeFrame); } public override void Calculate(int index) { X_Series[index] = X_Source.Close[index]; Y_Series[index] = Y_Source.Close[index]; } } }
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(AccessRights = AccessRights.None)] public class BotTrialv1 : Robot { [Parameter("X-Series")] public string SymbolCode { get; set; } private Bot_Indicator_v1 BI; protected override void OnStart() { BI = Indicators.GetIndicator<Bot_Indicator_v1>(Symbol.Code, SymbolCode); } protected override void OnBar() { } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 14:20
Open API Error Codes have been added here
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 14:18
Hi reza h,
Can you define "flat"? Do you want all the values of the indicator to be flat? and how long is "a while"?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 14:16
Hi Symposium,
You need to provide more information on this. Where does this happen? On backesting? How can we reproduce? What is the volume? Do you get any error messages in the log?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:53
Hi JohnK,
Please share with us the indicator code as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:49
Hi FireMyst,
It is planned to be fixed in 3.5.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:45
Hi lec0456,
You can check the Poistions collection but I can assume you already do that. Donald is right, sharing the cBot code might help understanding the causes and giving more appropriate guidance.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:43
Hi fxwisdom1@gmail.com,
It is 100 characters.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:42
Hi Sasha,
You can use RemoveObject() function and identify these objects by a string.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:34
Hi John,
You need to make sure you are using corresponing indices. See below the correct way to implement it
using System; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; namespace cAlgo.Indicators { [Indicator("P_C_Source", IsOverlay = false, ScalePrecision = 5)] public class P_C_Source : Indicator { [Output("P_C_Source", LineColor = "Red", LineStyle = LineStyle.Solid)] public IndicatorDataSeries Result { get; set; } [Parameter()] public string SymbolCode { get; set; } private MarketSeries PC_Symbol_series; private Symbol PC_Symbol; protected override void Initialize() { PC_Symbol = MarketData.GetSymbol(SymbolCode); PC_Symbol_series = MarketData.GetSeries(PC_Symbol, TimeFrame); } public override void Calculate(int index) { Result[index] = PC_Symbol_series.Close[PC_Symbol_series.OpenTime.GetIndexByTime(MarketSeries.OpenTime[index])]; } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:28
Hi dominhtri1995,
There is no such feature at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Apr 2019, 12:27
Hi all,
Please send troubleshooting information whenever you encounter such a behavior. Press Ctrl+Alt+Shift+T. paste the link your comment in the text box and press submit.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Apr 2019, 12:38
Hi FireMyst,
Probably this is what is happening but I cannot confirm if I do not execute this myself :)
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:13
Hi tgjobscv,
cAlgo has been deprecated and launches cTrader instead. It has become a part of cTrader called cTrader Automate.
Best Regards,
Panagiotis
@PanagiotisCharalampous