Contribute

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

Market Profile for Amibroker (AFL)

5 / 5 (Votes 1)

Calculate the market profile.

Similar Formulas

Formula

2 Comments

Recently was looking into this AFL in TJ.

Found that there are bugs, not properly done and check before uploading to here.
1) On line 102-107 for hourly timeframe

  • => BarsInDay = BarsSince(Minute() != Ref(Minute(), -1));
    KH:Why hourly is using Minute() ?
  • => Bot = TimeFrameGetPrice(“L”, in5Minute, 0);
  • => Top = TimeFrameGetPrice(“H”, in5Minute, 0);
  • => Vol = TimeFrameGetPrice(“V”, in5Minute, 0);
    KH:Why use in5Minute and not inHourly

2) Hourly timeframe cannot be used.
=> Because the Plot()/PlotOHLC() were using in the huge looping, this will cause the amibroker raise the exception of more than 500 calls.
Therefore not suggest to use in hourly timeframe set.

3) The program seen to me there are bugs which not able to figure yet regardless of timeframe set. It keep plotting the Vah & Val, Vah1 & val1, and overwrite the plotting of Poc/Poc1 (Yellow color) and never appear.

Also I doubt the algorithm is correct.

Please kindly solve the problem.

If not, i don’t suggest anyone use this script in hourly

@kevinhand, actually it should not matter because when you use in5minute in TimeFrameSet when your current interval is inHourly, the timeframe will default to inHourly. AB will only act if you use a HIGHER TF than the one that is current while using TimeFrameSet.

Please login here to leave a comment.

Main Menu

Indicators

Sponsors