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

PanagiotisCharalampous
02 Sep 2024, 06:06

Hi there,

There is no simple way at the moment. You would need to build your own store and licensing system. There is a plan for a cTrader Store but it will not come any time soon.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Sep 2024, 05:58

Hi there,

The logic seems to do what you are asking for. Can you provide visual examples of the signals it gives now and what signals it should give instead?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Sep 2024, 05:54

RE: I still can't find my cbot

chenshy27 said: 

As shown in the image, my cbot is called “stop10”, but I can't find it in the dropdown list as you mentioned! So where can I find the log of my cbot???

Hi there,

The first screenshot comes from the Trade section, the second comes from the Algo section. If you will run the cBot in the algo section, you will not see the logs in the Trade section but in the Algo section. 


@PanagiotisCharalampous

PanagiotisCharalampous
02 Sep 2024, 05:41

RE: RE: Cbot access the trendlines drawn on the chart

keerthankumarkateel said: 

PanagiotisCharalampous said: 

Hi there,

Unfortunately there is no way to set names for lines manually drawn on the chart.

Best regards,

Panagiotis

Hello,

Thank you for responding. If i want to create an algo with two mannually drawn trendlines (line-A and line-B). Logic is if the price crossed below Line-A buy the ticker and if the price touches the Line-B close the position.

 

Is this possible to implement? this needs algo to read the mannuaaly drawn trendline, identify it and calculate the price based on the line. Point me if there are any examples/documentation on this on how to implement this.

Hi there,

Yes it is possible to do this but there is no specific documentation for this since this is rudimentary algebra and not a cTrader specific issue. A trendline's equation is ax+b, you need to use it to find the value of the trendline on each bar and determine if the price has crossed it or not.

Best regards,

Panagiotis

 

 

 


@PanagiotisCharalampous

PanagiotisCharalampous
02 Sep 2024, 05:30

RE: RE: RE: RE: Backtesting - Incorrect TP / SL calculation

zytotoxiziteat said: 

zytotoxiziteat said: 

zytotoxiziteat said: 

PanagiotisCharalampous said: 

Hi there,

Please share your cBot code and make sure you are using tick data for your backtests.

Best regards,

Panagiotis

using System;using System.Collections.Generic;using cAlgo.API;using cAlgo.API.Indicators;using cAlgo.API.Internals;namespace cAlgo.Robots{    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]    public class TradingBot : Robot    {        [Parameter("Risk Percentage", DefaultValue = 1, MinValue = 0.1, MaxValue = 10)]        public double RiskPercentage { get; set; }        [Parameter("Stop Loss (Pips)", DefaultValue = 40, MinValue = 0, MaxValue = 100)]        public double StopLossPips { get; set; }        [Parameter("Take Profit (Pips)", DefaultValue = 20, MinValue = 0, MaxValue = 200)]        public double TakeProfitPips { get; set; }        private AI_101.ML101.ModelInput _modelInput;        private double _lastPrediction;        protected override void OnStart()        {            _modelInput = new AI_101.ML101.ModelInput();        }        protected override void OnTick()        {            // Ensure only one open position per currency pair            if (Positions.FindAll("ML Prediction", Symbol.Name).Length > 0)                return;            // Update model input with the latest close price            _modelInput.ClosePrice = (float)Symbol.Bid;  // Use Symbol.Bid instead of Symbol.LastTick.Bid            // Get prediction            var prediction = AI_101.ML101.Predict(_modelInput);            // Calculate the predicted price change            double predictedChange = prediction.ClosePrice[0] - _modelInput.ClosePrice;            // Determine if we should open a position            if (Math.Abs(predictedChange) > Symbol.PipSize)            {                if (predictedChange > 0 && _lastPrediction <= 0)                {                    OpenPosition(TradeType.Buy);                }                else if (predictedChange < 0 && _lastPrediction >= 0)                {                    OpenPosition(TradeType.Sell);                }            }            _lastPrediction = predictedChange;        }        private void OpenPosition(TradeType tradeType)        {            // Calculate position size based on risk            double riskAmount = Account.Balance * (RiskPercentage / 100);            double volumeInUnits = riskAmount / (StopLossPips * Symbol.PipValue);            // Ensure volume is within acceptable range and increments            volumeInUnits = Symbol.NormalizeVolumeInUnits(volumeInUnits, RoundingMode.ToNearest);            // Check if the volume is valid            if (volumeInUnits < Symbol.VolumeInUnitsMin || volumeInUnits > Symbol.VolumeInUnitsMax)            {                Print("Volume is out of range: " + volumeInUnits);                return;            }            // Open the position            ExecuteMarketOrder(tradeType, Symbol.Name, volumeInUnits, "ML Prediction", StopLossPips, TakeProfitPips);        }    }}

My thought was:

Since I collected only m5 candle data for my Machine learning module I changed the “Data” in settings to “m5 bars from server” for backtesting 

and I was considering to change “protected override void OnTick()” to "protected override void OnBar()".
 

Is that wrong?

What is the best solution?

Thank you

Hi there, 

If you are using fixed SL and TP, you need to use tick data to ensure accurate results in backtesting.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:48

Hi there,

If you are looking to hire somebody, feel free to contact me at development@clickalgo.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:44

Hi Jurgen,

Yes it is 


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:37

RE: Meet cTrader for Mac

Shanikhattak992 said: 

hallo can some one tell me how can i find market reply icon 

This feature is only available on cTrader Desktop


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:35

Hi there,

Can you provide a better explanation of the problem? What do you mean when you say “is too large”? How can we see this?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:31

Hi there,

Check the video below


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:29

Hi there,

Please share your cBot code and make sure you are using tick data for your backtests.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:18

RE: RE: Access Chart Scale infomation

infosecdiv said: 

PanagiotisCharalampous said: 

Hi Noppanon,

1. You can get chart height in prices using Chart.TopY and Chart.BottomY
2. You can get chart height in pixels using Chart.Height
3. Chart.ScrollChanged allows to track changes in TopY and BottomY

Best Regards,

Panagiotis

Hi,

Does this work for any chart type like Heikin Ahsi?
Because I only get zero when I run to get these values, Chart.TopY and Chart.BottomY, Chart.Height

Thanks in advance.

Hi there, 

Yes it should. Share your code and your selected timeframe so that we can reproduce this behavior.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:16

Hi there,

Unfortunately there is no way to set names for lines manually drawn on the chart.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:11

Hi there,

The Windows application has been released 13 years ago, while the Mac application was released just last year. Therefore it is expected that the Windows application will be more mature. Nevertheless, the Mac product team is working to add all the missing features to the Mac application.

Best regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:08

Hi there,

Sending emails or accessing the internet is not possible when running a cBot on the cloud. Read more information below

https://help.ctrader.com/ctrader-algo/synchronisation/requirements-for-cbots/#api-features

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:04

Hi there,

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
01 Sep 2024, 05:03

Hi there,

Check the video below


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:01

Hi there,

No this is not possible at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
01 Sep 2024, 05:01

RE: I can't find my cbot

chenshy27 said: 

Thanks for your response, but I can't find my cBot in the location you mentioned. As shown in the image, my cBot is called “stop4”, but it's not in the algo section. 

This is because the displayed logs are for the moving average. Choose your cBot in the relevant dropdown list


@PanagiotisCharalampous

PanagiotisCharalampous
30 Aug 2024, 06:05

Hi there,

You can find the logs in the Algo tab

Best regards,

Panagiotis


@PanagiotisCharalampous