Hello,
Does anyone have an EFS that will show total # of trades for a given stock.
Thanks,
Brian
Does anyone have an EFS that will show total # of trades for a given stock.
Thanks,
Brian
function preMain() {
setStudyTitle("Trade Count")
setCursorLabelName("Trades ")
setPlotType(PLOTTYPE_HISTOGRAM);
}
var TradeCount = 0;
function main() {
if (getCurrentBarIndex() != 0) {
return;
}
if (getBarState() == BARSTATE_NEWBAR) {
TradeCount = 0;
}
TradeCount += 1;
return TradeCount;
}
Comment