Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Real-Time Bid vs Ask Dashboard w/ Price and Volume for Amibroker (AFL)

Rating:
4 / 5 (Votes 3)
Tags:
amibroker, bid, ask, realtime

This made by me based on existence Bid Ask Dashboard. This need real-time data.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN( "Bid Vs Ask Dashboard" );

messageboard = ParamToggle( "Message Board", "Show|Hide", 1 );

if( messageboard == 1 )
{
    Bid = GetRTData( "BidSize" ); //IIf((H==L),0,V*(C-L)/(H-L));
    BidPrice = GetRTData( "Bid" );
    Ask = GetRTData( "AskSize" ); //IIf((H==L),0,V*(H-C)/(H-L));
    AskPrice = GetRTData( "Ask" );
    LastPrice = GetRTData( "Last" );
    LastTradeVolume = GetRTData( "TradeVolume" );

    GfxSelectFont( "Tahoma", 13, 100 );
    GfxSetBkMode( 1 );
    GfxSetTextColor( colorWhite );


    pxHeight = Status( "pxchartheight" ) ;
    xx = Status( "pxchartwidth" );

    x = Param( "x", 500, 1, 1200, 1 );
    x2 = x + 90;
    y = Param( "y", 120, 50, 2000, 1 );

    GfxSelectSolidBrush( colorBlue ); // this is the box background color
    GfxSelectPen( colorBlue, 1 ); // broader color
    GfxRoundRect( x, y - 98, x2, y - 50 , 7, 7 ) ;
    GfxTextOut( ( "Bid " + BidPrice ), x + 13, y - 95 );
    GfxTextOut( ( " " ), x + 27, y - 95 );
    GfxTextOut( ( "" + Bid ), x + 13, y - 75 ) ; // The text format location

    GfxSelectSolidBrush( colorGrey40 );
    GfxSelectPen( colorGrey40, 1 ); // broader color
    GfxRoundRect( x + 92, y - 98, x2 + 90, y - 50 , 7, 7 ) ;
    GfxTextOut( ( "Price" ), x + 13 + 90, y - 95 );
    GfxTextOut( ( " " ), x + 27 + 90, y - 95 );
    GfxTextOut( ( "" + LastPrice ), x + 13 + 90, y - 75 ) ; // The text format location

    GfxSelectSolidBrush( colorGrey40 );
    GfxSelectPen( colorGrey40, 1 ); // broader color
    GfxRoundRect( x + 90 + 92, y - 98, x2 + 90 + 90, y - 50 , 7, 7 ) ;
    GfxTextOut( ( "Volume" ), x + 13 + 90 + 90, y - 95 );
    GfxTextOut( ( " " ), x + 27 + 90 + 90, y - 95 );
    GfxTextOut( ( "" + LastTradeVolume ), x + 13 + 90 + 90, y - 75 ) ; // The text format location

    GfxSelectSolidBrush( colorOrange );
    GfxSelectPen( colorOrange, 1 ); // broader color
    GfxRoundRect( x + 90 + 90 + 92, y - 98, x2 + 90 + 90 + 90, y - 50 , 7, 7 ) ;
    GfxTextOut( ( "Ask " + AskPrice ), x + 13 + 90 + 90 + 90, y - 95 );
    GfxTextOut( ( " " ), x + 27 + 90 + 90 + 90, y - 95 );
    GfxTextOut( ( "" + Ask ), x + 13 + 90 + 90 + 90, y - 75 ) ; // The text format location

}

_SECTION_END();

5 comments

1. niklravi

dear brother
how can we use this in trading?

ravi

2. khanh.toquoc

It just support the current real-time bid/ask which more visual, not for trading

3. nhanapple

How to get Historical tick of Bid/Ask data ?

4. mkiran9

Hi,

Thanks for providing the code for Bid and Ask price and its size.

I am looking for small enhancement to this, how do I get Total Bid quantity size and Total Ask Quantity size.

Appreciate your anticipation.

Thanks,
Kiran

5. ARIES77

nhandled exception
Type: CAmiException
Description: Structured exception within AFL engine
Address: 00000000

if( messageboard == 1 )
{
Bid = GetRTData(
-————————-^
File: ‘Formulas\Drag-drop\RealTime Bid vs Ask Dashboard wPrice and Volume 7.afl’, Ln: 8, Col: 21
Error 47.
plis someone help…send me back ariesbuwono@gmail.com..thank you

Leave Comment

Please login here to leave a comment.

Back