// Positive and Negative Rotation positiveRotation = ema3 > ema9 and ema9 > ema20 and ema20 > ema50 and ema50 > ema200 negativeRotation = ema3 < ema9 and ema9 < ema20 and ema20 < ema50 and ema50 < ema200
// Entry Conditions enterLong = crossover(macdLine, signalLine) and close > upper and kst > 0 and positiveRotation enterShort = crossunder(macdLine, signalLine) and close < lower and kst < 0 and negativeRotation
// Exit Conditions exitLong = crossunder(macdLine, signalLine) or close < lower exitShort = crossover(macdLine, signalLine) or close > upper
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.