/*
* What is the current symbol and interval
*/
if(vInterval == null)
return;
/*
* No need to show the OHL or C on a daily chart.
* only interested in seeing OHLorC on intraday.
*/
if(vInterval == "D" || vInterval == "W" || vInterval == "M")
return;
/*
* What time is the current bar?
*/
vBarTime = getValue("time");
if(vBarTime != null) {
/*
* vTime is currently the time for the current intraday bar.
* Ask for the time of the previous trading day for "Symbol,D"
* Note: See that we are asking for a different time frame
* than the default by passing a symbol,interval
*/
vAbsTime = getPreviousTradingDay(vBarTime, vSymbol);
//#####################getPreviousTradingDay -> I think this is the problem.########################################## ########################
if(vAbsTime == null)
return;
/*
* Get index to first bar of day. In this case the daily bar.
*/
vIndex = getFirstBarIndexOfDay(vAbsTime, vSymbol);
if(vIndex != null) {
vBar = getValueAbsolute(sBarItem, vIndex, vSymbol);
vLastRawTime = vRawTime;
vLastValue = vBar;
return vBar;
}
}
return;
So I assume what you are doing is running PrevLow.efs and PrevClose.efs and that is what you took a snap shot of?
I see you use a 0:00-24:00 TT - when I set up a 15 min chart using a 0-24 TT and have the PrevLow and PrevClose scripts loaded I don't see the same problem on any of the sharts I looked at.
So I assume what you are doing is running PrevLow.efs and PrevClose.efs and that is what you took a snap shot of?
Yes.
I see you use a 0:00-24:00 TT - when I set up a 15 min chart using a 0-24 TT and have the PrevLow and PrevClose scripts loaded I don't see the same problem on any of the sharts I looked at.
Comment