Contribute an indicator to the library by clicking here. Note you must be logged in.

New! Stock Portfolio Organizer is now available:
  • Shares, Margin, Futures and Forex
  • EOD and Realtime data
  • And Much More...
GoTo Stock Portfolio Organizer
New! WiseTrader Toolbox for Amibroker is now available with:
  • Advanced Adaptive Indicators
  • Advanced Pattern Exploration
  • Neural Networks
  • And Much More...
GoTo WiseTrader Toolbox

Popular Indicators

VWAP Bands v2 for Amibroker (AFL)

5 / 5 (Votes 6)

I took code that was already posted and improved on it at the poster’s request because it was “too slow”.

I made the following changes:

Code is now 10+ times faster per request.
Added a 3rd band.
Added a static line show prior period’s VWAP centerline
Added Weekly and Monthly period choices. Default is Daily
Included Multi-VWAP display from AB 5.50 — just Delete Study if you don’t want this.

I also note that the VWAP bands provided by AB do not seem to match up exactly with the VWAP indicator as programmed. I do not know enough about the indicator to say for sure, but the “peak” volume from Tomasz VWAP plot does not match up with the ending value of VWAP in this indicator and I should. This is because I think that the VWAP is the same as the Market Profile POC (point of control), but I don’t know for sure.

PS: It’s got a few _TRACE() statements in it that you can delete. They are just for problem solving.

Here is a screenshot of how the indicator looks:

Similar Formulas



error in line 61

No errors at all.Thanks for this code.

syntax error@ln61&63

There are absolutely NO ERRORS in this code. You guys check your AmiBroker and update it please!!

//This code finds only the VISIBLE chart area, which may or may not be the most recent day. This let’s me look at any day for evaulation purposes. FirstVisibleBar = FirstVisibleValue( bi );

error synatax

6. mahmoud

could you help me to get that indicator > every time i try to get failed . what is the prosedure to get formula?

@mahmoud use the “Copy & Paste Friendly” link to get the formula.

8. amifan

Hello magicTH
Congratulation…Good work . Plotted perfectly…small request can you please add buy-sell signals
buy= price crossing stddev_1_pos , stddev_2_pos
sell = price crossing stddev_1_neg , stddev_2_neg

*sorry for trouble
Thank you

Nice Job. Thank you.

Please login here to leave a comment.

Main Menu