J
jalyo
New member
Hello,
I have done the coding as the following for the HHLLS indicator:
def HHLLS = HHLLS (length = 8);
input length = 8;
input over_bought = 60;
input signal_line = 50;
input over_sold = 10;
input averageType = AverageType.HULL;
Assert(length > 1, "'length' must be greater than one: " + length);
def HH = if high > high[1] then (high - Lowest(high, length)) / (Highest(high, length) - Lowest(high, length)) else 0;
def LL = if low < low[1] then (Highest(low, length) - low) / (Highest(low, length) - Lowest(low, length)) else 0;
AddLabel(yes, if HH > signal_line and LL < over_sold then "VERY BULLISH" else if LL > signal_line and HH < over_sold then “VERY BEARISH”);
Basically, what Im trying to do is When the HH line crosses the signal_line, which is 50, above, and the LL line is below over_sold line, which is 10, it labels it as “bullish”. And When LL crosses above 50, and HH is below 10, it labels it as “Bearish”. I get an error message when I input this coding into thinkscript.
This is to be used for the “market watch” tab.
Thank You
I have done the coding as the following for the HHLLS indicator:
def HHLLS = HHLLS (length = 8);
input length = 8;
input over_bought = 60;
input signal_line = 50;
input over_sold = 10;
input averageType = AverageType.HULL;
Assert(length > 1, "'length' must be greater than one: " + length);
def HH = if high > high[1] then (high - Lowest(high, length)) / (Highest(high, length) - Lowest(high, length)) else 0;
def LL = if low < low[1] then (Highest(low, length) - low) / (Highest(low, length) - Lowest(low, length)) else 0;
AddLabel(yes, if HH > signal_line and LL < over_sold then "VERY BULLISH" else if LL > signal_line and HH < over_sold then “VERY BEARISH”);
Basically, what Im trying to do is When the HH line crosses the signal_line, which is 50, above, and the LL line is below over_sold line, which is 10, it labels it as “bullish”. And When LL crosses above 50, and HH is below 10, it labels it as “Bearish”. I get an error message when I input this coding into thinkscript.
This is to be used for the “market watch” tab.
Thank You