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%)
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.
هل تريد استخدام هذا النص البرمجي على الرسم البياني؟
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.