Can't change VWAP default anchor setting 'D' to minutes 'Min'
See original GitHub issueHi, I’m trying to change the default anchor setting on the VWAP indicator, i.e. from ‘D’ for Days to Minutes, but can’t seem to change it. It still chooses ‘D’. This is my CustomStrategy:
# Create your own Custom Strategy
CustomStrategy = ta.Strategy(
name="Momo and Volatility",
description="SMA 50,200, BBANDS, RSI, SQZ, MACD, STOCH and Volume SMA 20",
ta=[
{"kind": "ema", "length": 10},
{"kind": "vwap", "anchor": "Min"},
]
)
What am I doing wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
VWAP Max- Settings and Anchors | Simpler Trading Help Center
Standard Deviations- Enter the number of standard deviations used in calculating the max VWAP envelope. The default is 3.0 and should generally be...
Read more >Anchored VWAP - ChartSchool - StockCharts.com
The Anchored VWAP indicator ties VWAP calculations to a specific price bar chosen by the trader. Like the traditional VWAP, it incorporates price...
Read more >Trading With VWAP and Moving VWAP - Tutorial and Examples
Trading With VWAP and Moving VWAP Explained. Can the volume weighted average price help trading decisions? We explain VWAP and MVAMP and how...
Read more >VWAP Date anchored - Indicators - ProRealTime - ProRealCode
just change the starting date in the settings. The indicator does not have any predefined period as it uses the bars quantity elapsed...
Read more >Volume-Weighted Average Price (VWAP) - Investopedia
VWAP is anchored to the opening price range of the day. Therefore, the indicator increases its lag as the day goes on. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @twopirllc, thanks buddy for your help, it works great! I however changed the vwap anchor from minute scale to hourly and can now make use of it in technical analysis minute charts. Just a question though, is that last line supposed to plot something? If so, it did not work for me…
Hi @nasser-miah,
Sorry for the late reply. No it’s a basic matplotlib/pandas chart to see if things look visually correct.
Nice! Thanks for the reference, I will check it out. Interactive is better for trading for sure.
Thanks, KJ