///bonjour voici ci après
//PRC_Top Bottom | indicator
//08.10.2023
// — settings
per = 14 //Bottom Period
per2 = 14 //Top Period
// — end of settings
loc = low < lowest[per](low[1]) and low <= lowest[per](low[per])
if loc then
locstart=barindex
endif
bottoma = barindex-locstart
loc2 = high > highest[per2](high[1]) and high >= highest[per2](high[per2])
if loc2 then
loc2start=barindex
endif
topa = barindex-loc2start
iBuy = bottoma crosses over topa
iSell = bottoma crosses under topa
if iBuy then
drawtext(“Buy”,barindex,low-4,dialog,bold,14) coloured(0,128,0)
endif
if iSell then
drawtext(“Sell”,barindex,high-4, dialog,bold,14) coloured(255,0,0)
endif
return