HLINE

 

hey,

i wrote a new expert, i need to put on the chart HLINE but i want it to bw in specified time for ex. from 23:00 to 09:00

here is what i wrote:

ObjectCreate("HighLine",OBJ_HLINE,0,0,BoxHigh);

ObjectSet("HighLine",OBJPROP_COLOR,LinesColor);

ObjectSet("HighLine",OBJPROP_WIDTH,2);

what is missing???

tnx.

 
efod28:

hey,

i wrote a new expert, i need to put on the chart HLINE but i want it to bw in specified time for ex. from 23:00 to 09:00

here is what i wrote:

ObjectCreate("HighLine",OBJ_HLINE,0,0,BoxHigh);

ObjectSet("HighLine",OBJPROP_COLOR,LinesColor);

ObjectSet("HighLine",OBJPROP_WIDTH,2);

what is missing???

tnx.

To draw a line between two time points use OBJ_TREND. Trend lines use two coordinates so you can specify starting and ending points.
 
robofx.org:
To draw a line between two time points use OBJ_TREND. Trend lines use two coordinates so you can specify starting and ending points.

tnx, but trendline isn't good for me, i need my line to be Horizental and in specifed price
 
efod28:

tnx, but trendline isn't good for me, i need my line to be Horizental and in specifed price
You set Price1 = Price2 and the trend line becomes horizontal.
 
robofx.org:
You set Price1 = Price2 and the trend line becomes horizontal.

great, tnx
Reason: