Fr7Participant
Master
Iván, sería tremendo si me puedes sacar el Screener del indicador :https://www.prorealcode.com/topic/smart-money-concepts-luxalgo/
Para que me entiendas lo que quiero…… aunque ya sé que está mal escrito eh:
//——Structure of the drawing————————————————————//
//—————————————————————————–//
for i = g to 0 do
drawsegment ($topx [ i ] ,$topy [ i ] ,$ right [ i ] ,$topy [ i ] ) estilo ( línea ) coloreado ( “verde” )
drawarrowup ($ right [ i ] ,$topy [ i ] – 0.5 * atr) colored ( “green” )
if $topchoch [ i ] = 1 then
drawtext ( “CHoCH” ,($topx [ i ] + $ right [ i ] ) / 2 ,$topy [ i ] + 0.25 * atr) colored ( “green” )
others
drawtext ( “BOS” ,($topx [ i ] + $ right [ i ] ) / 2 ,$topy [ i ] + 0.25 * atr) colored ( “green” )
fine too
next
//—————————————————————————–//
for i = w to 0 do
drawsegment ($botx [ i ] ,$boty [ i ] ,$botright [ i ] ,$boty [ i ] ) estilo ( línea ) coloreado ( “rojo” )
drawarrowdown ($botright [ i ] ,$boty [ i ] + 0.5 * atr) colored ( “red” )
if $botchoch [ i ] = 1 then
drawtext ( “CHoCH” ,($botx [ i ] + $botright [ i ] ) / 2 ,$bots [ i ] + 0.25 * atr) coloreado ( “rojo” )
others
drawtext ( “BOS” ,($botx [ i ] + $botright [ i ] ) / 2 ,$boty [ i ] + 0.25 * atr) colored ( “red” )
fine too
next
C1= drawarrowup ($ right [ i ] ,$topy [ i ] – 0.5 * atr) colored ( “green” )
C2= drawarrowdown ($botright [ i ] ,$boty [ i ] + 0.5 * atr) colored ( “red” )
SCREENER [C 1 OR C2 ]
Buenas!
Aquí tienes:
//--------------------------------------------------------------------------------//
//PRC_Smart Money Concepts
//version = 1
//29.07.2024
//Iván González @ www.prorealcode.com
//Sharing ProRealTime knowledge
//--------------------------------------------------------------------------------//
//-----Inputs---------------------------------------------------------------------//
length=50
showStructure=1
showbull=1//1=all 2=bos 3=CHoCH
showbear=1//1=all 2=bos 3=CHoCH
//--------------------------------------------------------------------------------//
//-----Swings---------------------------------------------------------------------//
//---Swing length
os=0
upper=highest[length](high)
lower=lowest[length](low)
if high[length]>upper then
os=0
elsif low[length]<lower then
os=1
else
os=os[1]
endif
if os=0 and os[1]<>0 then
mytop=high[length]
else
mytop=0
endif
if os=1 and os[1]<>1 then
mybot=low[length]
else
mybot=0
endif
//--------------------------------------------------------------------------------//
//-----Pivot High-----------------------------------------------------------------//
if mytop then
topcross=1
topy=mytop
endif
//--------------------------------------------------------------------------------//
//-----Pivot Low------------------------------------------------------------------//
if mybot then
botcross=1
boty=mybot
endif
//Detect bullish Structure
signalLong=0
if close crosses over topy and topcross then
choch=undefined
if trend<0 then
choch=1
endif
if showStructure then
if showbull=1 or (showbull=2 and not choch) or (showbull=3 and choch) then
signalLong=1
endif
endif
topcross=0
trend=1
endif
//Detect Bullish Strcuture
signalshort=0
if close crosses under boty and botcross then
choch=undefined
if trend>0 then
choch=1
endif
if showStructure then
if showbear=1 or (showbear=2 and not choch) or (showbear=3 and choch) then
signalshort=1
endif
endif
botcross=0
trend=-1
endif
screener[signalLong or signalShort](signalLong as "long",signalShort as "short")
Fr7Participant
Master
Muchas gracias Iván!!!,nunca te estaremos lo suficientemente agradecidos los miembros de este foro tu altruismo, profesionalidad ,eficacia y rapidez en la elaboración de todos los códigos.
QUE ES LO QUE SE DETECTA CON ESTE SCREENER?
GRACIAS