Replies

PanagiotisCharalampous
19 Aug 2022, 11:56

Hi hishalv,

You need to move textblock outside OnStart and make is a class variable so that it is accessible by other members too.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 11:02

Hi ronnjinn,

You need to explain better what do you mean. Are you aware what NormalizeVolumeInUnits() does?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 08:18

Hi there,

Can you share the cBot you are using to get these results?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 08:13

Hi Jay,

Your code uses variables defined outside OnBar. Please share the complete cBot code so that I do not need to make guesses.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 08:10

Hi Jay,

If you can share your cBot code, we can have a look at it.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 08:08

Hi ahmedalihajat,

This is not how stop limit orders work. You can read here an explanation of stop limit orders.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Aug 2022, 08:05

Hi benjaminwolf123454321,

You can edit your cBots in Visual Studio and add as many files as you want.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 11:42

Hi garykhcheng,

I get both fileds in both statements.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 11:08

Hi sterpz,

Margin value has nothing to do with pip value. Margin value is dependent on volume traded. You will find this discussion helpful.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 08:59

Hi garykhcheng,

Which statement are you referring too?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 08:52

Hi kurtisnauss,

I would suggest to use ModifyStopLossPrice() instead.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 08:47

Hi noolohp,

Your problem is here

You assume that the Bars.Last(1).Close will be the same as the entry price but it is not. You should calculate your SL based on the position's entry price.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
18 Aug 2022, 08:15

Hi Jay,

Can you share your souce code so that we can give it a try?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 16:50

Hi Jay,

It should work in real time too.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 16:31

Hi Jay,

You can use the Print() method to print entries in the log.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 16:20

Hi Jonas,

I am not sure what is the problem, the code you posted above should work fine.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 15:20

Hi jmmslagter,

I tried this and had no problem. Can you share the complete cBot code that creates the problem to you?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 14:00

Hi Jonas,

So I guess you answered your own question :)

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 13:57

Hi jeunathan,

In cTrader you can easily duplicate charts and copy/paste objects from one chart to another. You will also find this indicator helpful

https://ctrader.com/algos/indicators/show/2063

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

PanagiotisCharalampous
17 Aug 2022, 11:26

Hi noolohp,

I cannot buid this code in order to run it and understand what you are looking at. Can you please provise some code that we can run? Also can you share some screenshots showing the problem you are mentioning?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous