Hi
I would like to draw a segment (or line) where the x co-ordinate is based on a time rather than bars back from the current bar.
My code below gives me a line from price 830-835 (which is what I want) but it paints at the current bar when i want it to paint from 13:10 to 16:10
function preMain() {
setPriceStudy(true);
setStudyTitle("drawtrade1");
}
function main () {
addLineTool(LineTool.SEGMENT, (hour(1300)+minute(10)), 830, (hour(1600)+minute(10)), 835, 10, Color.brown, "l1");
return;
I would like to draw a segment (or line) where the x co-ordinate is based on a time rather than bars back from the current bar.
My code below gives me a line from price 830-835 (which is what I want) but it paints at the current bar when i want it to paint from 13:10 to 16:10
function preMain() {
setPriceStudy(true);
setStudyTitle("drawtrade1");
}
function main () {
addLineTool(LineTool.SEGMENT, (hour(1300)+minute(10)), 830, (hour(1600)+minute(10)), 835, 10, Color.brown, "l1");
return;
Comment