Can any one tell me why the values displayed in the Cursor Window do not seem to agree with the values in the quote window.
The Cursor Window format is supposed to be BidPrice.BidSize and AskPrice.AskSize
Thanks.
function preMain(){
setStudyTitle("BidAsk");
setCursorLabelName("ask", 0);
setCursorLabelName("bid", 1);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarFgColor(Color.red, 1);
setDefaultBarThickness(1, 0);
setDefaultBarThickness(1, 1);
setPlotType(PLOTTYPE_DOT, 0);
setPlotType(PLOTTYPE_DOT, 1);
}
function main(){
return new Array((getMostRecentAsk()*100+getMostRecentAskSize ()/10000).toFixed(4), (getMostRecentBid()*100+getMostRecentBidSize()/10000).toFixed(4));
}
The Cursor Window format is supposed to be BidPrice.BidSize and AskPrice.AskSize
Thanks.
function preMain(){
setStudyTitle("BidAsk");
setCursorLabelName("ask", 0);
setCursorLabelName("bid", 1);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarFgColor(Color.red, 1);
setDefaultBarThickness(1, 0);
setDefaultBarThickness(1, 1);
setPlotType(PLOTTYPE_DOT, 0);
setPlotType(PLOTTYPE_DOT, 1);
}
function main(){
return new Array((getMostRecentAsk()*100+getMostRecentAskSize ()/10000).toFixed(4), (getMostRecentBid()*100+getMostRecentBidSize()/10000).toFixed(4));
}
Comment