In these feature highlights, I try to spot the light on a feature that is useful on its own.
To get quick information about a symbol, we can call the getquoteobj() function and show the object variable like this.
$QUOTE=getquoteobj("AMD");
$QUOTE.showobject();
Which will give use some useful information about the symbol with all its properties.
To retrieve the currently selected symbol properties, we need to name a chart window to read the currently selected symbol. If your chart window is named “MY1MIN” then the code is as follows:
$MYSYMB=getwindowobj("MY1MIN").Symb;
$QUOTE=getquoteobj($MYSYMB);
$QUOTE.showobject();
Of course, we can simplify the code above to
getquoteobj(getwindowobj("MY1MIN").Symb).showobject();
which will give us the ultimate one-liner to display the symbol properties.
To read the RVOL (which is listed currently as ROVL, to be fixed in next version of DAS) we can just call the symbol object followed by the property name like this
$MYVARIABLE=$QUOTE.ROVL;
Similarly, we can check the symbol is on SSR and based on that, enter the trade on the Ask side instead of Bid
if ($QUOTE.SSR==1)
{
//the usual entry code
Price=Bid;
}
else
{
//the usual entry code
Price=Ask;
}