bienve.pf's avatar
Bienve Prados
Bienve Prados's avatar

Info

Username:bienve.pf
Name:Bienve Prados
Member since: 19 Sep 2018
Country:Spain

Favorite symbols:

EURUSD

About

More than 4 years of experience in cTrader and MT4. I have carried out dozens of projects of all kinds. My support is unlimited and my purpose is to get satisfied customers

Signature

None

Last Forum Posts

@ctrader compiler no works (neither external nor internal compiler):  05 Jan 2023, 14:22


For what it's worth I use VS to edit and compile and also sometimes I use ctrader to compile with source code.

Perhaps this can serve as a clue.

@ctrader compiler no works (neither external nor internal compiler):  04 Jan 2023, 15:28


In my computer I had other versions like 4.1. I suppose this is not a problem. And the compiler I use is external NET. But this happend with all compilers

@ctrader compiler no works (neither external nor internal compiler):  04 Jan 2023, 14:06


Hi, when I create an empty project and I try to compile ctrader doesnt work.
It remains sleeping without compiling.
I uninstall and reinstall but it continues same.

I just click ""create new bot" then I click compile but compile button is blocked (clicked) and no works.
It happend in any version of ctrader 4.4 or 4.5

@crashes on the ctrader 4.2:  20 Sep 2022, 14:00


I experience a lot of crashes on the ctrader 4.3 main thread when I edit in Visual Studio and compile the solution.
Ctrader doesn't sync well the reload of the new build (when done from Visual Studio 2022) and gets locked or trying lo reconnect to server a lot of times.
It´s impossible to work in backtesting.

I have to force close ctrader to restart it.
This happens constantly since update 4.2

Thanks.

@cTrader BUG:  11 Nov 2021, 14:21


Hello, something in the latest version of ctrader prevents creating objects on the chart to be able to move them with the mouse.
An overload message blocks the following code:


using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Tony_test : Indicator
    {


        ChartIcon m_point;

        protected override void Initialize()
        {


            Chart.MouseDown += arg =>
            {
                m_point = Chart.DrawIcon("point_1", ChartIconType.Circle, arg.TimeValue, arg.YValue, Color.Gray);
            };


            Chart.MouseMove += arg =>
            {
                if (m_point != null)
                {
                    m_point.Time = arg.TimeValue;
                    m_point.Y = arg.YValue;
                }
            };


        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = ...
        }
    }
}

@An important bug on Multi-timeframe indicators:  26 Apr 2021, 11:39


 This a sample bot that use the MTF indicator

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
using System.Threading;
using System.Windows.Forms;
using System.Net;
using System.IO.Compression;
using System.IO;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
    public class borrar : Robot
    {

        [Parameter("Data Location", DefaultValue = VerticalAlignment.Bottom)]
        public VerticalAlignment DataLocation { get; set; }



        [Parameter("Load MTF", DefaultValue = true)]
        public bool LoadMTF { get; set; }


        MTF _mtf;

        protected override void OnStart()
        {
            // Put your initialization logic here
            if (LoadMTF)
                _mtf = Indicators.GetIndicator<MTF>(DataLocation);


        }
        protected override void OnTick()
        {

            if (LoadMTF)
            {
                var last = _mtf.Result.LastValue;
            }

        }
    }
}

@An important bug on Multi-timeframe indicators:  26 Apr 2021, 11:38


 This is a test indicator. Just insert in Chart of Backtesting to see that info changes about TimeFrame bar counters

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class MTF : Indicator
    {

        [Parameter("Data Location", DefaultValue = VerticalAlignment.Bottom)]
        public VerticalAlignment DataLocation { get; set; }



        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }


        Bars bars1;
        Bars bars2;
        Bars bars3;
        Bars bars4;

        protected override void Initialize()
        {
            // Initialize and create nested indicators

            bars1 = MarketData.GetBars(TimeFrame.Hour);
            bars2 = MarketData.GetBars(TimeFrame.Hour4);
            bars3 = MarketData.GetBars(TimeFrame.Hour12);
            bars4 = MarketData.GetBars(TimeFrame.Daily);


        }


        public override void Calculate(int index)
        {
            string info = bars1.TimeFrame.ToString() + " -> " + bars1.Count + "\n" + bars2.TimeFrame.ToString() + " -> " + bars2.Count + "\n" + bars3.TimeFrame.ToString() + " -> " + bars3.Count + "\n" + bars4.TimeFrame.ToString() + " -> " + bars4.Count;

            Chart.DrawStaticText("info", info, DataLocation, HorizontalAlignment.Right, Color.White);
        }
    }
}

@There is a BUG in┬áNormalizeVolumeInUnits():  17 Mar 2021, 12:23


amusleh said:

The team were able to reproduce this issue and it will be fixed in future releases, thanks.

Perfect. Thanks for your response.

Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.

No uploaded.

Warning! Executing cBots downloaded from this section may result in loss of funds. Use them at your own risk.

No uploaded.