CPU consumption slide no longer works.
CPU consumption slide no longer works.
06 Nov 2023, 13:47
Hello.
After changing CPU of my PC to a 14900K, CPU Consumption slide on the Optimization doesn't seem to work.
Even when set to 50%, the actual CPU utilization rises to nearly 100%.
Does anyone else have the same situation? I would like to know the solution.
Thank you.
Replies
Peteloaf
11 Nov 2023, 02:50
RE: 14900K
Peteloaf said:
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
Edit: The PC is built and the slider seems to be working fine for me. The only issue im seeng is that when i backtest without visual mode enabled my cbots end instantly with no trades placed, if I enable visual mode they work fine, which i have not seen happen before.
@Peteloaf
PanagiotisCharalampous
11 Nov 2023, 07:07
RE: RE: 14900K
Peteloaf said:
Peteloaf said:
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
Edit: The PC is built and the slider seems to be working fine for me. The only issue im seeng is that when i backtest without visual mode enabled my cbots end instantly with no trades placed, if I enable visual mode they work fine, which i have not seen happen before.
Hi there,
You can share your cBot code and we can have a look.
Best regards,
@PanagiotisCharalampous
Peteloaf
11 Nov 2023, 09:22
( Updated at: 11 Nov 2023, 09:53 )
RE: RE: RE: 14900K
PanagiotisCharalampous said:
Peteloaf said:
Peteloaf said:
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
Edit: The PC is built and the slider seems to be working fine for me. The only issue im seeng is that when i backtest without visual mode enabled my cbots end instantly with no trades placed, if I enable visual mode they work fine, which i have not seen happen before.
Hi there,
You can share your cBot code and we can have a look.
Best regards,
Hi,
It does it with any cbot including the sample ones. It is only on my new machine. My laptop and old machine which has an i7 8700k work fine. If I tick the Visual mode box it works abolutely fine on the new machine but if I untick it, it waits a few seconds and then finishes.
Also when an optimisation is run, I cant see the progress as they are running, the passes only show when complete but they place no trades. My new system specs are:
Processor: Intel i9 14900k
RAM: Corsair Vengeance DDR5 64GB
Motherboard: ASUS strix z790-F Gaming WIFI
Power Suppy: 1000W Corsair
GPU: NVIDEA RTX 2080ti (this was also in the old machine)
OS: Windows 11 Pro
It just seems odd that they run with visual mode enabled. I have a video of it doing this if needed.
The below example does what I described on my new machine:
Many thanks,
using cAlgo.API;
using cAlgo.API.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class SampleBreakoutcBot : Robot
{
[Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]
public double Quantity { get; set; }
[Parameter("Stop Loss (pips)", Group = "Protection", DefaultValue = 20, MinValue = 1)]
public int StopLossInPips { get; set; }
[Parameter("Take Profit (pips)", Group = "Protection", DefaultValue = 40, MinValue = 1)]
public int TakeProfitInPips { get; set; }
[Parameter("Source", Group = "Bollinger Bands")]
public DataSeries Source { get; set; }
[Parameter("Band Height (pips)", Group = "Bollinger Bands", DefaultValue = 40.0, MinValue = 0)]
public double BandHeightPips { get; set; }
[Parameter("Bollinger Bands Deviations", Group = "Bollinger Bands", DefaultValue = 2)]
public double Deviations { get; set; }
[Parameter("Bollinger Bands Periods", Group = "Bollinger Bands", DefaultValue = 20)]
public int Periods { get; set; }
[Parameter("Bollinger Bands MA Type", Group = "Bollinger Bands")]
public MovingAverageType MAType { get; set; }
[Parameter("Consolidation Periods", Group = "Bollinger Bands", DefaultValue = 2)]
public int ConsolidationPeriods { get; set; }
BollingerBands bollingerBands;
string label = "Sample Breakout cBot";
int consolidation;
protected override void OnStart()
{
bollingerBands = Indicators.BollingerBands(Source, Periods, Deviations, MAType);
}
protected override void OnBar()
{
var top = bollingerBands.Top.Last(1);
var bottom = bollingerBands.Bottom.Last(1);
if (top - bottom <= BandHeightPips * Symbol.PipSize)
{
consolidation = consolidation + 1;
}
else
{
consolidation = 0;
}
if (consolidation >= ConsolidationPeriods)
{
var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity);
if (Ask > top)
{
ExecuteMarketOrder(TradeType.Buy, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips);
consolidation = 0;
}
else if (Bid < bottom)
{
ExecuteMarketOrder(TradeType.Sell, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips);
consolidation = 0;
}
}
}
}
}
@Peteloaf
Peteloaf
11 Nov 2023, 13:48
RE: RE: RE: RE: 14900K
Peteloaf said:
PanagiotisCharalampous said:
Peteloaf said:
Peteloaf said:
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
Edit: The PC is built and the slider seems to be working fine for me. The only issue im seeng is that when i backtest without visual mode enabled my cbots end instantly with no trades placed, if I enable visual mode they work fine, which i have not seen happen before.
Hi there,
You can share your cBot code and we can have a look.
Best regards,
Hi,
It does it with any cbot including the sample ones. It is only on my new machine. My laptop and old machine which has an i7 8700k work fine. If I tick the Visual mode box it works abolutely fine on the new machine but if I untick it, it waits a few seconds and then finishes.
Also when an optimisation is run, I cant see the progress as they are running, the passes only show when complete but they place no trades. My new system specs are:
Processor: Intel i9 14900k
RAM: Corsair Vengeance DDR5 64GB
Motherboard: ASUS strix z790-F Gaming WIFI
Power Suppy: 1000W Corsair
GPU: NVIDEA RTX 2080ti (this was also in the old machine)
OS: Windows 11 Pro
It just seems odd that they run with visual mode enabled. I have a video of it doing this if needed.
The below example does what I described on my new machine:
Many thanks,
using cAlgo.API;using cAlgo.API.Indicators;namespace cAlgo{ [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class SampleBreakoutcBot : Robot { [Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 1, MinValue = 0.01, Step = 0.01)] public double Quantity { get; set; } [Parameter("Stop Loss (pips)", Group = "Protection", DefaultValue = 20, MinValue = 1)] public int StopLossInPips { get; set; } [Parameter("Take Profit (pips)", Group = "Protection", DefaultValue = 40, MinValue = 1)] public int TakeProfitInPips { get; set; } [Parameter("Source", Group = "Bollinger Bands")] public DataSeries Source { get; set; } [Parameter("Band Height (pips)", Group = "Bollinger Bands", DefaultValue = 40.0, MinValue = 0)] public double BandHeightPips { get; set; } [Parameter("Bollinger Bands Deviations", Group = "Bollinger Bands", DefaultValue = 2)] public double Deviations { get; set; } [Parameter("Bollinger Bands Periods", Group = "Bollinger Bands", DefaultValue = 20)] public int Periods { get; set; } [Parameter("Bollinger Bands MA Type", Group = "Bollinger Bands")] public MovingAverageType MAType { get; set; } [Parameter("Consolidation Periods", Group = "Bollinger Bands", DefaultValue = 2)] public int ConsolidationPeriods { get; set; } BollingerBands bollingerBands; string label = "Sample Breakout cBot"; int consolidation; protected override void OnStart() { bollingerBands = Indicators.BollingerBands(Source, Periods, Deviations, MAType); } protected override void OnBar() { var top = bollingerBands.Top.Last(1); var bottom = bollingerBands.Bottom.Last(1); if (top - bottom <= BandHeightPips * Symbol.PipSize) { consolidation = consolidation + 1; } else { consolidation = 0; } if (consolidation >= ConsolidationPeriods) { var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity); if (Ask > top) { ExecuteMarketOrder(TradeType.Buy, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips); consolidation = 0; } else if (Bid < bottom) { ExecuteMarketOrder(TradeType.Sell, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips); consolidation = 0; } } } }}
Another thing I just noticed but not sure if it would make a difference is that my laptop has windows 11 home edition (this works fine). My old PC was windows 10 pro (this also worked fine) and this new machine is windows 11 Pro
@Peteloaf
Peteloaf
11 Nov 2023, 14:34
RE: RE: RE: RE: RE: 14900K
Peteloaf said:
Peteloaf said:
PanagiotisCharalampous said:
Peteloaf said:
Peteloaf said:
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
Edit: The PC is built and the slider seems to be working fine for me. The only issue im seeng is that when i backtest without visual mode enabled my cbots end instantly with no trades placed, if I enable visual mode they work fine, which i have not seen happen before.
Hi there,
You can share your cBot code and we can have a look.
Best regards,
Hi,
It does it with any cbot including the sample ones. It is only on my new machine. My laptop and old machine which has an i7 8700k work fine. If I tick the Visual mode box it works abolutely fine on the new machine but if I untick it, it waits a few seconds and then finishes.
Also when an optimisation is run, I cant see the progress as they are running, the passes only show when complete but they place no trades. My new system specs are:
Processor: Intel i9 14900k
RAM: Corsair Vengeance DDR5 64GB
Motherboard: ASUS strix z790-F Gaming WIFI
Power Suppy: 1000W Corsair
GPU: NVIDEA RTX 2080ti (this was also in the old machine)
OS: Windows 11 Pro
It just seems odd that they run with visual mode enabled. I have a video of it doing this if needed.
The below example does what I described on my new machine:
Many thanks,
using cAlgo.API;using cAlgo.API.Indicators;namespace cAlgo{ [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class SampleBreakoutcBot : Robot { [Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 1, MinValue = 0.01, Step = 0.01)] public double Quantity { get; set; } [Parameter("Stop Loss (pips)", Group = "Protection", DefaultValue = 20, MinValue = 1)] public int StopLossInPips { get; set; } [Parameter("Take Profit (pips)", Group = "Protection", DefaultValue = 40, MinValue = 1)] public int TakeProfitInPips { get; set; } [Parameter("Source", Group = "Bollinger Bands")] public DataSeries Source { get; set; } [Parameter("Band Height (pips)", Group = "Bollinger Bands", DefaultValue = 40.0, MinValue = 0)] public double BandHeightPips { get; set; } [Parameter("Bollinger Bands Deviations", Group = "Bollinger Bands", DefaultValue = 2)] public double Deviations { get; set; } [Parameter("Bollinger Bands Periods", Group = "Bollinger Bands", DefaultValue = 20)] public int Periods { get; set; } [Parameter("Bollinger Bands MA Type", Group = "Bollinger Bands")] public MovingAverageType MAType { get; set; } [Parameter("Consolidation Periods", Group = "Bollinger Bands", DefaultValue = 2)] public int ConsolidationPeriods { get; set; } BollingerBands bollingerBands; string label = "Sample Breakout cBot"; int consolidation; protected override void OnStart() { bollingerBands = Indicators.BollingerBands(Source, Periods, Deviations, MAType); } protected override void OnBar() { var top = bollingerBands.Top.Last(1); var bottom = bollingerBands.Bottom.Last(1); if (top - bottom <= BandHeightPips * Symbol.PipSize) { consolidation = consolidation + 1; } else { consolidation = 0; } if (consolidation >= ConsolidationPeriods) { var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity); if (Ask > top) { ExecuteMarketOrder(TradeType.Buy, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips); consolidation = 0; } else if (Bid < bottom) { ExecuteMarketOrder(TradeType.Sell, SymbolName, volumeInUnits, label, StopLossInPips, TakeProfitInPips); consolidation = 0; } } } }}
Another thing I just noticed but not sure if it would make a difference is that my laptop has windows 11 home edition (this works fine). My old PC was windows 10 pro (this also worked fine) and this new machine is windows 11 Pro
Update: Managed to get it all working okay thanks to an older forum post. If anybody else has the same issue set the bots access rights to full access. For example change “[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]” to [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
Im not sure if this is correct or what was causing the issue but it has worked for me so far.
Cheers
@Peteloaf
PanagiotisCharalampous
12 Nov 2023, 06:19
( Updated at: 12 Nov 2023, 06:25 )
Hi Peteloaf,
Then 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,
@PanagiotisCharalampous
Peteloaf
06 Nov 2023, 21:09 ( Updated at: 07 Nov 2023, 06:27 )
14900K
Hi,
I have a 14900K arriving tomorrow.
I will let you know how I get on, if I experience this it would be an issue for me too.
Cheers for the heads up.
@Peteloaf