Replies

PanagiotisChar
07 Oct 2022, 13:36

Hi Leonardo,

This feature works only for v4.3 and newer. For classing Windows Forms check here.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
07 Oct 2022, 08:31

Hi dipset123352,

You can change this

ExecuteOrder((int)position.Volume * 2, position.TradeType);

to

ExecuteOrder(Symbol.NormalizeVolumeInUnits((int)position.Volume * 1.5), position.TradeType);

If you need more assistance, we can develop the cBot for you.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
07 Oct 2022, 08:28

Hi there,

You should contact ClickAlgo first to investigate the problem.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 18:24

Hi Yuval,

Then you will need to build something more sophisticated e.g. write to files or use Named Pipes.

Aieden Technologies

Need Help? Join us on Telegram


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 14:51

Hi yuval,

The solution is the same as in the other post. The programmer needs to fix the indicator.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 12:33

Hi thind.bs,

In order to open a cTrader live account, you need to reach out to a broker offering cTrader.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 12:30

Hi xabbu,

If you are referring to a Spotware Demo account, then the price feed does not come from a specific broker and I wouldn't suggest to use this data for any other purpose than testing and playing around.

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 12:28

Hi Yuval,

I am not sure what you are expecting. This is not an issue. The message is straight forward. You cannot invoke this method from another thread. 4.2 is running indicators on many threads therefore it is not possible to use the same programming paradigm. You need to spend some time reading and educating yourself. There is tons of resources on Google on this subject. 

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
06 Oct 2022, 08:17

Hi there,

how do I find my copy trading account?

You can see your copying accounts on cTrader Web on on cTrader Mobile, in the respective Copy sections

how do I execute a trade from a strategy provider? Or how do I know a trade was executed?

Nothing special you need to do. Just trade with your strategy providing account as usual

Basically, when I start copying from a strategy provider, is a trade automatically executed when the strategy provider executes a trade?

Yes

Aieden Technologies

Trade with us

 


@PanagiotisChar

PanagiotisChar
05 Oct 2022, 08:24

Hi jeelom111,

If you debug your code, you will find out exactly where your code is crashing. It is probably crashing because ht is null. You should be checking if the trade exists before using it.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
05 Oct 2022, 08:20

Hi there, 

You should ask your broker regarding this.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
05 Oct 2022, 08:19

Hi there,

public class Utility : Robot
    {
        public Utility() { }
        public void customMethod()
        {
            double high = Bars[Bars.Count - 1].High;
            double low = Bars[Bars.Count - 1].Low;
            Print("High: " + high + " low: " + low);
            Chart.DrawHorizontalLine("max", high, Color.Red);
            Chart.DrawHorizontalLine("min", low, Color.Blue);
        }
    }

You can't do this, since the Robot is instantiated by cTrader itself. A solution would be to pass the robot as a reference to the Utility class, something like this

public class Utility
    {
        public Utility() { }
        public void customMethod(Robot robot)
        {
            double high = robot.Bars[Bars.Count - 1].High;
            double low = robot.Bars[Bars.Count - 1].Low;
            robot.Print("High: " + high + " low: " + low);
            robot.Chart.DrawHorizontalLine("max", high, Color.Red);
            robot.Chart.DrawHorizontalLine("min", low, Color.Blue);
        }
    }

Aieden Technologies

Need Help? Join us on Telegram


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 17:20

Hi pick,

.algo files are encrypred but obviously there is a limit to what you can do with an IL based dll file. If your work is so important, you should consider other solutions.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 17:16

Hi Ben,

You can share the code here and we can have a look

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 17:15

Hi yuval,

Check Go to Date indicator to see how this is handled there.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 08:07

Hi there,

Which cTrader do you use? Who is your broker? Can you share screenshots?

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 08:05

Hi there,

It would be easier for us to help you if you shared some code with what you are doing. For example all the methods you mentioned are methods of the Robot class. You can only call them using a Robot object.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 08:01

Hi there,

It would be better to post in English. More chances to get help :)

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 08:00

Hi Shares4Us,

Make sure your cBots/Indicators have AccessRights set to FullAccess.

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar

PanagiotisChar
04 Oct 2022, 07:57

Hi Hyperion,

Just replace

Print(Bars.HighPrices.Maximum(Bars.HighPrices.Count));

with

Print(MarketData.GetBars(TimeFrame.Daily).HighPrices.Maximum(Bars.HighPrices.Count));

Aieden Technologies

Need Help? Join us on Telegram

 


@PanagiotisChar