[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rules for RSI Trend



PureBytes Links

Trading Reference Links

Joe,

This is mostly a visual experience. That's why coding the RSI is difficult. The idea is to determine the trend. Here are structured rules:

UPTREND: The RSI must move above 60. This should happen in the last x bars. After this movement, the RSI may fall, but it should remain above 40.

DOWNTREND: The RSI must move below 40. This should happen in the last x bars. After this movement, the RSI may rally, but it should remain below 60.

SIDEWAYS: If the RSI is not in an uptrend / downtrend then it is sideways.

Any help in code wil be welcome.

Thanks,

Sudarshan