PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
20 Jun 2024, 06:32

Hi there,

Please contact TopFX for specific instructions on how to access your account.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jun 2024, 06:29

Hi there,

There is no such feature unfortunately.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jun 2024, 06:28

Hi there,

This tool will be added in a future update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jun 2024, 05:56

Hi there,

It's better to talk to your broker to explain to you what happens.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 12:36

RE: RE: RE: RE: RE: RE: RE: RE: Account Margin not resetting when backtesting bot

Phluxxed said: 

PanagiotisCharalampous said: 

Phluxxed said: 

PanagiotisCharalampous said: 

Phluxxed said: 

PanagiotisCharalampous said: 

Phluxxed said: 

PanagiotisCharalampous said: 

Hi there,

Please provide us with dates, cBot parameters and backtesting settings so that we can reproduce this behavior on backtesting. Also share some screenshots demonstrating these positions.

Best regards,

Panagiotis

Parameters are the default ones built into the bot as it's just an example and it's what I used to replicate. Back testing was a number of markets (forex, spot metals, spot indices, crypto, whatever else I tested it on) and dates are anything available in the range of 2013 - now that runs for longer than 100 trades. Tested on both 1m, the 2h and 15m charts I was testing on and tick data. 

See below to show that the balance and equity is basically full but margin is more than the balance of the account:

And then you can see here the only position I have open is minimum lot size:

Thanks Vik, 

We managed to reproduce the problem and it will be fixed in an upcoming update.

Best regards,

Panagiotis

Ah fantastic, glad to see it wasn't something I was doing! You got a rough timeframe on when that update may be? 

Unfortunately we do not have a timeframe at the moment

PanagiotisCharalampous hey mate the issue seems to have returned again? It was working fine after the last update but I'm running into it again. 

Hi there,

Can you share new screenshots showing the version as well?

Best regards,

Panagiotis

Thank you, the fix for this issue was not released yet. It will be released in an upcoming update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 12:23

Hi there,

Can you take full screenshots so that we can see the account number, broker and cTrader version?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 05:11

RE: RE: RE: RE: RE: RE: Account Margin not resetting when backtesting bot

Phluxxed said: 

PanagiotisCharalampous said: 

Phluxxed said: 

PanagiotisCharalampous said: 

Phluxxed said: 

PanagiotisCharalampous said: 

Hi there,

Please provide us with dates, cBot parameters and backtesting settings so that we can reproduce this behavior on backtesting. Also share some screenshots demonstrating these positions.

Best regards,

Panagiotis

Parameters are the default ones built into the bot as it's just an example and it's what I used to replicate. Back testing was a number of markets (forex, spot metals, spot indices, crypto, whatever else I tested it on) and dates are anything available in the range of 2013 - now that runs for longer than 100 trades. Tested on both 1m, the 2h and 15m charts I was testing on and tick data. 

See below to show that the balance and equity is basically full but margin is more than the balance of the account:

And then you can see here the only position I have open is minimum lot size:

Thanks Vik, 

We managed to reproduce the problem and it will be fixed in an upcoming update.

Best regards,

Panagiotis

Ah fantastic, glad to see it wasn't something I was doing! You got a rough timeframe on when that update may be? 

Unfortunately we do not have a timeframe at the moment

PanagiotisCharalampous hey mate the issue seems to have returned again? It was working fine after the last update but I'm running into it again. 

Hi there,

Can you share new screenshots showing the version as well?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 05:08

Hi there,

I cannot reproduce such an issue. Can you demonstrate this problem with screenshots e.g. comparing desktop and web and showing that the trades are missing from the desktop?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 05:05

RE: RE: RE: RE:

Investec said: 

H_T_S said: 

ftmo4free said:

I have the same problem. Has your strategy now become visible? So, yes... do you know what caused it to not be visible?

 

No my strategy is still not visible in strategy list and all what i co do its done. So i dont know i still have this information. no one can help i see.

Requirements for Inclusion in the Strategy List:

  • A positive account balance.
  • At least one open position.
  • At least one deal executed within the last 72 hours.
  • More than -90% in the overall ROI.

 

My strategy is not visible as well. Further more, I have see strategies visible with NO open position! Why is that? 

Hi there,

How do you know that there is no open position?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 05:04

Hi all,

This has been implemented in v5.0.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2024, 05:01

Hi there, 

Mobile applications use push notifications for price alerts. The sound of the notification is a device setting, so check the configuration in your OS.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 10:38

RE: RE: RE: RE: RE: RE: RE: RE: Changing timeframe while backtesting using visual backtesting

bcronje said: 

Hi Beyers,

The timeframe will change as soon as you start backtesting again.

Best regards,

Panagiotis

Hi Panagiotis,

I think there's some misunderstanding here. I do not want to rerun the backtest on a different timeframe. I want to for example backtest on H1, and when the backtest finishes change the timeframe on the backtest window to M30 or M15 to analyze in more detail what actually happened in the lower timeframes, while still keeping the trade history of the H1 backtest. I'm fairly new to cTrader and automated trading in general, but I would've thought this would be a common scenario for testing and finetuning?

Maybe I could to set the cBot timeframe as an input parameter (H1), and then run the backtest with M15 timeframe? Or would this not be possible?

Kind regards

Beyers

 

Hi Beyers,

Ok understood. Such an option is not available at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 10:37

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
18 Jun 2024, 10:35

RE: RE: Error CS1503

said.moridi said: 

PanagiotisCharalampous said: 

Hi, off course, sorry. 
I created this code to get data from my local api, show on the chart and connect the different values to a line.
The last error I keep getting is 
Error CS1503: argument 3: CannotUnloadAppDomainException convert from 'system.DataTime' to 'int'  
I tried everything :)

Hi Said,

The message is self explanatory. You cannot use a DateTime in the place of an int. Also you are using an obsolete method. Try something like the below instead

Chart.DrawText($"algo1_{data.OpenTime}", "•", data.OpenTime, (double)data.Close, Color.White);

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 10:27

RE: RE: RE: RE: Apply as default settings for objects doesn't work

ericlooi said: 

PanagiotisCharalampous said: 

ericlooi said: 

PanagiotisCharalampous said: 

Hi there,

I have just tried this option and works fine. Can you provide more information e.g. record a video demonstrating this happening?

Best regards,

Panagiotis

Hi, 

Here it is: 

https://streamable.com/j7a805

Take a look

 

Thank you. The color is not saved as part of the default settings by design.

Best regards,

Panagiotis

Why Color cannot be saved as default settings?

Because this setting is shared amongst all drawing tools and will cause more confusion


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 09:14

RE: RE: OnBar and OnBarClosed issues when using Renko chart

yohtza said: 

PanagiotisCharalampous said: 

Hi there,

This is by design. If the price jumps more that one bar, then the method is only executed once for the last bar.

Best regards,

Panagiotis

Any suggestions on how to keep the drawing behavior consistent would be greatly appreciated.

Thanks

On each bar you should keep track how many bars have been added using Bars.Count. If more than one bars have been added then you would need to add the numbers using a loop for all the new bars added


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 09:10

Hi there,

Please provide more information about your problem. What is the exact issue?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 09:09

RE: RE: Apply as default settings for objects doesn't work

ericlooi said: 

PanagiotisCharalampous said: 

Hi there,

I have just tried this option and works fine. Can you provide more information e.g. record a video demonstrating this happening?

Best regards,

Panagiotis

Hi, 

Here it is: 

https://streamable.com/j7a805

Take a look

 

Thank you. The color is not saved as part of the default settings by design.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 09:07

RE: RE: RE: RE: RE: Crash in visual mode during backtest and StopLoss not set duing backtest

ys2310 said: 

Hi Panagiotis,

I'm using ICMarkets. How can I check and prevent this using code?

PanagiotisCharalampous said: 

ys2310 said: 

ys2310 said: 

PanagiotisCharalampous said: 

Hi there,

We have received the exception and the issue will be solved in an upcoming release.

Regarding the SL issue, we would need the cBot code and backtesting parameters in order to reproduce this and explain what happens.

Best regards,

Panagiotis

Hi Panagiotis,

Here is the test code that produce the SL issue, I'm using Nikkei225, Hm1 for testing

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, TimeZone = TimeZones.EasternStandardTime)]
    public class Test2 : Robot
    {        
        [Parameter(DefaultValue = 10, MinValue = 0, MaxValue = 500, Step = 10)]
        public int lossCut { get; set; }
        
        [Parameter(DefaultValue = 10, MinValue = 0, MaxValue = 500, Step = 10)]
        public int takeProfit { get; set; }
        
        double volume = 0.0;
        
        protected override void OnStart()
        {
            // To learn more about cTrader Automate visit our Help Center:
            // https://help.ctrader.com/ctrader-automate
        }

        protected override void OnBarClosed()
        {
            volume = 10;
            
            var last_buy_position = Positions.Where(x => x.Label == "Test" && x.SymbolName == Symbol.Name && x.TradeType == TradeType.Buy).OrderByDescending(x => x.EntryTime).FirstOrDefault();
            
            // Handle price updates here
            if(MarketData.GetBars(TimeFrame, "US500").ClosePrices.Last(0) > MarketData.GetBars(TimeFrame, "US500").OpenPrices.Last(0))
               if (last_buy_position == null || Symbol.Ask < last_buy_position.EntryPrice - 100 * Symbol.TickSize)
                   ExecuteMarketOrder(TradeType.Buy, Symbol.Name, volume, "Test", lossCut, takeProfit, (Server.Time - Bars.Last(0).OpenTime).Milliseconds.ToString());            
        }
        protected override void OnTick() {
            foreach(var position in Positions.FindAll("Test", Symbol.Name))
                if(position.StopLoss == null)
                    ModifyPositionAsync(position, Symbol.Ask - 20 * Symbol.PipSize, position.TakeProfit);
                
        }

        protected override void OnStop()
        {
            // Handle cBot stop here
        }
    }
}

Can you also tell me the broker? This usually happens when your SL falls within the symbol's spread. Please check if this is the case

 

Hi there,

You can use Positions.Opened event and check if the stop loss was set. If the stop loss is null you can act accordingly i.e. place it at a valid distance.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2024, 05:37

Hi there,

It's better to ask your broker why this happened.

Best regards,

Panagiotis


@PanagiotisCharalampous