I want to make the range text label print ABOVE the high channel line. What needs to be changed in the code?
Inserted Code
//-----------------------------------------------------------------------------
// function: DrawRangeValue()
// Description: Draw range text label below the high channel line
//-----------------------------------------------------------------------------
int DrawRangeValue(string sLabel, double dRange, datetime tTime, double dPrice, color cTextColor) {
double tTextPos=0;
string sLineId;
string sRange;
if (StringLen(sLabel)>0)
sRange=sLabel+" "+DoubleToStr(dRange,PipDigits());
else
sRange=DoubleToStr(dRange,PipDigits());
sLineId=INDICATOR_NAME+Session_Id+"_Range_"+TimeToStr(tTime,TIME_DATE );
if (ObjectFind(sLineId)>=0 ) ObjectDelete(sLineId);
ObjectCreate(sLineId, OBJ_TEXT, 0, tTime, dPrice);
ObjectSet(sLineId, OBJPROP_BACK, false);
ObjectSetText(sLineId, sRange , 8, "Arial", cTextColor);
return(0);
}