Daily FX Strategy Based on Moving Average and Williams Indicator
1
Follow
1802
Followers
Overview
This strategy combines moving average, ATR indicator and Williams indicator for daily FX trading. It first judges price trend and potential reversal points through moving average, then uses Williams indicator to further confirm trading signals, and leverages ATR indicator to calculate stop loss and position sizing.
Strategy Logic
- Use 20-day moving average (baseline) to determine overall trend. Price crossing from below to above is buy signal, while crossing from above to below is sell signal.
- Williams indicator is used to confirm price reversal. Indicator crossing above -35 is buy confirmation, while crossing below -70 is sell confirmation.
- ATR indicator calculates average of price range over last 2 days. The value multiplied by a factor is set as stop loss distance.
- Position sizing is based on 50% risk of account equity. Trade size is calculated based on stop loss distance and risk percentage.
- After entering long position, stop loss is set at price low minus stop loss distance. Take profit is set at entry price plus 100 points. Exiting logic further confirms exit signals.
- Similarly for short position, stop loss and take profit are set the same way. Exiting logic also used to confirm exits.
Advantage Analysis
- Combining trend judgment by moving average and confirmation by indicator can effectively avoid losses from false breakouts.
- Dynamic stop loss by ATR can set reasonable stop distance based on market volatility.
- Risk control and dynamic position sizing can maximize control over single trade loss.
- Exiting logic combined with moving average can help further confirm good exit timing and avoid premature profit taking.
Risk Analysis
- Moving average signals may have higher probability of being wrong, needing further confirmation from indicators.
- Indicators themselves can also generate wrong signals, unable to completely avoid losses.
- This strategy fits trending pairs better, may have poorer results for range-bound pairs.
- Improper risk control ratio settings can also impact strategy profitability.
Methods like adjusting moving average period, combining more indicators, manual intervention etc. can help further optimize and improve strategy.
Conclusion
This strategy combines trend judgment and indicator filter for daily trading. It also leverages dynamic stop loss, risk control and other means to control trading risk. Much room for optimization exists by parameter tuning and method combination to further improve strategy performance.
Source
Pine
/*backtest
start: 2023-12-29 00:00:00
end: 2024-01-28 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("GBPJPY DAILY FX",initial_capital = 1000,currency="USD", overlay=true)
UseHAcandles = input(false, title="Use Heikin Ashi Candles in Algo Calculations")Strategy parameters
Related strategies
Comment
All comments (0)
No data
- 1

