Hello,
On MC 8, 32 bit, Range bars, how do you program a vertical Line to be behind price bars? My rudimentary example below for GOLD open/close of pit times?
Problems:
1. If no bar forms during the 'zone' then no vertical line.
2. Sometimes vertical line displays then no vertical line then some more. Why?
Thanks in advance for any input.
Linden
Example:
Input : colorB(darkgreen),colorE(red), size(1);
//Begin Time 5 minutes "Zone"
If Time_s > 080000 and Time_s < 082000 then begin
value1=tl_new_s(date,time_s,l,date,time_s,h);
tl_setcolor(value1,colorB);
tl_setstyle(value1,Tool_Dotted);
tl_setsize(value1,size);
tl_setextleft(value1,true);
tl_setextright(value1,true);
end;
//End Time 1/2 hour "Zone"
If Time_s > 130000 and Time_s < 133000 then begin
value1=tl_new_s(date,time_s,l,date,time_s,h);
tl_setcolor(value1,colorE);
tl_setstyle(value1,Tool_Dotted);
tl_setsize(value1,size);
tl_setextleft(value1,true);
tl_setextright(value1,true);
end;
Visual Order for an Indicator that plots a Vertical Line [SOLVED]
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Visual Order for an Indicator that plots a Vertical Line
you can try the plot method instead.Hello,
On MC 8, 32 bit, Range bars, how do you program a vertical Line to be behind price bars? My rudimentary example below for GOLD open/close of pit times?
Problems:
1. If no bar forms during the 'zone' then no vertical line.
2. Sometimes vertical line displays then no vertical line then some more. Why?
Thanks in advance for any input.
Linden Example:
Input : colorB(darkgreen),colorE(red), size(1);
//Begin Time 5 minutes "Zone"
If Time_s > 080000 and Time_s < 082000 then begin
value1=tl_new_s(date,time_s,l,date,time_s,h);
tl_setcolor(value1,colorB);
tl_setstyle(value1,Tool_Dotted);
tl_setsize(value1,size);
tl_setextleft(value1,true);
tl_setextright(value1,true);
end;
//End Time 1/2 hour "Zone"
If Time_s > 130000 and Time_s < 133000 then begin
value1=tl_new_s(date,time_s,l,date,time_s,h);
tl_setcolor(value1,colorE);
tl_setstyle(value1,Tool_Dotted);
tl_setsize(value1,size);
tl_setextleft(value1,true);
tl_setextright(value1,true);
end;
viewtopic.php?f=1&t=10823
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Visual Order for an Indicator that plots a Vertical Line [SOLVED]
Hello Linden,
Trendlines cannot be plotted behind the data series. You need to use Plot per TS's suggestion to be able to control the visual order of the chart.
Trendlines cannot be plotted behind the data series. You need to use Plot per TS's suggestion to be able to control the visual order of the chart.