Topics
Replies
PanagiotisCharalampous
31 May 2024, 05:31
Hi there,
Does this still happen? Did you try a hard refresh (Ctrl+F5)? Can you share screenshots?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
31 May 2024, 05:29
RE: RE: RE: ERROR CODE - CT0003 assembly must contain single algo type
hungtrash17 said:
PanagiotisCharalampous said:
Maxlondoner said:
I have the same problem, I choose a new bot, but when I give it the name for a moment everything is ok but immediately after the new name remains only in the list of bots but in the code window NEW BOT reappears and the program gives me an error... .
Hi there,
Can you record a video with the steps you are taking, demonstrating this behavior?
Best regards,
Panagiotis
I have the same error CT0003
Thank you. Please send us some troubleshooting info and quote the link to this discussion immediately after this happens.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 12:44
Hi there,
cTrader automatically connects to the fastest one, you do not need to do this manually.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:40
RE: RE: No right click Rename of cbots & indicators in latest update
ncel01 said:
PanagiotisCharalampous said:
Hi there,
This was removed because of complexities with the new synchronization feature. You can duplicate the algo and rename it instead.
Best regards,
Panagiotis
Hi Panagiotis,
That seems to be a fair reason.
In fact this can be easily achieved by duplicating and renaming an instance. Thanks for the tip!
Question: it seems like “In Cloud” is active by default. Can this be changed to “Locally” instead?
Thanks!
We can suggest it :)
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:35
Hi there,
You can check the documentation here
https://help.ctrader.com/ctrader-algo/how-tos-index/
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:34
Hi there,
Strategy fees cannot be changed while the strategy is running. The strategy needs to be stopped before a strategy provider can do that.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:31
RE: RE: MACD showing incorrect information
eliezer_barros said:
PanagiotisCharalampous said:
Hi there,
Please share your cBot code and cBot parameters to reproduce this behavior.
Best regards,
Panagiotis
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Robots
{
// [Robot(AccessRights = AccessRights.FullAccess)]
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
public class Macdnasdaq : Robot
{
[Parameter("Volume", DefaultValue = 1.00)]
public double VolumeToOpenOrders { get; set; }
[Parameter("Profit", DefaultValue = 30)]
public int TakeProfitInPips { get; set; }
[Parameter("Stop Loss", DefaultValue = 15)]
public int StopLoss { get; set; }
[Parameter("Data Source")]
public DataSeries Price { get; set; }
[Parameter("MACD Period", DefaultValue = 9)]
public int MACDPeriod { get; set; }
[Parameter("Long Cycle", DefaultValue = 26)]
public int LongCycle { get; set; }
[Parameter("Short Cycle", DefaultValue = 12)]
public int ShortCycle { get; set; }
private MacdCrossOver _MACD;
public DirectionalMovementSystem _DMS;
[Parameter("DMS Period", DefaultValue = 9)]
public int DMSPeriod { get; set; }
private const string label = "MACD";
protected override void OnStart()
{
_MACD = Indicators.MacdCrossOver(LongCycle, ShortCycle, MACDPeriod);
_DMS = Indicators.DirectionalMovementSystem(DMSPeriod);
}
protected override void OnBar()
{
var upposition = Positions.Find(label, SymbolName, TradeType.Buy);
var downposition = Positions.Find(label, SymbolName, TradeType.Sell);
Print (" Mac last value " , _MACD.MACD.LastValue, " MAC sinal " , _MACD.Signal.LastValue, " Histogram " , _MACD.Histogram.LastValue);
if (_MACD.MACD.HasCrossedAbove(_MACD.Signal.LastValue,1))
{
if (downposition != null)
{
ClosePosition(downposition);
}
if (upposition == null)
{
ExecuteMarketOrder(TradeType.Buy, Symbol.Name, VolumeToOpenOrders, label, StopLoss, TakeProfitInPips);
}
}
if (_MACD.MACD.HasCrossedBelow(_MACD.Signal.LastValue,1))
{
if (upposition != null)
{
ClosePosition(upposition);
}
if (downposition == null)
{
ExecuteMarketOrder(TradeType.Sell, Symbol.Name, VolumeToOpenOrders, label, StopLoss, TakeProfitInPips);
}
}
}
}
}
Hi there,
You seem to use the LastValue on bar opening. This value changes by the time the bar is closed. Use Last(1) instead.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:28
Hi there,
Better ask this question in cMAM's Telegram group
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:27
Hi there,
Can you share screenshots demonstrating this bug?
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:26
Hi there,
There is no such feature in cTrader at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:23
RE: RE: RE:
pp1423 said:
Rudy&Claus said:
milanlehovic said:
What kind of bastard can make scam like this? Lost almost 80k. I can’t understand this. When he was making good traders with profit, he was profiting aswell. This was very expensive night.
Well you guys better dont invest in strategies with volume fees and that not passed 3 month of existance. These accounts will likely be blown, just wait for enough data over month and invest in those who are serious.
i mean why people still falling for those scammers.... its the greed of high roi. Be happy with 20-30% and a consistent trader, thats more than you will ever get regulary
Hi, I am New to cTrader, Could you let us know if Volume fees can be made active during the running of strategy, and immediately this scam can happen. Any information is appreciated.
Hi there,
The fees cannot be changed while the strategy is running. It needs to be stopped first.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:21
Hi there,
Spread is only available when you use bar data for backtesting. When you use tick data, the spread information is included in the data.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:18
RE: ctrader Mac software still on v4 not the latest v5
Templestone55 said:
hi, I downloaded the ctrader Mac app twice and its still on the v4 and not the latest v5 please can you rectify this thanks.
cTrader for Mac has not been updated yet.
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:17
RE: cTrader Desktop 5.0.22 Release Notes
Tarek.ElRaey said:
thank you for the update but how about the below pending points :
- Optimization speed still much lower compared to Ctrader 4.8.30
- the progress gauge next to optimizing bots on the left pannel not visible. ( you have to click on each bot to check if it is optimizing and check its status )
- equity tab is not combined with the history tab and the statistics tab which prevents us from seeing a the equity chart without the need to scroll up and down
- can't see equity progress / trades history live while bot is optimizing
Optimization speed and progress gauge will be part of future updates. The rest are intentional changes will not be reversed for the moment
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:09
RE: Symbol/Dom/Calendar panels/tabs on Right HS
JSFX_AU said:
That great information panel which is available on web and win version.
When this will be available on Mac version. I have to use web version now and that proves to be very processor hungry and slows down the computer. Sometimes even crashes in Chrome.
Hi there,
It will be added in future releases but we do not have an ETA at the moment.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 May 2024, 06:08
RE: RE: Investor link doesn’t show any charts
Kaspricci said:
PanagiotisCharalampous said:
Hi there,
This is a known issue and will be fixed soon.
Best regards,
Panagiotis
Is there already a date by when this will be fixed? Thx
No we do not have a date.
@PanagiotisCharalampous
PanagiotisCharalampous
29 May 2024, 07:22
RE: RE: RE: RE: RE: RE: Log window not showing the correct time
firemyst said:
PanagiotisCharalampous said:
I have developed hundreds of strategies and almost all of them need a fixed timezone regardless where the cBot is running.
So just program in something like the following to get the time based on a fixed time zone and compare whatever actions you need that are time based agains the _Dt datetime variable instead. This has been available since .Net 3.5 I think:
Datetime _Dt = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(Server.TimeInUtc, "Eastern Standard Time"); //or use DateTime.Now in the API call to get the time if more appropriate
Decisions need to be taken at specific times no matter if the code is executed in London, New York or Beijing.
Then if the programmer isn't going to get time based on a specific time zone, they can have it coded in the bot to look at specific times with the C# UTC setting such as getting the time in UTC time and adding an offset. For example:
//if you know the specific time, add it to UTCTimeSpan LocalUTCTimeSpanOffset = new TimeSpan(2, 0, 0);DateTime _Dt = Server.TimeInUtc + LocalUTCTimeSpanOffset;//or if the user knows what time they want things to happen in a specific time zone:Datetime _Dt = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, "Eastern Standard Time");//then just compare _localDt to the specific time they need things to happen//or the user specifies the timezone in the directive tag as is currently implemented
Using the above, you have the best of both worlds – implementing the above, users can have their bots make decisions at specific times as they see fit regardless of what timezone cTrader or the server is set to and the code is running in;
when no time zone is provided in the directive and the bots are being run somewhere locally via cTrader, use the timezone the user set in cTrader so those people who travel from Spain (UTC + 2) to London (UTC + 1) to New York (UTC - 4) and back can update their cTrader setting and have the logs and other info with timestamps without having to recompile and redeploy code.
At the moment I don't need to do anything for 99% of cases where cBots/Indicators work in the same country. Your suggestion can be adopted for those rare cases like the ones you mention. If there is enough demand, we will consider it as a built in feature.
@PanagiotisCharalampous
PanagiotisCharalampous
29 May 2024, 06:49
Hi there,
This was removed because of complexities with the new synchronization feature. You can duplicate the algo and rename it instead.
Best regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 May 2024, 06:47
RE: RE: RE: v5.0.22 no indicators
caputojr said:
PanagiotisCharalampous said:
caputojr said:
Hello,
You are not alone on this issue. I have it in both Windows and Mac versions.
I have issues with built-in and 3rd parties indicators.
Did you send us troubleshooting?
For Windows version yes, a believe I sent 2 plus annoying you here in the forum. For the Mac I don't think so, I will do it so once I get home later tonight.
Thanks for the follow up
Unfortunately we cannot find the troubleshooting report. Make sure you post the link to the discussion in the text box. Nevertheless, we received similar reports and the issue will be fixed in the upcoming hotfix
@PanagiotisCharalampous
PanagiotisCharalampous
31 May 2024, 05:33
Hi there,
Do you still experience this issue? Did you try a hard refresh(Ctrl+F5)?
Best regards,
Panagiotis
@PanagiotisCharalampous