try this for scan http://tos.mx/hJTSU0Y (code below)
plot it first as an indicator for you to check if you find working
condition for scan => above 0 is for bullish and below 0 for bearish
I tried to clean what was not relevant to the scan and even then it gave error, then, since the code was as clean as it was possible, I cleaned the initial comments and it worked. my conclusion is that some character sequence in the comments, which are supposed to be neutral to the compiler were not so neutral and caused the mess. didn't go further to leave something for our hackers to discover. just left the credits
# @LOKEN94
# Converted by Sam4Cok@Samer800 - 09-2023
declare lower;
input RSIBaseHotMoney = 30;#, "Hot Money RSI Base"
input RSIPeriodHotMoney = 40;#, "Hot Money RSI Period"
input SensitivityHotMoney = 0.7;#, "Sensitivity Hot Money"
def nRSI = RSI(Price = close, Length = RSIPeriodHotMoney);
def rsi_ = SensitivityHotMoney * (nRSI - RSIBaseHotMoney);
def hot = if rsi_ > 20 then 20 else if rsi_ < 0 then 0 else rsi_;
def hotma2 = WildersAverage(hot, 2);
def hotma7 = WildersAverage(hot, 7);
def hotma31 = WildersAverage(hot, 31);
def hotma = ExpAverage(((hotma2 * 34) + (hotma7 * 33) + (hotma31 * 33)) / 100, 2);
def hotsignal = WildersAverage(hotma, 2);
plot sig_updn = if (hotma < hotsignal and hotma[1]>hotsignal[1]) then -1 else if (hotma > hotsignal and hotma[1] < hotsignal[1]) then 1 else 0;
plot it first as an indicator for you to check if you find working
condition for scan => above 0 is for bullish and below 0 for bearish
I tried to clean what was not relevant to the scan and even then it gave error, then, since the code was as clean as it was possible, I cleaned the initial comments and it worked. my conclusion is that some character sequence in the comments, which are supposed to be neutral to the compiler were not so neutral and caused the mess. didn't go further to leave something for our hackers to discover. just left the credits
# @LOKEN94
# Converted by Sam4Cok@Samer800 - 09-2023
declare lower;
input RSIBaseHotMoney = 30;#, "Hot Money RSI Base"
input RSIPeriodHotMoney = 40;#, "Hot Money RSI Period"
input SensitivityHotMoney = 0.7;#, "Sensitivity Hot Money"
def nRSI = RSI(Price = close, Length = RSIPeriodHotMoney);
def rsi_ = SensitivityHotMoney * (nRSI - RSIBaseHotMoney);
def hot = if rsi_ > 20 then 20 else if rsi_ < 0 then 0 else rsi_;
def hotma2 = WildersAverage(hot, 2);
def hotma7 = WildersAverage(hot, 7);
def hotma31 = WildersAverage(hot, 31);
def hotma = ExpAverage(((hotma2 * 34) + (hotma7 * 33) + (hotma31 * 33)) / 100, 2);
def hotsignal = WildersAverage(hotma, 2);
plot sig_updn = if (hotma < hotsignal and hotma[1]>hotsignal[1]) then -1 else if (hotma > hotsignal and hotma[1] < hotsignal[1]) then 1 else 0;
Last edited: