Change Renko Candle Size Using System.Reflection
Author: Rebelion
Creation Date: 5/26/2013 8:28 AM
profile picture

Rebelion

#1
Hello. I use Renko chart for my strategies.
But I use dynamic parameters creation in my strategies by changing high, low, defaultValue and value parameters via config file. But I also need to change renko candle size on the chart (change default candle size on the size I set up in my strategy as default candle size value).
I really don't know how to do this well, I use this dummy code through reflection:

CODE:
Please log in to see this code.


(I write this example supposing that only one window with chart for my strategy is opened at the sime time. It's a part of original code I use for selection Forms and changing parameters).

I don't know how to renew chart bars - what method shoud I use for this?
I tried:



CODE:
Please log in to see this code.


But have no effect.

Pls, help...
profile picture

Rebelion

#2
Guys?
profile picture

Rebelion

#3
Solved using code like this:

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).