Topics
Replies

mirco.kahle@gmail.com
18 Dec 2019, 00:25

RE:

PanagiotisCharalampous said:

Hi M K,

I assume you are using 3.7

 

 

Yes, I cant seem to find a dialog that gives me the exact build / version number, but it says "(Public beta) 3.7" in the title


@mirco.kahle@gmail.com

mirco.kahle@gmail.com
16 Dec 2019, 16:52 ( Updated at: 21 Dec 2023, 09:21 )

interesting. for me it is doing nothing:

maybe we are on different versions somehow?

Thanks to the blog post you linked in an other thread I got my other code working. just avoid the OnBar() event...


@mirco.kahle@gmail.com

mirco.kahle@gmail.com
16 Dec 2019, 14:06

Hi Panagiotis,

the bot is supposed to print the close prices of the current symbol to the log, nothing more. When I run it for the symbol mentioned in this line

 var eurusdBars = MarketData.GetBars(TimeFrame.Daily, "EURUSD");

it works as expected.

But if I use it on any other symbol it won't log the messages. It seems the OnBar() event is never triggered.

 

Maybe the default events and accessors like `onBar`, `Bars` ... are disabled once you interact with a different symbol than the one the bot is running on?

 

Regards,

Mirco

 


@mirco.kahle@gmail.com

mirco.kahle@gmail.com
14 Dec 2019, 00:39

this would be interesting indeed.

I managed to find Ask/Bid etc information via 

Symbols.GetSymbol("EURUSD")

and market orders work as well.

But Indicators? OnBar events? no clue


@mirco.kahle@gmail.com