// Downloaded From https://www.WiseStockTrader.com _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();