OPEN-SOURCE SCRIPT
Diupdate Spike EA Trade Strategy

Spike EA Trade Strategy is a price-action backtesting script inspired by an MT4/MT5 expert advisor logic.
The strategy detects spike candles by measuring the range between the high and low of a selected previous bar. If the range is greater than or equal to the configured threshold, the candle direction is used for trade direction. A bullish spike candle triggers a long setup, while a bearish spike candle triggers a short setup.
The default settings are designed around USDJPY on the 15-minute chart. The default spike threshold is 0.5 with a price unit of 1.0, which represents approximately a 0.5 yen candle range on USDJPY.
The strategy version includes approximate stop loss and take profit price-distance settings for TradingView Strategy Tester. Broker-specific execution details such as spread, slippage, order rejection, margin checks, lot handling, and MT4/MT5 magic number management are not replicated.
This script is intended for chart analysis, backtesting support, research, and educational purposes only.
It does not guarantee future performance and should not be considered financial advice.
Please test carefully before using it in any trading decision.
The strategy detects spike candles by measuring the range between the high and low of a selected previous bar. If the range is greater than or equal to the configured threshold, the candle direction is used for trade direction. A bullish spike candle triggers a long setup, while a bearish spike candle triggers a short setup.
The default settings are designed around USDJPY on the 15-minute chart. The default spike threshold is 0.5 with a price unit of 1.0, which represents approximately a 0.5 yen candle range on USDJPY.
The strategy version includes approximate stop loss and take profit price-distance settings for TradingView Strategy Tester. Broker-specific execution details such as spread, slippage, order rejection, margin checks, lot handling, and MT4/MT5 magic number management are not replicated.
This script is intended for chart analysis, backtesting support, research, and educational purposes only.
It does not guarantee future performance and should not be considered financial advice.
Please test carefully before using it in any trading decision.
Catatan Rilis
The default settings are designed around USDJPY on the 15-minute chart.Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.