function RSI_Check(f0, f1, f2, f3, f4) // f0 is shortest, f3 longest, f4 is min threshold { f0Test = (RSI(f0) >= f4); f1Test = (RSI(f1) >= f4); f2Test = (RSI(f2) >= f4); f3Test = (RSI(f3) >= f4); return(f0Test AND f1Test AND f2Test AND f3Test); }
function MA_Check(f0) { return(C >= MA(C, f0)); }
Buy = ADX_Max_Tester(14, 25) AND OSCP_Min_Tester(12, 26, 45) AND RSI_Check(3,5,7,14,30) AND MA_Check(5); Sell = NOT ADX_Max_Tester(14, 25) OR NOT OSCP_Min_Tester(12, 26, 45) OR NOT MA_Check(5a);
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.