OPEN-SOURCE SCRIPT
Aktualisiert 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.
Versionshinweise
The default settings are designed around USDJPY on the 15-minute chart.Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.