Directional Movement Index Threshold Signals for Long and Short Trades
Summary
This strategy calculates the positive and negative Directional Movement Index components with smoothed true range, then compares them with fixed thresholds. A long signal occurs when positive DI is below 10 while negative DI is above 40; a short signal uses the reverse configuration. The script plots both DI lines and places strategy entries when either condition holds.
The author describes using the signals for Bank Nifty options, selecting a strike near a stated premium, averaging after a specified premium decline, and managing exits with a stop or target. Those are discretionary usage notes rather than rules fully encoded in the strategy. Despite a source comment mentioning RSI exits, the supplied code does not calculate RSI or define an RSI exit, and it does not include the described premium-based risk management. The author also notes that repeated same-direction signals may not appear as separate strategy entries. No test results are provided.
Key ideas
- The script computes smoothed positive and negative DI values and plots them.
- Long and short entries use opposing DI threshold conditions.
- The described options approach adds discretionary premium selection and averaging rules that are absent from the code.
- The source does not implement the RSI exit mentioned in its comment.
- Repeated signals in the same direction may not generate distinct strategy entries.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.