OPEN-SOURCE SCRIPT
업데이트됨 DCA, Support and Resistance with RSI and Trend Filter

This script is based on
tradingview.com/v/8avMvSbe/ script from Kieranj with added pyramiding and DCA
The 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 reached
With 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 charts
tradingview.com/v/8avMvSbe/ script from Kieranj with added pyramiding and DCA
The 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 reached
With 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 charts
릴리즈 노트
-Added Wavetrend as additional indicator for buying/selling-Set all default parameters same as i doing backtests.
-other small fixes
릴리즈 노트
Added new option:Using g trend as trend filter module:
tradingview.com/v/utIrJYJS/
thanks LUIS_GANDARA_G_TREND
릴리즈 노트
- Added MCAD as trend indicator- Reworked multi time frames :
The strategy working now on 3 time frames
1. 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.
릴리즈 노트
- 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 trading
릴리즈 노트
- added new option: based on ATR partial sells can be deactivated- updated default values
릴리즈 노트
- Fixed repainting, needed to remove all indicators except MACD for it for now, but MACD has the best performance anyway릴리즈 노트
-- other repainting fix릴리즈 노트
- fix, negative numbers in % profit goals working now, maybe good in some situations.릴리즈 노트
- 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 reached
릴리즈 노트
--Added new parameter for slow trend:"Threshold profit %", slow trend filter will be disabled if current profit bigger then this value, default -2.
릴리즈 노트
-- 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 chart
릴리즈 노트
-- Added ichimoku cloud as trend filter (default will stay MACD)-- Changed default MACD source from SMA to EMA
-- Bugfix: heikinashi and MACD
릴리즈 노트
-- bugfix: fixed wrong executed part. sells in today release릴리즈 노트
--Added additional full sell signals on fast and slow trends릴리즈 노트
-- bugfix full sell repainting in rare cases릴리즈 노트
-- other bugfix릴리즈 노트
--bugfix: cooldown period릴리즈 노트
-- Fixed small bug in "Threshold entries" on slow trend, changed default value to 3릴리즈 노트
-- bugfix: buy and sell signal on same candle(very rare case)릴리즈 노트
-- added new option:Additional entry signal on fast trend filter, if wave trend triggered(default true)
릴리즈 노트
-- added Schaff Trend Cycle als option-- fixed several bugs
릴리즈 노트
--other bugfix릴리즈 노트
-- added new panic sell mode: it reducing position on a smart way depends of settings-- changed default part. sell to 10
-- fixed bugs
릴리즈 노트
-- small bugfixes-- changed default part sell to 20%
릴리즈 노트
-- bugfix: multiple trend filters simultaneously possible릴리즈 노트
-- New Option: disable entry or close position-- Bugfix
릴리즈 노트
-- added new option: start position size and price-- bugfix
릴리즈 노트
-- added separated profit(full sell) setting for slow and fast trend-- added separated wavetrend settings for slow and full trend
릴리즈 노트
-- added ADX index-- bugfixes
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.