prlozc's avatar
prlozc
prlozc's avatar

Info

Username:prlozc
Name:prlozc
Member since: 25 Dec 2020

About

None

Signature

None

Last Algorithm Comments

@Pitchfork Drawing:  18 Jul 2021, 00:54


Hello I have a problem. Usually to test source code from other people I copy the code, create a new indicator, paste it and run a new instance in a random pair. When I do this I got a lot of errors saying at the end "(are you missing a using directive or an assembly reference?)" But if I download and double click and install, it works.   Why is this happening if both sorce codes are the same? Thanks

Last Forum Posts

@ctrader copy in ctrader desktop program:  19 Jul 2021, 00:18


Basically every time I go in the desktop ctrader app to the section "Copy", I always get redirected to the website which isn't bad at all but I would feel more comfortable actually if the ctrader copy is diplayed directly in the ctrader desktop app.

Thanks

@Error CS0612: 'cAlgo.API.Internals.MarketData.GetSeries(cAlgo.API.TimeFrame)' is obsolete:  18 Jul 2021, 02:13


PanagiotisCharalampous said:

Hi prlozc,

Use GetBars() instead.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Yeah, I end up reading the full documentation and end up fixing this "obsolete" warnings/errors.

Anyways, thanks :)

@How to debug specific parts of the code when it doesn't show any error?:  18 Jul 2021, 02:11


The following code for example doesn't display correctly in the charts. There isn't any errors in the "build result" or in the "log" section.

How do we realize where is the error?

Thanks

using cAlgo.API;
namespace cAlgo
{
    // This sample shows how to use Symbols collection to get symbols data
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class SymbolsSample : Indicator
    {
        protected override void Initialize()
        {
            var scrollViewer = new ScrollViewer
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Center,
                BackgroundColor = Color.Gold,
                Opacity = 0.7,
                HorizontalScrollBarVisibility = ScrollBarVisibility.Auto,
                VerticalScrollBarVisibility = ScrollBarVisibility.Visible,
                Height = 300
            };
            var grid = new Grid(Symbols.Count + 1, 2)
            {
                BackgroundColor = Color.Gold,
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Center,
            };
            scrollViewer.Content = grid;
            grid.AddChild(new TextBlock
            {
                Text = "Name",
                Margin = 5,
                ForegroundColor = Color.Black,
                FontWeight = FontWeight.ExtraBold
            }, 0, 0);
            grid.AddChild(new TextBlock
            {
                Text = "Description",
                Margin = 5,
                ForegroundColor = Color.Black,
                FontWeight = FontWeight.ExtraBold
            }, 0, 1);
            for (int iSymbol = 1; iSymbol < Symbols.Count + 1; iSymbol++)
            {
                var symbolName = Symbols[iSymbol];
                var symbol = Symbols.GetSymbol(symbolName);
                if (!symbol.MarketHours.IsOpened()) continue;
                grid.AddChild(new TextBlock
                {
                    Text = symbolName,
                    Margin = 5,
                    ForegroundColor = Color.Black,
                    FontWeight = FontWeight.ExtraBold
                }, iSymbol, 0);
                grid.AddChild(new Button
                {
                    Text = symbol.Description,
                    Margin = 5,
                    ForegroundColor = Color.Black,
                    FontWeight = FontWeight.ExtraBold
                }, iSymbol, 1);
            }
            Chart.AddControl(scrollViewer);
        }
        public override void Calculate(int index)
        {
        }
    }
}

@Looking for an investor to work on the application of machine learning:  18 Jul 2021, 01:33


trader.calgo said:

The program itself is already written by me. Work remained on the side of cTrader bots

If you are interested in these studies, write to me in telegrams @karuzzoIAM t.me/karuzzoIAM 

The image doesn't load :/

@cTrader vs MT4 & Why its Better:  18 Jul 2021, 01:32


ClickAlgo said:

Over the years we have noticed a large number of retail traders migrating over to the cTrader trading platform which is now maturing into a professional trading tool for retail traders. we have written an article which we hope will help anyone who may be new to cTrader and looking at joining the growing community of happy traders.

.

cTrader vs MT4 The Truth

.

Paul Hayes
Sales & Marketing
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

Twitter | Facebook | YouTube | Pinterest | LinkedIn

PS: Why not join our instant chat group on Telegram.

I believe metatrader 4/5 should improve a lot of their documentation, because my computer can't even load a 5k pages pdf manual to learn the full language lol.

Also the UI/UX is very poor in their website and in their desktop app while in ctrader their website and their desktop app is very awesome.

Also, although mql4/5 is very similar to cpp you have to learn new syntax while in ctrader is the API, c# has more uses.

We could say, "I have felt in love with ctrader" hahahaha

@ctrader.guru for sale:  18 Jul 2021, 01:28


ctrader.guru said:

Hi all,

we sell our domain ctrader.guru with all stuff, we rate offers info@ctrader.guru

So if you are selling your website it is because you expected more profits yeah?

I believe you were doing good.

What do you think is the issue with your business?

Thanks

@Source Code for cBot backtested using 4 broker and 5yrs of data:  18 Jul 2021, 01:25


Over 6000 lines of code!!

@Currency Strength Indicator [automated-trading.ch]:  18 Jul 2021, 00:57


HichemMhamed said:

Hello,

I have published a new post on my technical blog about developing a currency strength indicator on the cTrader platform.

The source code is available to download for free.

https://automated-trading.ch/developing-a-basic-currency-strength-indicator-on-ctrader

Best regards

Brother your website is down :/ , what happened? 

@Average winning trade and Average losing trade:  17 Jul 2021, 03:16


When doing a backtest you can know the following parameters after the the backtest has finished in the section of "Trade Statistics":

Net Profit

Profit Factor

Commission

Max Balance Drawdown

Max Equity Drawdown

Total Trades

Winning Trades

Max Consecutive Winning Trades

Largest Winning Trade

Average Trade

Sharpe & Sortino Ratio

----

I believe you should add too "Average winning trade", being the formula the sum of all winning trades divided by the number of winning trades and "Average losing trade", being the formula the sum of all losing trades divided by the number of losing trades. 

Thanks

@Error CS0103: The name 'Properties' does not exist in the current context:  15 Jul 2021, 14:58


What's wrong with this code?

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
    // This sample shows how to use image control to show images
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.FileSystem)]
    public class ImageSample : Indicator
    {
        protected override void Initialize()
        {
            var image = new Image 
            {
                // Logo is an icon file inside project resources
                Source = Properties.Resources.Logo,
                Width = 200,
                Height = 200,
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Center
            };
            Chart.AddControl(image);
        }
        public override void Calculate(int index)
        {
        }
    }
}

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.