Hi all,
Using VB.Net I'm trying to read a value from one indicator into my own indicator, for example, in the image below my indicator is the one in the on bottom and the Bollinger addon is the Sub One chart:
How do i read (for ex.) the UpperBand value of the Bollinger band from my indicator CalcBar() event?
C# solutions will work as well
Thanks much in advance!
Best,
R.
read value from one indicator into another? [SOLVED]
read value from one indicator into another?
- Attachments
-
- bollinger and macd.png
- (230.15 KiB) Downloaded 1516 times
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: read value from one indicator into another?
Don't have time for a full code example, but there's a code example from Henry here that does this. In short, you need to use the `AddIndicator()` method.
Re: read value from one indicator into another? [SOLVED]
For anyone how may be interested on how to do it using VB.Net:
add an Import
add a variable
in Sub Create() add
and to get the high band value in Sub CalcBar()
Cheers,
R.
add an Import
Code: Select all
Imports PowerLanguage.Indicator
Code: Select all
Private MyBollinger as PowerLanguage.Indicator.vb_Bollinger_Bands
Code: Select all
MyBollinger = AddIndicator("vb_Bollinger_Bands")
Code: Select all
g_High_Upper_Band = MyBollinger.Plots(0).Values(0)
Cheers,
R.