question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't change VWAP default anchor setting 'D' to minutes 'Min'

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nasser-miahcommented, Feb 16, 2021

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…

0reactions
twopirllccommented, Feb 18, 2021

Hi @nasser-miah,

Sorry for the late reply. No it’s a basic matplotlib/pandas chart to see if things look visually correct.

I was looking for such a feature for some time, and finally stumbled upon finplot for visualizing, it gives you an interactive plot window. Works great … https://github.com/highfestiva/finplot, check the example 2

Nice! Thanks for the reference, I will check it out. Interactive is better for trading for sure.

Thanks, KJ

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found