The strategy is named "EMA 150 Long Strategy" and is set to overlay on the price chart. It uses 100% of the account equity for position sizing.
Indicator Calculation
An EMA with a length of 150 periods is calculated using the closing price. The EMA is plotted on the chart in blue.
Entry and Exit Conditions
Long entry: When the closing price crosses above the EMA Exit: When the closing price crosses below the EMA
Strategy Execution
The script enters a long position when the entry condition is met. It closes the long position when the exit condition is met.
Visual Signals
Buy signals (green triangles) are plotted below the bars when a long entry occurs. Sell signals (red triangles) are plotted above the bars when an exit occurs.
Key Points
This is a long-only strategy; it doesn't take short positions. The strategy uses crossovers and crossunders of the closing price with the EMA for entry and exit signals. The EMA length is set to 150 The strategy uses 100% of the account equity for each trade, which can be risky in real trading.
This script provides a basic framework for an EMA crossover strategy and can be used as a starting point for more complex trading systems.
backtest 4years (984.42% proffit, 181trades, 16.57% profitable, max drawdown 34.6%)
Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.