How to improve this code whose objective is to enter the market at the highest troughs or peaks of MACD and the RSI? Here is the sample code: CreuPic = 100 // to 300 c1 = (MACDLine[C,L,Si](Close) <0) AND (MACDLine[C,L,Si](Close)> (- CreuPic)) c12 = myRSI <10 c13 = MACD[C,L,Si](Close)> 0 IF c1 AND c12 THEN IF c13 THEN BUY 1 SHARES AT MARKET ENDIF ENDIF // c2 = (MACDLine[C,L,Si](Close)> 0) AND (MACDLine[C,L,Si](Close)> CreuPic) c22 = myRSI> 90 c23 = MACD[C,L,Si](Close) <0 IF c2 AND c22 THEN IF c23 THEN SELLSHORT 1 SHARES AT MARKET ENDIF ENDIF