DCA, Support and Resistance with RSI and Trend Filter — Strategy by alescha13

By LUIS_GANDARA_G_TREND

Performance Metrics

Description

Sep 9, 2024This script is based ontradingview.com/v/8avMvSbe/ script from Kieranj with added pyramiding and DCAThe buy condition (buyCondition) is triggered when the RSI crosses above the oversold threshold (ta.crossover(rsi, oversoldThreshold)), the trend filter confirms an uptrend (isUptrend is true), and the close price is greater than or equal to the support level (close >= supportLevel).The partial sell condition (sellCondition) is triggered when the RSI crosses below the overbought threshold (ta.crossunder(rsi, overboughtThreshold)) and profit goal is reached, the trend filter confirms a downtrend (isUptrend is false), and the close price is less than or equal to the resistance level (close <= resistanceLevel).Full sell will be triggered if trend is broken and profit goal is reachedWith this implementation, the signals will only be generated in the direction of the trend on the 4-hour timeframe. The trend is considered up when the 50-period SMA is below the 200-period SMA (ta.sma(trendFilterSource, 50) < ta.sma(trendFilterSource, 200)).Pyramiding should be activated, values like 100, so every DCA step should be around 1%i have best results on 5 min chartsSep 12, 2024Release Notes-Added Wavetrend as additional indicator for buying/selling-Set all default parameters same as i doing backtests.-other small fixesSep 12, 2024Release NotesAdded new option:Using g trend as trend filter module:tradingview.com/v/utIrJYJS/thanks LUIS_GANDARA_G_TRENDSep 15, 2024Release Notes- Added MCAD as trend indicator- Reworked multi time frames :The strategy working now on 3 time frames1. Time frame where buy/sell signals on base of Wavetrend(default is on) and RSI are triggered. I'm using 5 min.2-3. Slow and fast trend time frames. Signals from time frame 1 are ignored if on this time frames RSI or Trend (MCAD or G trend) conditions are not meet. I'm using 15 min and 4 hours.Sep 15, 2024Release Notes- in previous post index was of course MACD, cant edit anymore- Added new option for cooldown between orders- fixed several bugs, specially on short side tradingSep 16, 2024Release Notes- added new option: based on ATR partial sells can be deactivated- updated default valuesSep 20, 2024Release Notes- Fixed repainting, needed to remove all indicators except MACD for it for now, but MACD has the best performance anywaySep 20, 2024Release Notes-- other repainting fixSep 22, 2024Release Notes- fix, negative numbers in % profit goals working now, maybe good in some situations.Sep 28, 2024Release Notes- new options on fast and slow filters for full sells if wrong direction, it was hard coded till now- new options for threshold entries on slow trend filter, filter is not activated till threshold amount of entries is reachedOct 7, 2024Release Notes--Added new parameter for slow trend:"Threshold profit %", slow trend filter will be disabled if current profit bigger then this value, default -2. Oct 18, 2024Release Notes-- fixed bug: profit and profit outside trend made exactly opposite-- added new parameter: profit on high ATR (was the same as profit outside trend before)-- added new parameter: source, was hard coded to close before, default close-- added better comments to chartNov 3, 2024Release Notes-- Added ichimoku cloud as trend filter (default will stay MACD)-- Changed default MACD source from SMA to EMA-- Bugfix: heikinashi and MACD Nov 15, 2024Release Notes-- added Volatility Gaussian Bands [BigBeluga] as trend filter, default is disabled, the strategy should work as before. Nov 15, 2024Release Notes-- bugfix: fixed wrong executed part. sells in today releaseNov 21, 2024Release Notes--Added additional full sell signals on fast and slow trendsDec 2, 2024Release Notes-- bugfix full sell repainting in rare casesDec 6, 2024Release Notes-- other bugfixDec 16, 2024Release Notes--bugfix: cooldown periodDec 23, 2024Release Notes-- Fixed small bug in "Threshold entries" on slow trend, changed default value to 3Jan 18Release Notes-- bugfix: buy and sell signal on same candle(very rare case)Jan 29Release Notes-- added new option:Additional entry signal on fast trend filter, if wave trend triggered(default true)Feb 1Release Notes-- added Schaff Trend Cycle als option-- fixed several bugsFeb 1Release Notes--other bugfixFeb 9Release Notes-- added new panic sell mode: it reducing position on a smart way depends of settings-- changed default part. sell to 10-- fixed bugsFeb 25Release Notes-- small bugfixes-- changed default part sell to 20%Feb 27Release Notes-- bugfix: multiple trend filters simultaneously possibleMar 9Release Notes-- New Option: disable entry or close position-- BugfixMar 14Release Notes-- added new option: start position size and price-- bugfixApr 15Release Notes-- added separated profit(full sell) setting for slow and fast trend-- added separated wavetrend settings for slow and full trendApr 20Release Notes-- added ADX index-- bugfixes

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView