Topics
Replies
PanagiotisCharalampous
26 Nov 2024, 06:12
RE: RE: Backtesting
marcelriede said:
PanagiotisCharalampous said:
Hi there,
The backtesting function should be at the same place as on the cTrader Windows application. Just click on the instance and you should get the tab on the right.
Best regards,
Panagiotis
Danke für die schnelle Antwort.
Leider kann ich die Funktion nicht finden. Sie wird mir nicht angezeigt.
Übersehe ich sie vielleicht? Gibt es einen Screenshot?
Vielen Dank
I don't have a Mac, can you share a screenshot of what you are looking at?
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:31
RE: RE: RE: RE: RE: Backtest for a multisymbol strategy crashes after upgrade to ctrader 5.0.x
richardsmits007 said:
Thank you for fixing this issue in the Windows 5.0.46 version.
The same issue is also occurring on the latest Mac version (5.0.22), with a different error code.
23/07/2024 13:31:00.000 | Trade | Executing Market Order to Buy 32,7 AMGN.US
23/07/2024 13:31:00.000 | Trade | → Executing Market Order to Buy 32,7 AMGN.US SUCCEEDED, Position PID2
24/07/2024 13:31:00.000 | Error | CBot instance [MultiSymbolTest, BA.US, D1] crashed with error #05067645.
Could you also have a look at the Mac version and apply the fix there?
Hi there,
The issue will be fixed on cTrader for Mac as well.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:12
Hi there,
This is a known issue and it will be fixed soon.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:11
Hi there,
You should talk to FxBlue about this.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:06
Hi there,
The deal map is not available yet on cTrader for Mac. It will be added in a future release.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:05
Hi there,
Make sure you are using the .Net compiler
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 07:01
Hi there,
Here they are
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:48
Hi there,
Thank you for reporting this issue. Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:46
RE: RE: RE: cTrader 5, wrong backtesting result, when not using Visual Mode. m1 Bars.
Algo_robot said:
Hi,
You asked for the source code.
This is the source code. Default parameter settings were used.
// -------------------------------------------------------------------------------------------------
//
// This code is a cTrader Automate API example.
//
// This cBot is intended to be used as a sample and does not guarantee any particular outcome or
// profit of any kind. Use it at your own risk.
//
// All changes to this file might be lost on the next application update.
// If you are going to modify this file please make a copy using the "Duplicate" command.
//
// The "Sample RSI cBot" will create a buy order when the Relative Strength Index indicator crosses the level 30,
// and a Sell order when the RSI indicator crosses the level 70. The order is closed be either a Stop Loss, defined in
// the "Stop Loss" parameter, or by the opposite RSI crossing signal (buy orders close when RSI crosses the 70 level
// and sell orders are closed when RSI crosses the 30 level).
//
// The cBot can generate only one Buy or Sell order at any given time.
//
// -------------------------------------------------------------------------------------------------
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class SampleRSIcBot : Robot
{
[Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]
public double Quantity { get; set; }
[Parameter("Source", Group = "RSI")]
public DataSeries Source { get; set; }
[Parameter("Periods", Group = "RSI", DefaultValue = 14)]
public int Periods { get; set; }
private RelativeStrengthIndex rsi;
protected override void OnStart()
{
rsi = Indicators.RelativeStrengthIndex(Source, Periods);
}
protected override void OnTick()
{
if (rsi.Result.LastValue < 30)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}
else if (rsi.Result.LastValue > 70)
{
Close(TradeType.Buy);
Open(TradeType.Sell);
}
}
private void Close(TradeType tradeType)
{
foreach (var position in Positions.FindAll("SampleRSI", SymbolName, tradeType))
ClosePosition(position);
}
private void Open(TradeType tradeType)
{
var position = Positions.Find("SampleRSI", SymbolName, tradeType);
var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity);
if (position == null)
ExecuteMarketOrder(tradeType, SymbolName, volumeInUnits, "SampleRSI");
}
}
}
Hi there,
This issue will be solved in 5.0.47
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:45
Hi there,
Did you write the code or ChatGPT :) ?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:37
Hi there,
This is not possible at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:33
Hi there,
The backtesting function should be at the same place as on the cTrader Windows application. Just click on the instance and you should get the tab on the right.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Nov 2024, 06:29
RE: Backtest
nabilvigninou said:
Did you tun the backtesting in this screenshot? Can you record a video demonstrating all the steps you take and then show the log?
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2024, 09:07
You can find the backtesting logs here
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2024, 09:01
Hi there,
I did not understand what calculation you are trying to do. Can you elaborate a bit more, providing us with some examples?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2024, 08:59
Hi all,
Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2024, 08:59
Hi all,
Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
23 Nov 2024, 08:48
Hi there,
We are not aware of any specific issue with optimization performance. If you can share more information with us like the cBot code and the optimization parameters and settings, we are happy to have a look.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
22 Nov 2024, 10:16
Hi there,
Please contact us at community@ctrader.com with more information.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Nov 2024, 06:14
Hi there,
Historical prices are provided by brokers. You should contact your broker regarding this.
Best regards,
Panagiotis
@PanagiotisCharalampous