Tnx, and what parameter do I use?
Here is the whole code from the indicator that i use by Thomas
// myCandel-Infos-V1.2
// 18.06.2019 (Release 1.2)
// Thomas Geisler
// Sharing ProRealTime knowledge
// https://www.prorealcode.com/library/
defparam drawonlastbaronly=true // Zeichung nur am letzten Bar
//--init--
alpha = 255
lookback = 1
Info = 1
Arrows = 1
DayTrend = 1
Centerline = 1
HighLowIntraday = 1
HighLow = 0
Trendforce = 0
OBVforce = 0
//-- end--
//--Info--
// previous Candle Range[1] and ATR[10] and EMA-ATR[20]of ATR[1]
myRange = round(Range[1])
myATR = round(AverageTrueRange[10](close[0]))
myEATR = round(ExponentialAverage[20](AverageTrueRange[10](close[0])))
If Info = 1 then
if myATR < ExponentialAverage[20](myATR) then
DrawText(" #myRange#/#myATR#/#myEATR#",barindex,open,Serif,Bold,12) coloured(153,153,153,alpha)
else
DrawText(" #myRange#/#myATR#/#myEATR#",barindex,open,Serif,Bold,12) coloured(255,153,0,alpha)
endif
endif
//--end--
//--Dailys highest high and lowest Low--
if HighLow then
if openday <> openday[1] then
dayindex = dayindex + 1
dayhigh = 0
daylow = close
//dayopen = open
//dayclose = close
if dayindex > lookback then
for j = 1 to barindex
if dayindex[j] = dayindex - lookback then
mydayhigh = dayhigh[j]
mydaylow = daylow[j]
break
endif
next
endif
endif
dayhigh = max(dayhigh,high)
daylow = min(daylow,low)
endif
if dayindex < lookback or not highlow then
mydayhigh = undefined
mydaylow = undefined
endif
if dayindex < lookback or not Centerline then
mytdaycenter = undefined
endif
//--end--
//-- proof close over/under high or low of intraday range--
mytdayhigh=DHigh(0)
mytdaylow=DLow(0)
DM0 = (mytdayhigh-mytdaylow)/2+mytdaylow
If DayTrend = 1 then
if close > DM0 then
DrawText(" • over",barindex,open-10,Serif,Bold,12) coloured(0,255,0,alpha)
else
DrawText(" • under",barindex,open+10,Serif,Bold,12) coloured(255,0,0,alpha)
endif
endif
//--end--
//--Centerline, center of range between intraday high/low--
If CenterLine = 1 then
mytdaycenter = DM0
else
mytdaycenter = undefined
endif
//--end--
//--Show Intraday HighLow as dotted line--
If HighLowIntraday = 1 then
mytdayhigh = DHigh(0)
mytdaylow = DLow(0)
else
mytdayhigh = undefined
mytdaylow = undefined
endif
//--end--
//--Arrows--
//Trend bzw Trend force
if Arrows = 1 then
BullTrend = (Close - LOWEST[20](LOW)) / AVERAGETRUERANGE[10]
BearTrend = (HIGHEST[20](HIGH) - Close) / AVERAGETRUERANGE[10]
Trend = (BullTrend - BearTrend)
TrendEMA = ExponentialAverage[20](Trend)
// On Balance Volumen zur Bestimmung der Kaufkraft der Bewegung/Trend
myOBV = OBV
myOBVA1 = ExponentialAverage[20](myOBV)
myOBVA2 = ExponentialAverage[10](myOBV)
if Trendforce = 1 and OBVforce = 1 then
If Trend > TrendEMA and myOBV > myOBVA1 and myOBV > myOBVA2 then
DRAWARROWup(barindex,low-2) coloured(0,255,0,alpha)
elsif Trend < TrendEMA and myOBV < myOBVA1 and myOBV < myOBVA2 then
DRAWARROWdown(barindex,high+2)coloured(255,0,0,alpha)
endif
elsIf OBVforce = 1 and not Trendforce then
if myOBV > myOBVA1 and myOBV > myOBVA2 then
DRAWARROWup(barindex,low-2) coloured(0,255,0,alpha)
elsif myOBV < myOBVA1 and myOBV < myOBVA2 then
DRAWARROWdown(barindex,high+2)coloured(255,0,0,alpha)
endif
elsIf Trendforce = 1 and not OBVforce then
if Trend > TrendEMA then
DRAWARROWup(barindex,low-2) coloured(0,255,0,alpha)
elsif Trend < TrendEMA then
DRAWARROWdown(barindex,high+2)coloured(255,0,0,alpha)
endif
endif
endif
//--end--
Return mydayhigh COLOURED (255, 0, 0)style(line, 2) AS "High", mydaylow COLOURED (0, 255, 0)style(line, 2) AS "Low", mytdayhigh COLOURED (0, 255, 0)style(dottedline, 4) AS "Today High", mytdaylow COLOURED (255, 0, 0)style(dottedline, 4) AS "Today Low", mytdaycenter COLOURED (255,153,0,255)style(dottedline, 4)as "Today Centerline"
// End and make money