I tryed to get the getMostRecentCloseSize, getMostRecentBidSize and the getMostRecentAskSize from an adv. Chart. I wrote this *.efs, to debug the Sizes.
Problems:
1.
I get only "0" for the vTime.getSeconds, never the real seconds between 1-60, why?
2.
I have compare the debugged TradeSize, BidSize and the AskSize with the dispayed TradeSize, BidSize/AskSize from a Time and Sales Chart. In the Time and Sales Chart is every incoming trade (tick) shown, but in the debugged TradeSize, BidSize/AskSize not. Can anybody help me, what I get the right second and each BidSize/AskSize and close-Tick?
var vHour;
var vMin;
var vSec;
var vDay;
var vMonth;
var vYear;
var vTime = new Date();
function preMain() {
}
function main() {
vTime = getValue("Time");
vHour = vTime.getHours();
vMin = vTime.getMinutes();
vSec = vTime.getSeconds();
vDay = vTime.getDate();
vMonth = vTime.getMonth() +1;
vYear = vTime.getYear();
debugPrintln(""+vHour+":"+vMin+":"+vSec+"; close: "+close()+" ; T_Size:"+getMostRecentTradeSize()+"; B_Size:A_Size : "+getMostRecentBidSize()+":"+getMostRecentAskSize( )+"");
}
Torso
At the attachment you can see, that I get the trade with the size 41, the next with the size 9 not, also the two trades with the size 10 I have not get.
Problems:
1.
I get only "0" for the vTime.getSeconds, never the real seconds between 1-60, why?
2.
I have compare the debugged TradeSize, BidSize and the AskSize with the dispayed TradeSize, BidSize/AskSize from a Time and Sales Chart. In the Time and Sales Chart is every incoming trade (tick) shown, but in the debugged TradeSize, BidSize/AskSize not. Can anybody help me, what I get the right second and each BidSize/AskSize and close-Tick?
var vHour;
var vMin;
var vSec;
var vDay;
var vMonth;
var vYear;
var vTime = new Date();
function preMain() {
}
function main() {
vTime = getValue("Time");
vHour = vTime.getHours();
vMin = vTime.getMinutes();
vSec = vTime.getSeconds();
vDay = vTime.getDate();
vMonth = vTime.getMonth() +1;
vYear = vTime.getYear();
debugPrintln(""+vHour+":"+vMin+":"+vSec+"; close: "+close()+" ; T_Size:"+getMostRecentTradeSize()+"; B_Size:A_Size : "+getMostRecentBidSize()+":"+getMostRecentAskSize( )+"");
}
Torso
At the attachment you can see, that I get the trade with the size 41, the next with the size 9 not, also the two trades with the size 10 I have not get.
Comment