Use open price to calculate Bollinger Bands #660
Answered
by
DaveSkender
pooyan-fekrati
asked this question in
Q&A
-
Hi all, Ia there a way to use open price instead of close price when using the GetBollingerBands method? |
Beta Was this translation helpful? Give feedback.
Answered by
DaveSkender
Aug 27, 2022
Replies: 2 comments
-
It's not part of the standard parameter options like we do for SMA and EMA, but you can still do it by converting your quote history to replace Close price with Open price, then run it through. var altQuotes = quotes
.Select(x => new Quote
{
Date = x.Date,
Close = x.Open
});
var results = altQuotes.GetBollingerBands(..); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Starting with v2, you can now choose any price element or candle variant to generate Bollinger Bands. Here's an example of the syntax: // example
var results = quotes
.Use(CandlePart.Open)
.GetBollingerBands(..); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DaveSkender
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting with v2, you can now choose any price element or candle variant to generate Bollinger Bands. Here's an example of the syntax: