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

Display Bid and Ask for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker, realtime

Need realtime data connection active.
From amibrokerfan.com

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez about 5 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 7 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 7 years ago
Williams Alligator System
Submitted by durgesh1712 almost 8 years ago
*Level Breakout system*
Submitted by Tinych almost 8 years ago

Indicator / Formula

Copy & Paste Friendly
// Bid & Ask Example.afl
Plot(L+(H-L)/2, "Mid",colorYellow,styleDots|styleNoLine);
Plot(C, "Close",colorGreen,styleDots);
SetChartBkColor(ParamColor("Outer panel",colorBlack));

bc=BarCount-1;
Bid = GetRTData("Bid");
Ask=GetRTData("Ask");
szBid=GetRTData("BidSize");
szAsk=GetRTData("AskSize");

// Display bid & ask as text header ...
if(Bid && Ask && szBid && szAsk)
{
  baDif = abs(szBid-szAsk);
  dCol = IIf(szBid > szAsk, colorGreen,colorRed);
  bidCol = IIf(szBid > Ref(szBid,-1), colorGreen,colorRed);
  askCol = IIf(szAsk > Ref(szAsk,-1), colorGreen,colorRed);
  bStr = EncodeColor(bidCol[bc])+WriteVal(szBid,8);
  aStr = EncodeColor(askCol[bc])+WriteVal(szAsk,8);
  dStr = EncodeColor(dCol[bc])+WriteVal(baDif,8);
  baStr="\nPrice of  Bid:  "+Bid+ "  -  "+"Ask:  "+ask
  + "\nSize of    Bid: "
  + bStr
  + EncodeColor(colorWhite)  +"   -    Ask: "
  + aStr
  + "  =  "+dStr;
} else baStr="\nNo RT Data";

_N(Title=EncodeColor(colorWhite)+StrLeft(Name(),7)
 + "   " + Interval(2) + "  "
 + Date()+" GMT"
 + "      ( O-" + O + "   H-"+ H + "   L-" + L + "   C-" + C + " )"
 + baStr
);

0 comments

Leave Comment

Please login here to leave a comment.

Back