re: horizontal line
just what I need, thank
just what I need, thank
var nLastRawTime = 0;
var BarCount = 0;
function main() {
if (nLastRawTime != getValue("rawtime", 0)) {
BarCount += 1;
nLastRawTime = getValue("rawtime", 0);
}
}
var nLastRawTime = 0;
var BarCount = 0;
var LineStart = null;
var LineLevel = 0;
function main() {
if (nLastRawTime != getValue("rawtime", 0)) {
BarCount += 1;
nLastRawTime = getValue("rawtime", 0);
}
if (high() > high(-1)) { // just a sample for a condition of a line start
LineStart = BarCount;
LineLevel = high();
}
if (LineStart != null) {
drawLineRelative( (LineStart-BarCount), LineLEvel , 0, LineLevel, PS_SOLID, 1, Color.blue, "Line1");
}
}
Comment