Need help with a few lines of NS code
« Topic Start: 28 Декабря 2017, 16:16:00 »
Hello:

I would like some assistance parsing a string . The following code:

barTypeName = Bars.BarsType.Period.ToString();

returns

SiBTRenko B:12 T:1 R:17

Can someone please help with the code to extract the values of "B:" and "R:" above and covert them to an integer,

or,

if they can be directly acquired from the Bars object or class, whatever it is, (also as integers) that would be fine too.
Please help.
Thanks!

I didn't find the right solution from the Internet.

References: [url]https://ninjatrader.com/support/forum/showthread.php?t=105985[/url]

Pharmaceutical Advertising Example


 

Отметьте интересные вам фрагменты текста и они станут доступны по уникальной ссылке в адресной строке браузера.