Strategy Setup
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%)
BTC 4 hour timeframe
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在
使用條款閱讀更多資訊。