Basically I read a research paper on how they used different moving averages for long entries and short entries, and it kind of dawned on me that I always used the same one for long entry or exit, or even swing trading. So I smashed this together to see what would happen. The strategy combines the use of four different WMAs for identifying trade entry points, along with a predefined take profit (TP) and stop loss (SL) for risk management. Here's a detailed description of its features and how it operates:
Main Features
1. **WMAs as the Core Indicator**: - The strategy uses four WMAs with different lengths. Two WMAs (`longM1` and `longM2`) are used for long entry signals, and the other two (`shortM1` and `shortM2`) for short entry signals. - The lengths of these WMAs are adjustable through input parameters.
2. **Trade Entry Conditions**: - A long entry is signaled when the shorter WMA crosses under the longer WMA . - Conversely, a short entry is signaled when the shorter WMA crosses under the longer WMA.
3. **Take Profit and Stop Loss**: - The strategy includes a take profit and stop loss mechanism. - The TP and SL levels are set as a percentage of the entry price, with the percentage values being adjustable through input parameters.
4. **Visual Representation**: - The WMAs are plotted on the chart for visual aid, each with a distinct color for easy identification.
How It Works
- The strategy continuously monitors the crossing of WMAs to detect potential entry points for long and short positions. - Upon detecting a long or short condition, it automatically enters a trade and sets the corresponding TP and SL levels based on the current price and the specified percentages. - The strategy then actively manages the trade, exiting the position when either the TP or SL level is reached.
Drawbacks
- **Overreliance on WMAs**: The strategy heavily relies on WMAs for trade signals. While WMAs are useful for identifying trends, they might not always provide timely entry and exit signals. - **Market Conditions**: It may not perform well in highly volatile or sideways markets where WMA crossovers could lead to false signals. - **Risk Management**: The fixed percentage for TP and SL might not be suitable for all market conditions. Traders might need to adjust these values frequently based on market volatility and their risk tolerance. Apparently I need to emphasize to use brains when using indicators and setting them up to achieve the results you can or want. Also risk of 12% is considered very high so I lowered the numbers to 5%, which tanked the profits, try adjusting them on your own. Check the properties settings for more info on comission and slippage.
Conclusion
The "Four WMA Strategy with TP and SL" is suitable for traders who prefer a moving average-based approach to trading, combined with a straightforward mechanism for risk management through take profit and stop loss. However, like all strategies, it should be used with an understanding of its limitations and ideally tested thoroughly in various market conditions before applying it to live trading.
Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.