Replies

JonasKn
17 Aug 2022, 20:11

RE:

PanagiotisCharalampous said:

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

Hi Panagiotis,

 

you're completely right. I don't know why my VS didn't accept it first.

Eveything is working now. Thank you again for your very good help!

BR

Jonas


@JonasKn

JonasKn
17 Aug 2022, 15:57

RE:

PanagiotisCharalampous said:

Hi Jonas,

So I guess you answered your own question :)

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Hello Panagiotis,

thanks again for you fast reply! One more question regarding the multi-currency-pair-bot.

According to this forum post, there used to be a method to find out the pip size of a symbol. Unfortunately, this is no longer available:

https://ctrader.com/forum/cbot-support/22424

Symbol symbol = Symbols.GetSymbol("EURUSD")
 then I do

Print(symbol.PipSize," , ", symbol.PipValue)

Is there an alternative way to find out? Other than via a lookuptable if necessary?

 

Thanks and best regards

Jonas

 


@JonasKn

JonasKn
17 Aug 2022, 01:14

RE:

PanagiotisCharalampous said:

Hi Jonas,

Make sure your cBot has full access rights.

[Robot(TimeZone = TimeZones.GMTStandardTime, AccessRights = AccessRights.FullAccess)]

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

Thank you very much, Panagiotis. It was indeed because of that. It now works as it should!

 

BR

Jonas


@JonasKn