JJJJJJ11111
Member
Need help working on close strong code :
define close strong as close 30% of the direction ( like green candle close 30% of the top area of the candle High to Low)
I'm looking to scan close green candle.
A = 30% of candle or less, and B is 70% or more.
so maybe some help on continuation of the code to scan out the result
Code:
#close green strong
def US = absvalue(high-close) # upper shadow
def RBLS = absvalue(close-low) #realbody+lowershadow
def candleHL = (high-low) #Highlow
input UStoRBLSratio= 30/70; #CloseGreenRatio
Code:
#close red strong
def candleHL = (high-low) #Highlow
def RBUS = absvalue(high-close) #realbody+uppershadow
def LS = absvalue(close-low) #lowershadow
input LStoRBUSratio = 30/70; #closeRedRatio