HOLA BUENOS DIAS, SE PODRIA HACER UN BUSCADOR DE ESTE INDICADOR ,QUE MUESTRE EL PRECIO QUE A CIERRE ROMPA LA CAJA DE DARVAS POR ARRIBA?
//-------------------------------------------------//
//PRC_Darvas Boxes
//version = 0
//15.05.24
//Iván González @ www.prorealcode.com
//Sharing ProRealTime knowledge
//-------------------------------------------------//
//-----Inputs--------------------------------------//
defparam calculateonlastbars=500
boxp=5//Box Length
color=1//Color between top and bottom?
//-------------------------------------------------//
//-----High and Low Bands--------------------------//
ll=lowest[boxp](low)
k1=highest[boxp](high)
k2=highest[max(1,boxp-1)](high)
k3=highest[max(1,boxp-2)](high)
//-------------------------------------------------//
//-----New Highs Detection-------------------------//
if high>k1[1] then
nh=high
else
nh=nh
endif
//-------------------------------------------------//
//-----Top and Bottom definition-------------------//
box1=k3<k2
if barssince(high>k1[1])=(boxp-2) and box1 then
topbox=nh
bottombox=ll
else
topbox=topbox
bottombox=bottombox
endif
//-------------------------------------------------//
//-----Plotting------------------------------------//
drawpoint(barindex,topbox)coloured("green")
drawpoint(barindex,bottombox)coloured("red")
if color then
colorbetween(topbox,bottombox,"yellow",50)
endif
//-------------------------------------------------//
return
aqui tienes
boxp=5
//-------------------------------------------------//
k1=highest[boxp](high)
k2=highest[max(1,boxp-1)](high)
k3=highest[max(1,boxp-2)](high)
//-------------------------------------------------//
if high>k1[1] then
nh=high
else
nh=nh
endif
//-------------------------------------------------//
box1=k3<k2
if barssince(high>k1[1])=(boxp-2) and box1 then
topbox=nh
else
topbox=topbox
endif
screener[high crosses over topbox]