OPEN-SOURCE SCRIPT

Manoj Personal EMA 5-20

3 EMA Trading Strategy Script Overview:
EMAs Used:

5 EMA: Short-term moving average.
20 EMA: Medium-term moving average.
564 EMA: Long-term moving average to identify overall trend direction.
Entry Signals:

Strong Buy: Triggered when:
Price is above the 564 EMA (uptrend).
The 5 EMA crosses above the 20 EMA (bullish crossover).
The current candle is green (close > open).
Strong Sell: Triggered when:
Price is below the 564 EMA (downtrend).
The 5 EMA crosses below the 20 EMA (bearish crossover).
The current candle is red (close < open).
Exit Signal:

Position is closed when the price touches back to the 564 EMA (either side, up or down):
A "Close Position" label is shown in green for long trades.
A "Close Position" label is shown in red for short trades.
Risk Management:

Stop-Loss: Placed at the last swing low (for longs) or last swing high (for shorts), calculated over the last 10 bars.
Take-Profit: A 1:3 risk/reward ratio is used, where the potential reward is three times the risk.
Alerts:

Alerts are triggered for buy and sell signals.
Alerts are also triggered when the exit condition (price touching the 564 EMA) is met.
This script is designed to work on timeframes of 15 minutes or higher but can also be used for 5-minute scalping. It plots the EMAs on the chart, highlights buy/sell opportunities, shows stop-loss and take-profit levels, and generates alerts for key signals.
Moving Averages

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明