Innocent Heikin Ashi Ethereum StrategyHello there, im back!
If you are familiar with my previous scripts, this one will seem like the future's nostalgia!
Functionality:
As you can see, all candles are randomly colored. This has no deeper meaning, it should remind you to switch to Heikin Ashi. The Strategy works on standard candle stick charts, but should be used with Heikin Ashi to see the actual results. (Regular OHLC calculations are included.)
Same as in my previous scripts we import our PVSRA Data from @TradersReality open source Indicator.
With this data and the help of moving averages, we have got an edge in the market.
Signal Logic:
When a "violently green" candle appears (high buy volume + tick speed) above the 50 EMA indicates a change in trend and sudden higher prices. Depending on OHLC of the candle itself and volume, Take Profit and Stop Loss is calculated. (The price margin is the only adjustable setting). Additionally, to make this script as simple and easily useable as possible, all other adjustable variables have been already set to the best suitable value and the chart was kept plain, except for the actual entries and exits.
Basic Settings and Adjustables:
Main Input 1: TP and SL combined price range. (Double, Triple R:R equally.)
Trade Inputs: All standard trade size and contract settings for testing available.
Special Settings:
Checkbox 1: Calculate Signal in Heikin Ashi chart, including regular candle OHLC („Open, High, Low, Close“)
Checkbox 2/3: Calculate by order fill or every tick.
Checkbox 4: Possible to fill orders on bar close.
Timeframe and practical usage:
Made for the 5 Minute to 1 hour timeframe.
Literally ONLY works on Ethereum and more or less on Bitcoin.
EVERY other asset has absolute 0% profitability.
Have fun and share with your friends!
Thanks for using!
Example Chart:
Profitable
Liquidity Founder The Liquidity Swings indicator aids traders in detecting liquidity swings within the market, providing essential insights for making well-informed trading decisions. Key features include:
How this Indicator work - this indicator search pivot point that is used to determine the levels at which price may face support or resistance. The Pivot Points indicator consists of a pivot point (PP) level and several support (S) and resistance (R) levels. if input number of bar selected 3 than it will look back 3 candle and wait for next 3 candle to make pivot high and low after it identify pivot it draw a line and extend until it no longer intersects with the high or low prices
What is different in my indicator compared to a normal pivot point and what Makes This Indicator Original :
1) Swing High and Low Logic:It avoids marking consecutive pivot highs until a new pivot low is formed, reducing market noise and highlighting significant trend reversals.
2)Volume Integration: By incorporating volume data, the indicator ensures that pivot points are validated with sufficient market activity, enhancing their reliability as support and resistance levels.
3) Multi-Time Frame Analysis:The ability to input and analyze multiple time frames allows the indicator to draw strong support and resistance levels that are relevant across different trading periods, making it versatile for various trading strategies.
🟠 Liquidity Swings indicator
✅Visualization of Liquidity Zones:Accumulation Areas: Identifying regions where liquidity is gathering.liquidity Sweeps: Pinpointing areas where liquidity is being cleared.
✅Pivot and Volume Analysis:Price Pivots: Monitoring significant pivots in price.
Volume Correlation: Linking price pivots with volume to highlight zones of potential support and resistance.
✅Market Dynamics Understanding:Enables traders to visualize and understand market dynamics more effectively.Assists in pinpointing potential support and resistance levels based on liquidity swings.
⭐Example -EurUsd 1 minutes chart developed Potential Support and Resistance Zone
⭐⭐⭐Key Features:
1) Adjustable Time Frame: Allows traders to analyze different periods by modifying the time frame setting.
2) Swing Look back Period: Sets the period for identifying potential price swings, enhancing flexibility in analysis.
🟠 Understanding Strong Support :These are identified by dense clusters of green lines, indicating high concentrations of buy orders that have not yet been executed. These areas suggest strong buying interest which can potentially halt further price declines.
⭐ Example -below chart image BtcUsd 5 minutes 2 line are still not touched by price
⭐⭐⭐Reasons for Strong Support:
✅Untouched Liquidity Lines: These green lines represent pending buy orders, indicating robust buying interest at these levels.
✅Accumulation of Orders: Many buy orders are aggregated in these zones, capable of preventing further price drops when approached.
✅ Historical Performance: These areas have previously prevented price declines, establishing them as reliable support zones.
✅ Market Confidence: Close clustering of green lines signifies widespread trader belief in favorable buying conditions, reinforcing support strength.
🟠 Understanding Strong Resistance :Highlighted by dense clusters of red lines, denoting substantial sell orders that did not executed. These zones signify significant selling interest which can impede further price increases.
⭐ Example -below chart image Btcusd 3 minutes 3 line did touched by price previously .price touched that area and retraced because of unfilled liquidity
⭐⭐⭐ Reasons for Strong Support:
✅ Untouched Liquidity Lines: These green lines represent pending buy orders, indicating robust buying interest at these levels.
✅ Accumulation of Orders: Many buy orders are aggregated in these zones, capable of preventing further price drops when approached.
✅ Historical Performance: These areas have previously prevented price declines, establishing them as reliable support zones.
✅ Market Confidence: Close clustering of green lines signifies widespread trader belief in favorable buying conditions, reinforcing support strength.
⭐⭐⭐ Usage of the Liquidity Founder Indicator ⭐⭐⭐
👍 Identifying Liquidity Zones: Pinpoints areas with dense clusters of pending buy (green) or sell (red) orders, providing initial entry points where significant buying or selling interest is concentrated.
👍 Avoiding Market Traps: Helps traders steer clear of market fluctuations or false breakouts by focusing on stable liquidity zones.
How to Use this indicator for Maximum benefit -
1) When the price approaches a cluster of resistance levels, traders should look for a candle showing rejection (e.g., a bearish reversal candle) to enter a short trade.
2)When the price approaches a cluster of support levels, traders should look for a candle showing rejection (e.g., a bullish reversal candle) to enter a long trade.
3) The identified liquidity levels offer a clear understanding of significant support and resistance areas, helping traders make more informed trading decisions.
4) Fake breakouts above resistance or below support clusters. If the price breaks above resistance and then falls back below, it can be a signal to enter a short trade vice versa if price break support cluster and back again above support cluster it can be a long trade
Chande Kroll Trend Strategy (SPX, 1H) | PINEINDICATORSThe "Chande Kroll Stop Strategy" is designed to optimize trading on the SPX using a 1-hour timeframe. This strategy effectively combines the Chande Kroll Stop indicator with a Simple Moving Average (SMA) to create a robust method for identifying long entry and exit points. This detailed description will explain the components, rationale, and usage to ensure compliance with TradingView's guidelines and help traders understand the strategy's utility and application.
Objective
The primary goal of this strategy is to identify potential long trading opportunities in the SPX by leveraging volatility-adjusted stop levels and trend-following principles. It aims to capture upward price movements while managing risk through dynamically calculated stops.
Chande Kroll Stop Parameters:
Calculation Mode: Offers "Linear" and "Exponential" options for position size calculation. The default mode is "Exponential."
Risk Multiplier: An adjustable multiplier for risk management and position sizing, defaulting to 5.
ATR Period: Defines the period for calculating the Average True Range (ATR), with a default of 10.
ATR Multiplier: A multiplier applied to the ATR to set stop levels, defaulting to 3.
Stop Length: Period used to determine the highest high and lowest low for stop calculation, defaulting to 21.
SMA Length: Period for the Simple Moving Average, defaulting to 21.
Calculation Details:
ATR Calculation: ATR is calculated over the specified period to measure market volatility.
Chande Kroll Stop Calculation:
High Stop: The highest high over the stop length minus the ATR multiplied by the ATR multiplier.
Low Stop: The lowest low over the stop length plus the ATR multiplied by the ATR multiplier.
SMA Calculation: The 21-period SMA of the closing price is used as a trend filter.
Entry and Exit Conditions:
Long Entry: A long position is initiated when the closing price crosses over the low stop and is above the 21-period SMA. This condition ensures that the market is trending upward and that the entry is made in the direction of the prevailing trend.
Exit Long: The long position is exited when the closing price falls below the high stop, indicating potential downward movement and protecting against significant drawdowns.
Position Sizing:
The quantity of shares to trade is calculated based on the selected calculation mode (linear or exponential) and the risk multiplier. This ensures position size is adjusted dynamically based on current market conditions and user-defined risk tolerance.
Exponential Mode: Quantity is calculated using the formula: riskMultiplier / lowestClose * 1000 * strategy.equity / strategy.initial_capital.
Linear Mode: Quantity is calculated using the formula: riskMultiplier / lowestClose * 1000.
Execution:
When the long entry condition is met, the strategy triggers a buy signal, and a long position is entered with the calculated quantity. An alert is generated to notify the trader.
When the exit condition is met, the strategy closes the position and triggers a sell signal, accompanied by an alert.
Plotting:
Buy Signals: Indicated with an upward triangle below the bar.
Sell Signals: Indicated with a downward triangle above the bar.
Application
This strategy is particularly effective for trading the SPX on a 1-hour timeframe, capitalizing on price movements by adjusting stop levels dynamically based on market volatility and trend direction.
Default Setup
Initial Capital: $1,000
Risk Multiplier: 5
ATR Period: 10
ATR Multiplier: 3
Stop Length: 21
SMA Length: 21
Commission: 0.01
Slippage: 3 Ticks
Backtesting Results
Backtesting indicates that the "Chande Kroll Stop Strategy" performs optimally on the SPX when applied to the 1-hour timeframe. The strategy's dynamic adjustment of stop levels helps manage risk effectively while capturing significant upward price movements. Backtesting was conducted with a realistic initial capital of $1,000, and commissions and slippage were included to ensure the results are not misleading.
Risk Management
The strategy incorporates risk management through dynamically calculated stop levels based on the ATR and a user-defined risk multiplier. This approach ensures that position sizes are adjusted according to market volatility, helping to mitigate potential losses. Trades are sized to risk a sustainable amount of equity, adhering to the guideline of risking no more than 5-10% per trade.
Usage Notes
Customization: Users can adjust the ATR period, ATR multiplier, stop length, and SMA length to better suit their trading style and risk tolerance.
Alerts: The strategy includes alerts for buy and sell signals to keep traders informed of potential entry and exit points.
Pyramiding: Although possible, the strategy yields the best results without pyramiding.
Justification of Components
The Chande Kroll Stop indicator and the 21-period SMA are combined to provide a robust framework for identifying long trading opportunities in trending markets. Here is why they work well together:
Chande Kroll Stop Indicator: This indicator provides dynamic stop levels that adapt to market volatility, allowing traders to set logical stop-loss levels that account for current price movements. It is particularly useful in volatile markets where fixed stops can be easily hit by random price fluctuations. By using the ATR, the stop levels adjust based on recent market activity, ensuring they remain relevant in varying market conditions.
21-Period SMA: The 21-period SMA acts as a trend filter to ensure trades are taken in the direction of the prevailing market trend. By requiring the closing price to be above the SMA for long entries, the strategy aligns itself with the broader market trend, reducing the risk of entering trades against the overall market direction. This helps to avoid false signals and ensures that the trades are in line with the dominant market movement.
Combining these two components creates a balanced approach that captures trending price movements while protecting against significant drawdowns through adaptive stop levels. The Chande Kroll Stop ensures that the stops are placed at levels that reflect current volatility, while the SMA filter ensures that trades are only taken when the market is trending in the desired direction.
Concepts Underlying Calculations
ATR (Average True Range): Used to measure market volatility, which informs the stop levels.
SMA (Simple Moving Average): Used to filter trades, ensuring positions are taken in the direction of the trend.
Chande Kroll Stop: Combines high and low price levels with ATR to create dynamic stop levels that adapt to market conditions.
Risk Disclaimer
Trading involves substantial risk, and most day traders incur losses. The "Chande Kroll Stop Strategy" is provided for informational and educational purposes only. Past performance is not indicative of future results. Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and risk tolerance.
Sniper BreakoutThis indicator is based on 3 indicator :=
1) Forex Market Session 2) Ema 200 3) Volume
This indicator is for Forex market ..in Forex market (ex- Eur/Usd ) price often (67%) do rotation in every session means example :let suppose a trade take trade in asian session and have 30 pips stop loss 67 % chance price will come back to entry price after London session or New York session so trade have less chance to make trade without hitting stop loss
in this indicator we are using Forex market session indicator to get session range start to end ..this indicator will only search opportunity in London And New York Session range and that can be customize from input section . user can select time zone and time of session from input section indicator and color of session .
next indicator using 200 length Exponential Moving Average for trend identification .if close price is above 200 Ema means trend is upside moving & if close price is below 200 Ema means price is moving downside .user can change length and source of Ema from input section .
Third and most important part is volume indicator when a session start (Example-London session it keep Look back 6 previous candle and compare volume imbalance between look back candle .look back candle can be customize from input section default look back candle input is (6).
next we are using trade range time to only show trade on certain time because often market convert into trading range so given specific input time it only take trade when volume and price is rising or falling .time range can be selected from input section .
Trade Entry Buy Signal -if price is either London or New York session and price is above 200 Ema and volume not in imbalance last number of candle it give Feb (first entry buy ) we keep save high price of every candle after Feb (label ) signal .if any candle break above Feb label it show a confirm buy signal ..Below in example as we can see
Example Image Buy Signal -
in this above example step -1 we searching imbalance of volume and price as we can see imbalance of volume and price on green candle .next we look price is above 200 ema .next step(2) we got Feb (first entry buy ) signal this is not a confirm buy signal .we save high of candle next candle high close above previous candle high we got confirm buy signal .
Trade Entry Sell Signal - if price is either London or New York session and price is below 200 Ema and volume not in imbalance last number of candle it give Feb (first entry Sell ) we keep save low price of every candle after Fes (label ) signal .if any candle break below Fes label it show a confirm sell signal ..Below in example as we can see
step-1 starting of london session we start getting imbalance between price and volume .price is getting rejected but volume is rising on green candle we got fes (first entry sell signal ).next we save low of fes candle but price close above that low of candle we dont get confirm sell entry next price break below low of previous candle so open a new sell signal ..
Example 3 - No Confirm buy/sell Signal
In this above Image example we did not get any confirm signal...we got first entry buy signal but price did not close high of candle in london session .so that day chance price can go any side ..
Example 4 -Feb signal and later confirm buy entry
in this above example we got imbalance of volume and feb(first entry buy signal) but we dont get any confirm buy signal price is just going high then previous candle ..later we see price crossover high of previous candle we got confirm buy signal
Use Of Indicator - This indicator helps traders identify potential trade setups by signaling the first entry points and confirming them later. It's particularly useful for avoiding getting caught in price rotations and aligning trades with significant volume and price movements. Traders should analyze price action and news before confirming a trade.
5 ema strategyThis Strategy is based of Subhashish Pani's (power of stocks) 5 EMA Strategy.strategy used for sell in 5 minutes and for buy in 15 minutes ..
Rules for this strategy ..
Sell signal -
1) if price is above 5 Ema and not touching Ema use as alert candle..
2) if price break low of alert candle strategy open trade ..
3) if price move more upside low of alert candle keep change into next candle ..
4) input we can select number of trade per day .as rule should take only 4 signal should execute
5) stop loss is fixed highest high of last 2 candle and take profit is input multiply of stop loss
buy signal-
1) if price is below 5 Ema and not touching Ema use as alert candle..
2) if price break high of alert candle strategy open trade ..
3) if price move more downside high of alert candle keep change into next candle ..
4) input we can select number of trade per day .as rule should take only 4 signal should execute
5) stop loss is fixed lowest low of last 2 candle and take profit is input multiply of stop loss
notes -input can be selected which side should take signal either buy or sell side ...number of trade can be adjusted ..
Disclaimer -Traders can use this script as a starting point for further customization or as a reference for developing their own trading strategies. It's important to note that past performance is not indicative of future results, and thorough testing and validation are recommended before deploying any trading strategy.
DCA-Integrated Trend Continuation StrategyIntroducing the DCA-Integrated Trend Continuation Strategy 💼💰
The DCA-Integrated Trend Continuation Strategy represents a robust trading methodology that harnesses the potential of trend continuation opportunities while seamlessly incorporating the principles of Dollar Cost Averaging (DCA) as a risk management and backup mechanism. This strategy harmoniously blends these two concepts to potentially amplify profitability and optimize risk control across diverse market conditions.
This strategy is well-suited for both trending and ranging markets. During trending markets, it aims to capture and ride the momentum of the trend while optimizing entry points. In ranging markets or pullbacks, the DCA feature comes into play, allowing users to accumulate more assets at potentially lower prices and potentially increase profits when the market resumes its upward trend. This cohesive approach not only enhances the overall effectiveness of the strategy but also fosters a more resilient and adaptable trading approach in ever-changing market dynamics.
💎 How it Works:
▶️ The strategy incorporates a customizable entry signal based on candlestick patterns, enabling the identification of potential trend continuation opportunities. By focusing on consecutive bullish candles, it detects the presence of bullish momentum, indicating an optimal time to enter a long position.
To refine the precision of the signals, traders can set a specific percentage threshold for the closing price of the candle, ensuring it is above a certain percentage of its body. This condition verifies strong bullish momentum and confirms significant upward movement within the candle, thereby increasing the reliability of the signal.
In addition, the strategy offers further confirmation by examining the relationship between the closing price of the signal candle and its previous candles. If the closing price of the signal candle is higher than its preceding candles, it provides an additional layer of assurance before entering a position. This approach is particularly effective in detecting sharp movements and capturing significant price shifts, as it focuses on identifying instances where the closing price shows clear strength and outperforms the previous candle's price action. By prioritizing such occurrences, the strategy aims to capture robust trends and capitalize on notable market movements.
▶️ During market downturns, the strategy incorporates intelligent management of price drops, offering flexibility through fixed or customizable price drop percentages. This unique feature allows for additional entries at specified drop percentages, enabling traders to accumulate positions at more favorable prices.
By strategically adjusting the custom price drop percentages, you can optimize your entry points to potentially maximize profitability. Utilizing lower percentages for initial entries takes advantage of price fluctuations, potentially yielding higher returns. On the other hand, employing higher percentages for final entries adopts a more cautious approach during significant market downturns, emphasizing enhanced risk management. This adaptive approach ensures that the strategy effectively navigates challenging market conditions while seeking to optimize overall performance.
▶️ To enhance performance and mitigate risks, the strategy integrates average purchase price management. This feature dynamically adjusts the average buy price percentage decrease after each price drop, expediting the achievement of the target point even in challenging market conditions. By reducing recovery times and ensuring investment safety, this strategy optimizes outcomes for traders.
▶️ Risk management is at the core of this strategy, prioritizing the protection of capital. It incorporates an account balance validation mechanism that conducts automatic checks prior to each entry, ensuring alignment with available funds. This essential feature provides real-time insights into the affordability of price drops and the number of entries, enabling traders to make informed decisions and maintain optimal risk control.
▶️ Furthermore, the strategy offers take profit options, allowing traders to secure gains by setting fixed percentage profits from the average buy price or using a trailing target. Stop loss protection is also available, enabling traders to set a fixed percentage from the average purchase price to limit potential losses and preserve capital.
▶️ This strategy is fully compatible with third-party trading bots, allowing for easy connectivity to popular trading platforms. By leveraging the TradingView webhook functionality, you can effortlessly link the strategy to your preferred bot and receive accurate signals for position entry and exit. The strategy provides all the necessary alert message fields, ensuring a smooth and user-friendly trading experience. With this integration, you can automate the execution of trades, saving time and effort while enjoying the benefits of this powerful strategy.
🚀 How to Use:
To effectively utilize the DCA-Integrated Trend Continuation Strategy, follow these steps:
1. Choose your preferred DCA Mode - whether by quantity or by value - to determine how you want to size your positions.
2. Customize the entry conditions of the strategy to align with your trading preferences. Specify the number of consecutive bullish candles, set a desired percentage threshold for the close of the signal candle relative to its body, and determine the number of previous candles to compare with.
3. Adjust the pyramiding parameter to suit your risk tolerance and desired returns. Whether you prefer a more conservative approach with fewer pyramids or a more aggressive stance with multiple pyramids, this strategy offers flexibility.
4. Personalize the price drop percentages based on your risk appetite and trading strategy. Choose between fixed or custom percentages to optimize your entries in different market scenarios.
5. Configure the average purchase price management settings to control the percentage decrease in the average buy price after each price drop, ensuring it aligns with your risk tolerance and strategy.
6. Utilize the account balance validation feature to ensure the strategy's actions align with your available funds, enhancing risk management and preventing overexposure.
7. Set take profit options to secure your gains and implement stop loss protection to limit potential losses, providing an additional layer of risk management.
8. Use the date and time filtering feature to define the duration during which the strategy operates, allowing for specific backtesting periods or integration with a trading bot.
9. For automated trading, take advantage of the compatibility with third-party trading bots to seamlessly integrate the strategy with popular trading platforms.
By following these steps, traders can harness the power of the DCA-Integrated Trend Continuation Strategy to potentially maximize profitability and optimize their trading outcomes in both trending and ranging markets.
⚙️ User Settings:
To ensure the backtest result is representative of real-world trading conditions, particularly in the highly volatile Crypto market, the default strategy parameters have been carefully selected to produce realistic results with a conservative approach. However, you have the flexibility to customize these settings based on your risk tolerance and strategy preferences, whether you're focusing on short-term or long-term trading, allowing you to potentially achieve higher profits. The backtesting was conducted using the BTCUSDT pair in 15-minute timeframe on the Binance exchange. Users can configure the following options:
General Settings:
- Initial Capital (Default: $10,000)
- Currency (Default: USDT)
- Commission (Default: 0.1%)
- Slippage (Default: 5 ticks)
Order Size Management:
- DCA Mode (Default: Quantity)
- Order Size in Quantity (Default: 0.01)
- Order Size in Value (Default: $300)
Strategy's Entry Conditions:
- Number of Consecutive Bullish Candles (Default: 3)
- Close Over Candle Body % (Default: 50% - Disabled)
- Close Over Previous Candles Lookback (Default: 14 - Disabled)
- Pyramiding Number (Default: 30)
Price Drop Management:
- Enable Price Drop Calculations (Default: Enabled)
- Enable Current Balance Check (Default: Enabled)
- Price Drop Percentage Type (Default: Custom)
- Average Price Move Down Percentage % (Default: 50%)
- Fixed Price Drop Percentage % (Default: 0.5%)
- Custom Price Drop Percentage % (Defaults: 0.5, 0.5, 0.5, 1, 3, 5, 5, 10, 10, 10)
TP/SL:
- Take Profit % (Default: 3%)
- Stop Loss % (Default: 100%)
- Enable Trailing Target (Default: Enabled)
- Trailing Offset % (Default: 0.1%)
Backtest Table (Default: Enabled)
Date & Time:
- Date Range Filtering (Default: Disabled)
- Start Time
- End Time
Alert Message:
- Alert Message for Enter Long
- Alert Message for Exit Long
By providing these customizable settings, the strategy allows you to tailor it to your specific needs, enhancing the adaptability and effectiveness of your trading approach.
🔐 Source Code Protection:
The source code of the DCA-Integrated Trend Continuation Strategy is designed to be robust, reliable, and highly efficient. Its original and innovative implementation merits protecting the source code and limiting access, ensuring the exclusivity of this strategy. By safeguarding the code, the integrity and uniqueness of the strategy are preserved, giving users a competitive edge in their trading activities.
ATR_RSI_Strategy v2 with no repaint [liwei666]🎲 Overview
🎯 this is a optimized version based on ATR_RSI_Strategy with no-repaint.
Sharpe ratio: 1.4, trade times: 116 ,
trade symbol: BINANCE:BTCUSDTPERP 15M
you can get same backtesting result with the correct settings.
🎲 Strategy Logic
🎯 the core logic is quite simple, use ATR and RSI and SMA
1. when price is in high volatility ( atr_value > atr_ma);
2. wait for a break signal (rsi_value > rsi_buy or rsi_value < rsi_sell);
3. entry Long or Short,use trailing stop-loss to max security and percent TP to keep profit.
🎲 Settings
🎯 there are 7 input properties in script, but I only finetune 4 of them ( bold field below ),
you may change other parameter to get better result by yourself.
atr_length: length to get atr value
atr_ma_length : length of smoothing atr value
atr_ma_norm_min : atr_ma normalized min value, filter high volatility ranges
atr_ma_norm_max : atr_ma normalized max value, filter high volatility ranges
rsi_length : length to get rsi value
rsi_entry: 50 +/- rsi_entry to get entry threshold
trailing_percent: trailing stop-loss percent
🎲 Usage
🎯 the commission set to 0.05% , part of exchange the commission is less than 0.05% in reality,
but I will still use 0.05% in my next script.
🎯 this script use 50% of equity to size positions follow general script position,
you can adjust the value to fix size or 100% of equity to compare result with other strategy,
but I still suggest you use 5-10% of equity for each strategy in reality.
🎯any questions please comment below. if there are any words violate House Rule, please tell me below and i will revise immediately
don't want be hiddened again 😂😂
Additionally, I plan to publish 20 profitable strategies in 2023;
let‘s witness it together!
Hope this strategy will be usefull for you :)
enjoy! 🚀🚀🚀
TradingWolf Premium OscillatorsThe TradingWolf Premium Oscillators is a unique and enhanced selection of oscillators designed to help give you an edge on the markets.
Within this one indicator you will have access to RSI, Stochastic, MACD, Awesome Oscillator, Wavetrend, Zig Zag Pivots and DPO.
Including Divergence and Hidden Divergence signals for them.
Below each indicator is explained along with its enhancements to help you understand it better.
This script comes with the 'TradingWolf Premium' to get access, read the Author’s Instructions below.
There are extensive explanations on how to use these oscillators in our documentation on the website but we will give a simple overview here.
RSI
We try not to mess with these too much because if used correctly, they are very powerful tools. The main differences you will notice is that we have highlighted the areas where you should be paying attention to the oscillator with reversal/continuation zones.
The most popular feature from these will be the 4 divergences which can be toggled on or off in the settings.
Stochastic
Stochastic we have tried to keep as similar to the original as possible, main features are being able to select alternate timeframes for it to be calculated on as well as displaying divergences.
We have created a highlighted zone for when price enters the overbought/sold territory. A lot of traders will look for crossovers happening in these areas however from our tests we have discovered entering trades as the Stochastic comes out of these areas has hugely reduced losing trades, still not a perfect strategy but it does often show that the trend is showing weakening momentum and its commonly followed by a period of sideways action before continuing in a new direction.
MACD
We have calculated a dynamic extreme range for the MACD, you will notice the green/red bars as the bottom and top of the Oscillator. These levels help adjust with the assets volatility so they will work universally on all assets and timeframes. When these levels get more narrow, this indicates there is a potential larger move to come, similar thought process to a Bollinger band squeeze.
We like the Divergence signals you receive whilst in this OB/OS range as they give more confluence behind the divergence signal that price has over extended and is looking to retrace or consolidate.
Awesome Oscillator
The Awesome Oscillator is based on some pretty simple calculations but is hugely powerful.
The 3 main use cases are crossing the 0 value, showing weakening momentum and divergence signals.
We Particularly like the Divergence signals it gives us as they tend to be more accurate than any other oscillator.
Wavetrend
Wavetrend we try describe as a more dynamic Stochastic/MACD, it moves smoother and quicker without giving too many false signals.
Conditions we use the Wavetrend for are similar to the MACD where we are looking for crossovers or divergences in the extreme bands, these shouldn’t be used to trade alone and should be paired with other pieces of confluence for a higher probability trade however this is one of our favourites.
We also have a VWAP extreme detector which we pair with the Wavetrend, helping us identify areas where price should start cooling off.
Zig Zag
The main purpose of the standard Zig Zag is to analyse historical data to be able to observe cycle's in a market's movement, this requires a bit more explanation than we can include here so please refer to our documentation on the website for further guidance.
DPO
The detrended price oscillator is unlike other oscillators, such as the Stochastic or MACD the DPO is not a momentum indicator. It instead highlights peaks and troughs in price, which are used to estimate buy and sell points in line with the historical cycle.
We personally think this is the most under-rated oscillator out there, if you simply followed the DPO above 0 for long and below for short on higher timeframes you can outperform the buy and hold return of Bitcoin (BTCUSDT)...
This is just one simple way of using the DPO there are other more in depth methods of using it within our documentation.
Trend Follower Intraday [ Adjustable TF ]Trend Follower Intraday for 3 minute Time-Frame (Adjustable) , that has the time condition for Indian Markets as well.
Unlike the Free Scripts - Risk Management , Position Sizing , Partial Exit etc. are also included .
Send us a Message to know more about the strategy.
// ══════════════════════════════════════════════════════════════════════════ //
The Timing can be changed to fit other markets, scroll down to "TIME CONDITION" to know more.
The commission is also included in the strategy .
The basic idea is when ,
1) EMA1 crosses above EMA2 , is a Long condition .
2) EMA1 crosses below EMA2 , is a Short condition .
3) Green Section indicates Long position.
4) Red Section indicates Short position.
5) Allowed hours specifies the trade entry timing.
6) ATR STOP is the stop-loss value on chart , can be adjusted in INPUTS.
7) Target 1 is the 1st target value on chart , can be adjusted in INPUTS.
8) RISK is Maximum Risk per trade for the intraday trade can be changed .
9) Total Capital used can be adjusted under INPUTS.
10) ATR TRAIL is used for trailing after entry, as mentioned in the inputs below.
11) Check trades under the list of trades .
12) Trade only in liquid stocks .
13) Risk only 1-5% of total capital.
14) Inputs can be changed for better back-test results, but also manually check the trades before setting alerts
15) SQUARE OFF TIME - As you change the time frame , also change the square-off time to the candle's closing time.
Eg: For 3min Time-frame , Hour = 2Hrs | Minute = 57min
16) Strategy stops for the day if you have a loss .
17) COMMISSION value is set to 20Rs and SLIPPAGE value is set to 2 . Go to properties to change it .
*The input values and the results are mentioned under "BACKTEST RESULTS" below*
// ══════════════════════════════ //
// ————————> RISK MANAGEMENT <——————— //
// ══════════════════════════════ //
Risk management is done based on max loss per trade and can be adjusted in the INPUTS.
// ═══════════════════════════ //
// ————————> POSITION SIZE <——————— //
// ═══════════════════════════ //
Quantity of each trade is different based on the loss
// ═════════════════════════ //
// ————————> PROPERTIES <——————— //
// ═════════════════════════ //
COMMISSION , SLIPPAGE ,RECALCULATE is already mentioned in the code.
COMMISSION can be charges , based on the broker charges.
// ═══════════════════════════════//
// ————————> TIME CONDITION <————————— //
// ═══════════════════════════════//
The time can be changed in the INPUT.
The Indian Markets open at 9:15am and closes at 3:30pm.
The 'Allowed hours' under Inputs specifies the time at which Entries should happen .
"Close All" function closes all the trades before 3pm , at the open of the next candle.
To change the time to close all trades , check INPUT.
All open trades get closed by 3pm , because some brokers don't allow you to place fresh intraday orders after 3pm .
// ═══════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( 123 CLOSED TRADES ) <————————— //
// ═══════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to NSE:JSWENERGY (3 min Time-Frame and with a capital of 3,00,000 ) gives us 81% profitability , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.957 ,net Profit of 43,000Rs .
Sharpe Ratio = 0.745
Sortino Ratio = 2.091
No strategy in the world promises 100% profits in all market conditions , so always define your risk before trading.
Also check Back-Test results manually ,before setting Alerts
The Graph has a Linear Curve with Consistent Profits.
The INPUTS are as follows,
1) EMA1 ————————————————> 38
2) EMA2 ————————————————> 118
3) ALLOWED HRS ———————————> 9:35 TO 14:30
4) ATR STOP ——————————————> 3.2
5) RISK ——————————————————> 3000
6) ATR TRAIL ———————————————> 2.6
7) TARGET 1 ————————————————> 2.4
8) MAX POSITION VALUE ——————————> 3,00,000
8) MAX DRAWDOWN —————————————> 9,000
8) SQUARE-OFF ————————————————> 14:57
NSE:JSWENERGY
Apply it to your charts Now !
NSE:JSWENERGY
Send us a message for FREE TRIALS | Instant Access
Thank You ☺
TradingWolf Premium PatternsThe TradingWolf Premium is a one of a kind indicator which can identify charting patterns unlike any others. Standard Chart patterns take 10+ candles to recognise where as ares are almost instant without repainting!
Within this one indicator you will have access to Break Out Levels , Dynamic Support and resistance, Bull Flag, Bear Flag, Rising Wedge, Falling Wedge, Inverse Head & Shoulders, Head & Shoulders, Double Top, Double Bottom, Trend Lines, Ascending Triangle, Descending Triangle, Parallel Channel & Linear Regression Channels.
Below each indicator is explained along with its enhancements to help you understand it better.
This script comes with the 'TradingWolf Premium' to get access, read the Author’s Instructions below.
There are extensive explanations on how to use this indicator in our documentation on the website but we will give a simple overview here.
Break Out Levels
Break out levels are great for breakout traders, this indicator is scanning for strong points of support & resistance, it does this by finding pivot points where price has had a noticeable pull back. From there it will monitor that level and display a signal soon as price breaks it.
Another use case for this indicator is helping identify the market structure direction. If we are breaking up and getting Green triangles, this suggests we are in a bullish up-trending structure and vice versa for red bearish signals.
Support & Resistance
There are lots of ways of deciding how to mark up support and resistance, we like to use ATR values related to daily price action. Marking levels up on lower timeframes tend not to give such good levels to play whereas calculating values from the Higher time frames gives us levels we know are more like to be respected.
Although they are calculated from the daily timeframe you will notice these levels will adjust to the daily price action to make sure they are keeping up to date on levels you need to keep an eye on.
Flags
Flags show signs of continuation, they are confirmed when price breaks the upper resistance for bull flags and lower support for bear flags. They are commonly used in trading but with this indicator, it will help you spot ones you may normally miss. Everyone judges flags differently so we have given you the ability to decide how strict you would like the flags to be with the correlation setting, if you set it to 100% the top and bottom lines of the flag must be going at the exact same angle to count as a valid flag.
Wedges
A wedge pattern is typically a reversal pattern, you would normally use these in correlation with volume. For a confirmed wedge you want declining volume as the price reaches the wedge end. You can either try entering at the top/bottom of the wedge pattern or wait until price breaks into the opposite trending direction.
Head & Shoulders
These are reversal patterns, for a confirmed Head and shoulder pattern you want to pair it with declining volume or momentum
You will notice you have a HF option, when enabled this will scan multiple different lengths of pivots to try spot more patterns which the regular settings may miss. If you think you are getting enough you may want to disable this.
Triangles
Triangles help us identify areas where price starts consolidating in a narrow range, once we reach roughly ¾ of the way through the triangle, we will see a break out in either direction, normally confirmation just requires 1 close out of the triangle along with increased volume. If you miss the initial move you may be able to catch a retest if you are lucky!
Double Tops & Bottoms
These patterns are considered reversal patterns. They are confirmed on the break of the neck line with increased volume.
Trend Lines
These are as simple as the name suggests, the lines are calculated slightly differently to other support and resistance points but they will work the same spotting potential areas where price will bounce or reject.
Channels
Similar to Trend lines but these are looking for trend lines at the same angle forming channels where price tends to range between. You have several options to edit these in the settings including the correlation % of the channel lines, how many candles are allowed outside of the channel (fake outs), sensitivity/ frequency the channels appear and whether you use the Wicks or candle Closes to determine where to calculate the channels from.
Linear Regression Channels
Linear regression is the analysis of two separate variables to define a single relationship and is a useful measure from a technical and quantitative point of view.
As seen in the image above, these can be used to help determine key levels in the chart where price is likely to react. In the settings you will be able to adjust its sensitivity to the levels you like to trade.
SUPPORT RESISTANCE STRATEGY [5MIN TF]A SUPPORT RESISTANCE BREAKOUT STRATEGY for 5 minute Time-Frame , that has the time condition for Indian Markets
The Timing can be changed to fit other markets, scroll down to "TIME CONDITION" to know more.
The commission is also included in the strategy .
The basic idea is when ,
1) Price crosses above Resistance Level ,indicated by Red Line, is a Long condition.
2) Price crosses below Support Level ,indicated by Green Line , is a Short condition.
3) Candle high crosses above ema1, is a part of the Long condition .
4) Candle low crosses below ema1, is a part of the Short condition .
5) Volume Threshold is an added confirmation for long/short positions.
6) Maximum Risk per trade for the intraday trade can be changed .
7) Default qty size is set to 50 contracts , which can be changed under settings → properties → order size.
8) ATR is used for trailing after entry, as mentioned in the inputs below.
// ═════════════════════════//
// ————————> INPUTS <————————— //
// ═════════════════════════//
→ L_Bars ———————————> Length of Resistance / Support Levels.
→ R_Bars ———————————> Length of Resistance / Support Levels.
→ Volume Break ———————> Volume Breakout from range to confirm Long/Short position.
→ Price Cross Ema —————> Added condition as explained above (3) and (4).
→ ATR LONG —————————> ATR stoploss trail for Long positions.
→ ATR SHORT ————————> ATR stoploss trail for Short positions.
→ RISK ————————————> Maximum Risk per trade intraday.
The strategy was back-tested on TCS ,the input values and the results are mentioned under "BACKTEST RESULTS" below.
// ═════════════════════════ //
// ————————> PROPERTIES<——————— //
// ═════════════════════════ //
Default_qty_size ————> 50 contracts , which can be changed under
Settings
↓
Properties
↓
Order size
// ═══════════════════════════════//
// ————————> TIME CONDITION <————————— //
// ═══════════════════════════════//
The time can be changed in the script , Add it → click on ' { } ' → Pine editor→ making it a copy [right top corner} → Edit the line 27.
The Indian Markets open at 9:15am and closes at 3:30pm.
The 'time_cond' specifies the time at which Entries should happen .
"Close All" function closes all the trades at 3pm , at the open of the next candle.
To change the time to close all trades , Go to Pine Editor → Edit the line 92 .
All open trades get closed at 3pm , because some brokers don't allow you to place fresh intraday orders after 3pm .
// ═══════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( 100 CLOSED TRADES )<————————— //
// ═══════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to NSE:TCS ( 5 min Time-Frame and contract size 50) gives us 60% profitability , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.8 ,net Profit of 30,000 Rs profit .
Sharpe Ratio : 0.49
Sortino Ratio : 1.4
The graph has a Linear Curve with Consistent Profits.
The INPUTS are as follows,
1) L_Bars —————————> 4
2) R_Bars —————————> 4
3) Volume Break ————> 5
4) Price Cross Ema ——> 100
5) ATR LONG ——————> 2.4
6) ATR SHORT —————> 2.6
7) RISK —————————> 2000
8) Default qty size ——> 50
NSE:TCS
Save it to favorites.
Apply it to your charts Now !!
Thank You ☺ NSE:TCS
1 minute crypto strategy (MTF ZigZag)Please read the following explanation and notes before using this strategy.
This strategy is based on pyramiding. It uses two trend indicators(zigzag) in two different timeframes. One can be used to identify trend in higher timeframe and the other can be used to identify trend in smaller time frame. You can change them according to your preference. The default timeframes are set the same so the strategy only opens the trades according to one timeframe (20min). You can change the timeframe of the trend indicators to any timeframe in the settings but first you should add that timeframe to your chart timeframe so you can see that timeframe in the settings.
The first timeframe is for lower timeframe trend identification and the second timeframe is for higher timeframe identification in the settings.
IMPORTANT NOTES:
1. This strategy works best with low cap high volatile Cryptos. It is riskier on big cap cryptos in long term since it takes longer for them to recover from a big drop.
2. This strategy works in any timeframe. The lower the TF the higher profit.
3. This strategy is LONG only (spot).
4. It is very important to run a deep backtest (for example 1 year) and change the settings accordingly on the cryptos you want to trade to see how it performs in longterm.
5. The default pyramiding value is 30 and 3.33% of the portfolio (100/30=3.33%) is used for each trade. It means the strategy opens maximum 30 trades before the TP is hit. If you change the pyramiding you should also change order size as well in order for the strategy to show the exact calculation (your portfolio amount percentage/pyramiding value=ordersize percentage). If you increase pyramiding value the strategy performs safer in long term.
6. The default TP is 1% and the default SL is 80%. You can change the settings according to the backtest on the coins you want to trade. But it is better not to increase the TP.
7. The indicators don't repaint.
8. Please make sure to backtest and fully understand the way this strategy works before using it.
T&M/E Wave V2Trend and Momentum With Exception Wave Indicator and Strategy:
This strategy is hand made and I have spent days and many hours making it. The strategy is meant to determine the power between buyers and sellers, match the current power with a historic trend (through a moving average statistical equation), and finally volatility (measured with a mix between standard deviation from Bollinger Bands and HPV). Below will be a list of how to determine the inputs for the indicator
**For reference, all numbers, and settings displayed on the input screen are only what I HAVE FOUND to be profitable for my own strategy, Yours will differ. This is not financial advice and I am not a financial advisor. Please do your due diligence and own research before considering taking entries based on this strategy and indicator. I am not advertising investing, trading, or skills untaught, this is simply to help incorporate into your own strategy and improve your trading journey!**
INPUTS:
EV: This is an integer value set to default at 55. This value is equated to the lead value, volatility measurement, and standard deviation between averages
EV 2: This integer is used as the base value and is meant to always be GREATER THEN EV, the default is set at 163. There should be at least a 90+ integer difference between EVs for data accuracy.
EV TYPE & EV TYPE 2: This option only affects the output for the moving average histograms. (and data inserted for strategy)
Volatility Smoothing: This is the smoothness of the custom-made volatility oscillator. I have this default at 1 to show time-worthy-term (3.9%+) moves or significant trends to correspond with the standard deviation declination between EVMA and EVMA2.
Directional Length: This is the amount of data observed per candle in the bull versus bear indicator.
Take Profit: Pre-set takes profit level that is set to 4 but can be adjusted for user experience.
Style:
Base Length: Columns equated using a custom-made statistical equation derived from EV TYPE 2+EV2 to determine a range of differential in historic averages to a micro-scale.
Lead Length: Columns equated using a custom-made statistical equation derived from EV TYPE+EV to determine a range of differential in historic averages to a micro-scale.
Weighted EMA Differential: Equation expressing the differences between exponential and simple averages derived from EV+EV Type 2. Default is displaying none, but optional for use if found helpful.
Volatility: Represents volatility from multiple data sets spanning from Bollinger bands to HPV and translated through smoothing.
Bull Strength: The strength of Bulls in the current trend is derived from a DMI+RSI+MACD equation to represent where the trend lies.
Bear Strength: The strength of Bears in the current trend is derived from a DMI+RSI+MACD equation to represent where the trend lies.
CHEAT CODE'S NOTES:
Do not use this indicator on high leverage. I have personally used this indicator for a week and faced a max of 8% drawdown, albeit painful I was on low leverage and still closed on my take profit level.
85% is not 100% do not overtrade using this indicator's entry conditions if you have made 4 consecutive profitable trades.
Mess around with the input values and let me know if you find an even BETTER hit rate, 30+ entries and a good drawdown!!
V2 UPGRADES:
*Increased Opacity on Bull Bear Columns
*Removed the Stop Loss Input option
*Decreased EV2 to a default of 143 for accuracy
*Added additional disclaimers in the description
* Removed Bull/Bear offset values for accuracy
-Cheat Code
BYBIT:BTCUSDT
Tradesense PremiumTradesense Premium
Tradesense Premium indicator offers a buy & sell signal that is based from our senior analyst who have more than 10years of experience in Forex, Stock and Crypto trading and made it possible by our pine script developers.
Our script can detect market volatility based on the price direction and the absolute value of exponential moving average are multiplied to specific numbers to get a different trading style such as Scalper, Swing Trader and Trend Follower. We also filtered out all the signals using a different known indicators such as RSI, ATR, and ADX, and the results will allow you to enter a trade before the big moves occur. We also included all the important indicator which appears in real-time to get a competitive advantage in any market environment.
If you are a trader for a long time you should know that there is no way to avoid risk in trading. Every single trade could, theoretically at least, end up a loser. That is why our script also provides automatic risk management system which can gives you the ability to know exactly where to take the profit and to stop.
Trading style preset options - Will allows you to get the signals the way you wanted depending on your trading style. Ex. Scalper, Swing Trader or a Trend follower.
Bar color - Our bar colors are based on the price actions which detects the weakness of the bar or if the bar is ranging.
Reversal Zone - This indicator would identify possible price reversal zones.
Support & Resistance - This indicator draw a line at the pivot point to show possible support and resistance area.
Target Profit indicator based on price actions - This indicator will gives you an option to reduce your position or go out of the trade before the reversal happens.
Target Profit / Stop Loss based on ATR - This indicator will gives you a simple but effective risk management system to protect your capital. The TP/SL is based from the ATR.
Alert System - We are giving you an options to customize your alerts.
Our mission is to provide systematic way to build your success.
Release notes: Tradesense Premium V1.1
✅Trading style preset options
✅Bar color
✅Reversal Zone
✅Support & Resistance
✅Target Profit indicator based on price actions
✅Target Profit / Stop Loss based on ATR
✅Alert System
❓Trading style
Currently we have 3 sets of preset options that the user can use.
Scalp - this preset is made for the trader that wants a quick in and out of the trade. The best timeframe to this is 1min to 5mins chart.
Swing - this preset is for the trader who can wait a little bit longer in a trade. The best timeframe to use is 15mins to 1hour chart.
Trend - this preset is made for the busy people that can hold a trade more than a day. The best timeframe to use is 4hours to 1day chart.
❓Bar color
This options will change the color of your bars to lessen the noise of your chart.
Green Color is a bullish indicator
Red Color is a bearish indicator
Orange Color will signify that the trend is weakening
Purple Color is a consolidation/ranging price action
❓Reversal Zone
From the name it self, once the price is already hit the Reversal Zone the price will more likely to reverse or will make a correction.
❓Support & Resistance
When this option is enabled, the support and resistance levels will show up.
❓Target Profit indicator based on price actions
When this option is enabled, you will see a "💰" which means it's time to take profit or reduce your positions.
❓Target Profit / Stop Loss based on ATR
Most of the trader uses ATR as a stop loss level. When this option is enabled, the indicator for Stop Loss and Take Profit will show up and the TP/SL levels can be changed by changing the ATR Multiplier (Default is 1.8).
❓Alert System
Function alert is added and the user can customize it the way they want it.
Bjorgum Double Tap█ OVERVIEW
Double Tap is a pattern recognition script aimed at detecting Double Tops and Double Bottoms. Double Tap can be applied to the broker emulator to observe historical results, run as a trading bot for live trade alerts in real time with entry signals, take profit, and stop orders, or to simply detect patterns.
█ CONCEPTS
How Is A Pattern Defined?
Doubles are technical formations that are both reversal patterns and breakout patterns. These formations typically have a distinctive “M” or a “W” shape with price action breaking beyond the neckline formed by the center of the pattern. They can be recognized when a pivot fails to break when tested for a second time and the retracement that follows breaks beyond the key level opposite. This can trap entrants that were playing in the direction of the prior trend. Entries are made on the breakout with a target projected beyond the neckline equal to the height of the pattern.
Pattern Recognition
Patterns are recognized through the use of zig-zag; a method of filtering price action by connecting swing highs and lows in an alternating fashion to establish trend, support and resistance, or derive shapes from price action. The script looks for the highest or lowest point in a given number of bars and updates a list with the values as they form. If the levels are exceeded, the values are updated. If the direction changes and a new significant point is made, a new point is added to the list and the process starts again. Meanwhile, we scan the list of values looking for the distinctive shape to form as previously described.
█ STRATEGY RESULTS
Back Testing
Historical back testing is the most common method to test a strategy due in part to the general ease of gathering quick results. The underlying theory is that any strategy that worked well in the past is likely to work well in the future, and conversely, any strategy that performed poorly in the past is likely to perform poorly in the future. It is easy to poke holes in this theory, however, as for one to accept it as gospel, one would have to assume that future results will match what has come to pass. The randomness of markets may see to it otherwise, so it is important to scrutinize results. Some commonly used methods are to compare to other markets or benchmarks, perform statistical analysis on the results over many iterations and on differing datasets, walk-forward testing, out-of-sample analysis, or a variety of other techniques. There are many ways to interpret the results, so it is important to do research and gain knowledge in the field prior to taking meaningful conclusions from them.
👉 In short, it would be naive to place trust in one good backtest and expect positive results to continue. For this reason, results have been omitted from this publication.
Repainting
Repainting is simply the difference in behaviour of a strategy in real time vs the results calculated on the historical dataset. The strategy, by default, will wait for confirmed signals and is thus designed to not repaint. Waiting for bar close for entires aligns results in the real time data feed to those calculated on historical bars, which contain far less data. By doing this we align the behaviour of the strategy on the 2 data types, which brings significance to the calculated results. To override this behaviour and introduce repainting one can select "Recalculate on every tick" from the properties tab. It is important to note that by doing this alerts may not align with results seen in the strategy tester when the chart is reloaded, and thus to do so is to forgo backtesting and restricts a strategy to forward testing only.
👉 It is possible to use this script as an indicator as opposed to a full strategy by disabling "Use Strategy" in the "Inputs" tab. Basic alerts for detection will be sent when patterns are detected as opposed to complex order syntax. For alerts mid-bar enable "Recalculate on every tick" , and for confirmed signals ensure it is disabled.
█ EXIT ORDERS
Limit and Stop Orders
By default, the strategy will place a stop loss at the invalidation point of the pattern. This point is beyond the pattern high in the case of Double Tops, or beneath the pattern low in the case of Double Bottoms. The target or take profit point is an equal-legs measurement, or 100% of the pattern height in the direction of the pattern bias. Both the stop and the limit level can be adjusted from the user menu as a percentage of the pattern height.
Trailing Stops
Optional from the menu is the implementation of an ATR based trailing stop. The trailing stop is designed to begin when the target projection is reached. From there, the script looks back a user-defined number of bars for the highest or lowest point +/- the ATR value. For tighter stops the user can look back a lesser number of bars, or decrease the ATR multiple. When using either Alertatron or Trading Connector, each change in the trail value will trigger an alert to update the stop order on the exchange to reflect the new trail price. This reduces latency and slippage that can occur when relying on alerts only as real exchange orders fill faster and remain in place in the event of a disruption in communication between your strategy and the exchange, which ensures a higher level of safety.
👉 It is important to note that in the case the trailing stop is enabled, limit orders are excluded from the exit criteria. Rather, the point in time that the limit value is exceeded is the point that the trail begins. As such, this method will exit by stop loss only.
█ ALERTS
Five Built-in 3rd Party Destinations
The following are five options for delivering alerts from Double Tap to live trade execution via third party API solutions or chat bots to share your trades on social media. These destinations can be selected from the input menu and alert syntax will automatically configure in alerts appropriately to manage trades.
Custom JSON
JSON, or JavaScript Object Notation, is a readable format for structuring data. It is used primarily to transmit data between a server and a web application. In regards to this script, this may be a custom intermediary web application designed to catch alerts and interface with an exchange API. The JSON message is a trade map for an application to read equipped with where its been, where its going, targets, stops, quantity; a full diagnostic of the current state and its previous state. A web application could be configured to follow the messages sent in this format and conduct trades in sync with alerts running on the TV server.
Below is an example of a rendered JSON alert:
{
"passphrase": "1234",
"time": "2022-05-01T17:50:05Z",
"ticker": "ETHUSDTPERP",
"plot": {
"stop_price": 2600.15,
"limit_price": 3100.45
},
"strategy": {
"position_size": 0.1,
"order_action": "buy",
"market_position": "long",
"market_position_size": 0,
"prev_market_position": "flat",
"prev_market_position_size": 0
}
}
Trading Connector
Trading Connector is a third party fully autonomous Chrome extension designed to catch alert webhooks from TradingView and interface with MT4/MT5 to execute live trades from your machine. Alerts to Trading Connector are simple; just select the destination from the input drop down menu, set your ticker in the "TC Ticker" box in the "Alert Strings" section and enter your URL in the alert window when configuring your alert.
Alertatron
Alertatron is an automated algo platform for cryptocurrency trading that is designed to automate your trading strategies. Although the platform is currently restricted to crypto, it offers a versatile interface with high flexibility syntax for complex market orders and conditions. To direct alerts to Alertatron, select the platform from the 3rd party drop down, configure your API key in the ”Alertatron Key” box and add your URL in the alert message box when making alerts.
3 Commas
3 Commas is an easy and quick to use click-and-go third party crypto API solution. Alerts are simple without overly complex syntax. Messages are simply pasted into alerts and executed as alerts are triggered. There are 4 boxes at the bottom of the "Inputs" tab where the appropriate messages to be placed. These messages can be copied from 3 Commas after the bots are set up and pasted directly into the settings menu. Remember to select 3 Commas as a destination from the third party drop down and place the appropriate URL in the alert message window.
Discord
Some may wish to share their trades with their friends in a Discord chat via webhook chat bot. Messages are configured to notify of the pattern type with targets and stop values. A bot can be configured through the integration menu in a Discord chat to which you have appropriate access. Select Discord from the 3rd party drop down menu and place your chat bot URL in the alert message window when configuring alerts.
👉 For further information regarding alert setup, refer to the platform specific instructions given by the chosen third party provider.
█ IMPORTANT NOTES
Setting Alerts
For alert messages to be properly delivered on order fills it is necessary to place the following placeholder in the alert message box when creating an alert.
{{strategy.order.alert_message}}
This placeholder will auto-populate the alert message with the appropriate syntax that is designated for the 3rd party selected in the user menu.
Order Sizing and Commissions
The values that are sent in alert messages are populated from live metrics calculated by the strategy. This means that the actual values in the "Properties" tab are used and must be set by the user. The initial capital, order size, commission, etc. are all used in the calculations, so it is important to set these prior to executing live trades. Be sure to set the commission to the values used by the exchange as well.
👉 It is important to understand that the calculations on the account size take place from the beginning of the price history of the strategy. This means that if historical results have inflated or depleted the account size from the beginning of trade history until now, the values sent in alerts will reflect the calculated size based on the inputs in the "Properties" tab. To start fresh, the user must set the date in the "Inputs" tab to the current date as to remove trades from the trade history. Failure to follow this instruction can result in an unexpected order size being sent in the alert.
█ FOR PINECODERS
• With the recent introduction of matrices in Pine, the script utilizes a matrix to track pivot points with the bars they occurred on, while tracking if that pivot has been traded against to prevent duplicate detections after a trade is exited.
• Alert messages are populated with placeholders ; capability that previously was only possible in alertcondition() , but has recently been extended to `strategy.*()` functions for use in the `alert_message` argument. This allows delivery of live trade values to populate in strategy alert messages.
• New arguments have been added to strategy.exit() , which allow differentiated messages to be sent based on whether the exit occurred at the stop or the limit. The new arguments used in this script are `alert_profit` and `alert_loss` to send messages to Discord
DMT TEMPELTON PECK STRATEGYIntroduction Templeton Peck Strategy Version .
Bring your A-game to the market in A-Team style with DMT Templeton Peck – you’ll love it when this plan comes together!
Using customized standard deviations between historic price action ranges and volume metrics, DMT Templeton Peck enables traders to never miss a change in trend.
In its default state, the DMT Templeton Peck Strategy displays key information, such as:
• Small trend line
• Large trend line
• Position entry prices
• Take profit levels
• Stop levels
• Buy and sell trend signals
In addition to providing core functionality for the indicator’s strategy signals, traders can use this data to enter or exit trades.
When price crosses both trend lines and consolidates there is a high probability that price will continue to move in the same direction. The most profitable results are achieved when trading in the direction of the current large time frame trend.
When small and large trend lines cross a trading signal is generated which can be used to automate trades. Please see the ‘TradingView Alerts’ section of this document for further details.
The Small & Large trend line’s display can be toggled, and their colors modified in the indicator’s style options as shown below.
Basic Strategy
In its simplest form, the strategy is to buy when the price crosses and consolidates above both trend lines and sell when the price crosses and consolidates below both trend lines.
Set amount of first entry to the inputs data.
You can add a commission fee.
Adjust initial capital for your needs.
How to Trade
Confident traders may choose to enter a long position at the point
#1 when the price passes above both trend lines and begins to consolidate.
However, the safer trade is to wait for the trend lines to cross at a point
#2 and then look for an entry in the direction of the local trend.
One price action begins to reverse to the downside the strategy reverses. Confident traders may choose to enter point
#3 when the price passes both trend lines and begins to consolidate once again under the previous price action structure that is now acting as resistance.
A sell signal is generated at the point
#4 which produced a small profit; however, a new short position could have been opened when the price retraced to resistance at a point
#5 and experienced a repeated number of strong rejections.
Do not worry if you miss a trade as there is often more than a single opportunity to enter – like at position #5 when price action retests the previous local price structure as resistance.
The indicator can be used on smaller time frames to scalp or find an entry after a larger time frame has signaled, however smaller time frames will also be “choppy” and should only be traded with a paper-tested strategy.
Traders should take profit on positions at resistance & support levels and look to have fully exited the trade by the time the price crosses back over both trend lines and/or loses a previously established price level.
Indicator Tuning
In its default state, the indicator is tuned for swing trades using 30 minute & 1 hour time frames, however, you are encouraged to experiment with the indicator options.
The input also allows you to set separately longs and shorts for a better view of the trend and to avoid hunts.
Large & Small Length options define how many historic candles are used for the calculation of the relevant trend line.
As a rule of thumb, larger time frames would use smaller values and smaller time frames would use larger values, ie. On a daily chart, a large and small length could be defined as 400 and 100 respectively.
Please be aware that there are limits to the amount of historical data for any intraday level based on your TradingView subscription level:
• Basic – 5000 bars/candles
• Pro & Pro+ - 10000 bars/candles
• Premium – 20000 bars/cables
TradingView Backtest
By utilizing TradingView backtest you can set a specific date for your analysis.
DMT TEMPELTON PECKIntroduction
Bring your A-game to the market in A-Team style with DMT Templeton Peck – you’ll love it when this plan comes together!
Using customized standard deviations between historic price action ranges and volume metrics, DMT Templeton Peck enables traders to never miss a change in trend.
In its default state, the DMT Templeton Peck indicator displays key information, such as:
• Small trend line
• Large trend line
• Position entry prices
• Take profit levels
• Stop levels
• Buy and sell trend signals
In addition to providing core functionality for the indicator’s strategy signals, traders can use this data to enter or exit trades.
When price crosses both trend lines and consolidates there is a high probability that price will continue to move in the same direction. The most profitable results are achieved when trading in the direction of the current large time frame trend.
When small and large trend lines cross a trading signal is generated which can be used to automate trades. Please see the ‘TradingView Alerts’ section of this document for further details.
The Small & Large trend line’s display can be toggled, and their colors modified in the indicator’s style options as shown below.
Basic Strategy
In its simplest form, the strategy is to buy when the price crosses and consolidates above both trend lines and sell when the price crosses and consolidates below both trend lines.
How to Trade
Confident traders may choose to enter a long position at the point
#1 when the price passes above both trend lines and begins to consolidate.
However, the safer trade is to wait for the trend lines to cross at a point
#2 and then look for an entry in the direction of the local trend.
One price action begins to reverse to the downside the strategy reverses. Confident traders may choose to enter point
#3 when the price passes both trend lines and begins to consolidate once again under the previous price action structure that is now acting as resistance.
A sell signal is generated at the point
#4 which produced a small profit; however, a new short position could have been opened when the price retraced to resistance at a point
#5 and experienced a repeated number of strong rejections.
Do not worry if you miss a trade as there is often more than a single opportunity to enter – like at position #5 when price action retests the previous local price structure as resistance.
The indicator can be used on smaller time frames to scalp or find an entry after a larger time frame has signaled, however smaller time frames will also be “choppy” and should only be traded with a paper-tested strategy.
Traders should take profit on positions at resistance & support levels and look to have fully exited the trade by the time the price crosses back over both trend lines and/or loses a previously established price level.
Indicator Tuning
In its default state the indicator is tuned for swing trades using 30 minute & 1 hour time frames, however, you are encouraged to experiment with the indicator options.
Large & Small Length options define how many historic candles are used for the calculation of the relevant trend line.
As a rule of thumb, larger time frames would use smaller values and smaller time frames would use larger values, ie. On a daily chart, a large and small length could be defined as 400 and 100 respectively.
Please be aware that there are limits to the amount of historical data for any intraday level based on your TradingView subscription level:
• Basic – 5000 bars/candles
• Pro & Pro+ - 10000 bars/candles
• Premium – 20000 bars/cables
TradingView Alerts
By utilizing TradingView alerts DMT Templeton Peck's long and short signals can be used to trigger a trading bot.
To trigger a long position, set the TradingView Alert Condition to the DMT Templeton Peck indicator and select the ‘Long’ trigger condition with the ‘Once Per Bar Close’ option for best results.
To trigger a short position, set the TradingView Alert Condition to the DMT Templeton Peck indicator and select the ‘Short’ trigger condition with the ‘Once Per Bar Close’ option for best results.
Take profit options ‘Long_TP_1’ / ‘Short_TP_1’ and Stop options ‘Stop_long’ / ‘Stop_Short’ can also be configured in the same manner to conditionally trigger a trading bot and can be configured in the indicators Input options.
BjCandlePatternsLibrary "BjCandlePatterns"
Patterns is a Japanese candlestick pattern recognition Library for developers. Functions here within detect viable setups in a variety of popular patterns. Please note some patterns are without filters such as comparisons to average candle sizing, or trend detection to allow the author more freedom.
doji(dojiSize, dojiWickSize) Detects "Doji" candle patterns
Parameters:
dojiSize : (float) The relationship of body to candle size (ie. body is 5% of total candle size). Default is 5.0 (5%)
dojiWickSize : (float) Maximum wick size comparative to the opposite wick. (eg. 2 = bottom wick must be less than or equal to 2x the top wick). Default is 2
Returns: (series bool) True when pattern detected
dLab(showLabel, labelColor, textColor) Produces "Doji" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
bullEngulf(maxRejectWick, mustEngulfWick) Detects "Bullish Engulfing" candle patterns
Parameters:
maxRejectWick : (float) Maximum rejection wick size.
The maximum wick size as a percentge of body size allowable for a top wick on the resolution candle of the pattern. 0.0 disables the filter.
eg. 50 allows a top wick half the size of the body. Default is 0% (Disables wick detection).
mustEngulfWick : (bool) input to only detect setups that close above the high prior effectively engulfing the candle in its entirety. Default is false
Returns: (series bool) True when pattern detected
bewLab(showLabel, labelColor, textColor) Produces "Bullish Engulfing" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
bearEngulf(maxRejectWick, mustEngulfWick) Detects "Bearish Engulfing" candle patterns
Parameters:
maxRejectWick : (float) Maximum rejection wick size.
The maximum wick size as a percentge of body size allowable for a bottom wick on the resolution candle of the pattern. 0.0 disables the filter.
eg. 50 allows a botom wick half the size of the body. Default is 0% (Disables wick detection).
mustEngulfWick : (bool) Input to only detect setups that close below the low prior effectively engulfing the candle in its entirety. Default is false
Returns: (series bool) True when pattern detected
bebLab(showLabel, labelColor, textColor) Produces "Bearish Engulfing" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
hammer(ratio, shadowPercent) Detects "Hammer" candle patterns
Parameters:
ratio : (float) The relationship of body to candle size (ie. body is 33% of total candle size). Default is 33%.
shadowPercent : (float) The maximum allowable top wick size as a percentage of body size. Default is 5%.
Returns: (series bool) True when pattern detected
hLab(showLabel, labelColor, textColor) Produces "Hammer" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
star(ratio, shadowPercent) Detects "Star" candle patterns
Parameters:
ratio : (float) The relationship of body to candle size (ie. body is 33% of total candle size). Default is 33%.
shadowPercent : (float) The maximum allowable bottom wick size as a percentage of body size. Default is 5%.
Returns: (series bool) True when pattern detected
ssLab(showLabel, labelColor, textColor) Produces "Star" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
dragonflyDoji() Detects "Dragonfly Doji" candle patterns
Returns: (series bool) True when pattern detected
ddLab(showLabel, labelColor) Produces "Dragonfly Doji" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
Returns: (series label) A label visible at the chart level intended for the title pattern
gravestoneDoji() Detects "Gravestone Doji" candle patterns
Returns: (series bool) True when pattern detected
gdLab(showLabel, labelColor, textColor) Produces "Gravestone Doji" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
tweezerBottom(closeUpperHalf) Detects "Tweezer Bottom" candle patterns
Parameters:
closeUpperHalf : (bool) input to only detect setups that close above the mid-point of the candle prior increasing its bullish tendancy. Default is false
Returns: (series bool) True when pattern detected
tbLab(showLabel, labelColor, textColor) Produces "Tweezer Bottom" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
tweezerTop(closeLowerHalf) Detects "TweezerTop" candle patterns
Parameters:
closeLowerHalf : (bool) input to only detect setups that close below the mid-point of the candle prior increasing its bearish tendancy. Default is false
Returns: (series bool) True when pattern detected
ttLab(showLabel, labelColor, textColor) Produces "TweezerTop" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
spinningTopBull(wickSize) Detects "Bullish Spinning Top" candle patterns
Parameters:
wickSize : (float) input to adjust detection of the size of the top wick/ bottom wick as a percent of total candle size. Default is 34%, which ensures the wicks are both larger than the body.
Returns: (series bool) True when pattern detected
stwLab(showLabel, labelColor, textColor) Produces "Bullish Spinning Top" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
spinningTopBear(wickSize) Detects "Bearish Spinning Top" candle patterns
Parameters:
wickSize : (float) input to adjust detection of the size of the top wick/ bottom wick as a percent of total candle size. Default is 34%, which ensures the wicks are both larger than the body.
Returns: (series bool) True when pattern detected
stbLab(showLabel, labelColor, textColor) Produces "Bearish Spinning Top" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
spinningTop(wickSize) Detects "Spinning Top" candle patterns
Parameters:
wickSize : (float) input to adjust detection of the size of the top wick/ bottom wick as a percent of total candle size. Default is 34%, which ensures the wicks are both larger than the body.
Returns: (series bool) True when pattern detected
stLab(showLabel, labelColor, textColor) Produces "Spinning Top" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
morningStar() Detects "Bullish Morning Star" candle patterns
Returns: (series bool) True when pattern detected
msLab(showLabel, labelColor, textColor) Produces "Bullish Morning Star" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
eveningStar() Detects "Bearish Evening Star" candle patterns
Returns: (series bool) True when pattern detected
esLab(showLabel, labelColor, textColor) Produces "Bearish Evening Star" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
haramiBull() Detects "Bullish Harami" candle patterns
Returns: (series bool) True when pattern detected
hwLab(showLabel, labelColor, textColor) Produces "Bullish Harami" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
haramiBear() Detects "Bearish Harami" candle patterns
Returns: (series bool) True when pattern detected
hbLab(showLabel, labelColor, textColor) Produces "Bearish Harami" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
haramiBullCross() Detects "Bullish Harami Cross" candle patterns
Returns: (series bool) True when pattern detected
hcwLab(showLabel, labelColor, textColor) Produces "Bullish Harami Cross" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
haramiBearCross() Detects "Bearish Harami Cross" candle patterns
Returns: (series bool) True when pattern detected
hcbLab(showLabel, labelColor) Produces "Bearish Harami Cross" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
Returns: (series label) A label visible at the chart level intended for the title pattern
marubullzu() Detects "Bullish Marubozu" candle patterns
Returns: (series bool) True when pattern detected
mwLab(showLabel, labelColor, textColor) Produces "Bullish Marubozu" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
marubearzu() Detects "Bearish Marubozu" candle patterns
Returns: (series bool) True when pattern detected
mbLab(showLabel, labelColor, textColor) Produces "Bearish Marubozu" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
abandonedBull() Detects "Bullish Abandoned Baby" candle patterns
Returns: (series bool) True when pattern detected
abwLab(showLabel, labelColor, textColor) Produces "Bullish Abandoned Baby" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
abandonedBear() Detects "Bearish Abandoned Baby" candle patterns
Returns: (series bool) True when pattern detected
abbLab(showLabel, labelColor, textColor) Produces "Bearish Abandoned Baby" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
piercing() Detects "Piercing" candle patterns
Returns: (series bool) True when pattern detected
pLab(showLabel, labelColor, textColor) Produces "Piercing" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
darkCloudCover() Detects "Dark Cloud Cover" candle patterns
Returns: (series bool) True when pattern detected
dccLab(showLabel, labelColor, textColor) Produces "Dark Cloud Cover" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
tasukiBull() Detects "Upside Tasuki Gap" candle patterns
Returns: (series bool) True when pattern detected
utgLab(showLabel, labelColor, textColor) Produces "Upside Tasuki Gap" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
tasukiBear() Detects "Downside Tasuki Gap" candle patterns
Returns: (series bool) True when pattern detected
dtgLab(showLabel, labelColor, textColor) Produces "Downside Tasuki Gap" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
risingThree() Detects "Rising Three Methods" candle patterns
Returns: (series bool) True when pattern detected
rtmLab(showLabel, labelColor, textColor) Produces "Rising Three Methods" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
fallingThree() Detects "Falling Three Methods" candle patterns
Returns: (series bool) True when pattern detected
ftmLab(showLabel, labelColor, textColor) Produces "Falling Three Methods" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
risingWindow() Detects "Rising Window" candle patterns
Returns: (series bool) True when pattern detected
rwLab(showLabel, labelColor, textColor) Produces "Rising Window" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
fallingWindow() Detects "Falling Window" candle patterns
Returns: (series bool) True when pattern detected
fwLab(showLabel, labelColor, textColor) Produces "Falling Window" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
kickingBull() Detects "Bullish Kicking" candle patterns
Returns: (series bool) True when pattern detected
kwLab(showLabel, labelColor, textColor) Produces "Bullish Kicking" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
kickingBear() Detects "Bearish Kicking" candle patterns
Returns: (series bool) True when pattern detected
kbLab(showLabel, labelColor, textColor) Produces "Bearish Kicking" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
lls(ratio) Detects "Long Lower Shadow" candle patterns
Parameters:
ratio : (float) A relationship of the lower wick to the overall candle size expressed as a percent. Default is 75%
Returns: (series bool) True when pattern detected
llsLab(showLabel, labelColor, textColor) Produces "Long Lower Shadow" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
lus(ratio) Detects "Long Upper Shadow" candle patterns
Parameters:
ratio : (float) A relationship of the upper wick to the overall candle size expressed as a percent. Default is 75%
Returns: (series bool) True when pattern detected
lusLab(showLabel, labelColor, textColor) Produces "Long Upper Shadow" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
bullNeck() Detects "Bullish On Neck" candle patterns
Returns: (series bool) True when pattern detected
nwLab(showLabel, labelColor, textColor) Produces "Bullish On Neck" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
bearNeck() Detects "Bearish On Neck" candle patterns
Returns: (series bool) True when pattern detected
nbLab(showLabel, labelColor, textColor) Produces "Bearish On Neck" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
soldiers(wickSize) Detects "Three White Soldiers" candle patterns
Parameters:
wickSize : (float) Maximum allowable top wick size throughout pattern expressed as a percent of total candle height. Default is 5%
Returns: (series bool) True when pattern detected
wsLab(showLabel, labelColor, textColor) Produces "Three White Soldiers" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
crows(wickSize) Detects "Three Black Crows" candle patterns
Parameters:
wickSize : (float) Maximum allowable bottom wick size throughout pattern expressed as a percent of total candle height. Default is 5%
Returns: (series bool) True when pattern detected
bcLab(showLabel, labelColor, textColor) Produces "Three Black Crows" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
triStarBull() Detects "Bullish Tri-Star" candle patterns
Returns: (series bool) True when pattern detected
tswLab(showLabel, labelColor, textColor) Produces "Bullish Tri-Star" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
triStarBear() Detects "Bearish Tri-Star" candle patterns
Returns: (series bool) True when pattern detected
tsbLab(showLabel, labelColor, textColor) Produces "Bearish Tri-Star" identifier label
Parameters:
showLabel : (bool) Shows label when input is true. Default is false
labelColor : (series color) Color of the label border and arrow
textColor : (series color) Text color
Returns: (series label) A label visible at the chart level intended for the title pattern
wrap(cond, barsBack, borderColor, bgcolor) Produces a box wrapping the highs and lows over the look back.
Parameters:
cond : (series bool) Condition under which to draw the box.
barsBack : (series int) the number of bars back to begin drawing the box.
borderColor : (series color) Color of the four borders. Optional. The default is color.gray.
bgcolor : (series color) Background color of the box. Optional. The default is color.gray.
Returns: (series box) A box who's top and bottom are above and below the highest and lowest points over the lookback
topWick() returns the top wick size of the current candle
Returns: (series float) A value equivelent to the distance from the top of the candle body to its high
bottomWick() returns the bottom wick size of the current candle
Returns: (series float) A value equivelent to the distance from the bottom of the candle body to its low
body() returns the body size of the current candle
Returns: (series float) A value equivelent to the distance between the top and the bottom of the candle body
highestBody() returns the highest body of the current candle
Returns: (series float) A value equivelent to the highest body, whether it is the open or the close
lowestBody() returns the lowest body of the current candle
Returns: (series float) A value equivelent to the highest body, whether it is the open or the close
barRange() returns the height of the current candle
Returns: (series float) A value equivelent to the distance between the high and the low of the candle
bodyPct() returns the body size as a percent
Returns: (series float) A value equivelent to the percentage of body size to the overall candle size
midBody() returns the price of the mid-point of the candle body
Returns: (series float) A value equivelent to the center point of the distance bewteen the body low and the body high
bodyupGap() returns true if there is a gap up between the real body of the current candle in relation to the candle prior
Returns: (series bool) true if there is a gap up and no overlap in the real bodies of the current candle and the preceding candle
bodydwnGap() returns true if there is a gap down between the real body of the current candle in relation to the candle prior
Returns: (series bool) true if there is a gap down and no overlap in the real bodies of the current candle and the preceding candle
gapUp() returns true if there is a gap down between the real body of the current candle in relation to the candle prior
Returns: (series bool) true if there is a gap down and no overlap in the real bodies of the current candle and the preceding candle
gapDwn() returns true if there is a gap down between the real body of the current candle in relation to the candle prior
Returns: (series bool) true if there is a gap down and no overlap in the real bodies of the current candle and the preceding candle
dojiBody() returns true if the candle body is a doji
Returns: (series bool) true if the candle body is a doji. Defined by a body that is 5% of total candle size
Heikin Ashi Trailing Stoploss ActivationThe Basics
This indicator should be used on regular candle sticks. It is possible to trigger an alert, when the block flips from red to green bar. Or vice versa.
Red block represents a red Heikin Ashi candle.
Green block for green Heikin Ashi candle.
It can be used as a trailing stoploss for (DCA/ TV) bots, when riding trends.
What Makes It Different
The user can preset the price (of the asset e.g. BTC), where it will start looking for Heikin Ashi flips. Every Heikin Ashi flip before this preset price will be ignored. Preset prices could be chosen tactically at resistance levels.
Different time frames of Heikin Ashi flips can be used together. E.g. 10 min, 3 hour or 2 Day time frames. If this is possible within your Tradingview subscription.
Example
The user has a long position (bought at the green arrow.) The user wants to start trailing at price 88 USDT (blue line).
The indicator will only trigger when the following conditions are met:
Cross of red block on the indicator (representing red Heikin Ashi candle)
Price has crossed 88 USDT
If the candlestick turns from a green to a red block, before crossing 88 USDT. It will NOT trigger the alert. Visible as the orange down arrows. In the indicator below it is displayed as a red block.The alert will go off at the red down arrow on 10th Nov (if chosen for Once per bar close). The price condition of 88 USDT was already met at 7th Nov.
Final Words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
Supertrend NinjaSupertrend Ninja
The Basics
The Supertrend Ninja is a trend-following indicator. The indicator is optimised for daily, 2 days and 3 days candlesticks and can be used on varying trending markets.
Supertrend Ninja using 2 days candlesticks only gave 7 bullish signals in 2020 and 2 in 2021 for Bitcoin/USDT (based on Binance charts). Greatly reducing false signals. It can be used on lower time frames as well, although you will encounter more noise.
This indicator could be used as a compass for DCA or TV bots as well.
What To Look For
When the background of the candlestick closes green with an upwards pointing pink arrow. It indicates a possible bullish (up)trend. To enter a trade its best to place an order a few ticks above the candle high. This way we only enter a position, when there is trend continuation.
When the background of the candlestick closes red with a downwards pointing black arrow. It indicates a possible bearish (down)trend. To enter a trade its best to place an order a few ticks below the candle low.
Exits can be determined by Fibonacci extensions, orderblocks or other resistances to name a few. Or exit the trade when the opposite background color appears.
Final words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
ms hypersupertrendThis is a well-known strategy by using 3 different Supertrends and a trend-defining EMA,
feel free to play around with the settings, a backtest on 8h ETHUSDT pair brought some good results using
the 233EMA and investing 75% of a 10k start capital
the idea is to have at least 2 super trends going green above the trend-EMA to go long and exit by turning
2 super trends red (idea: 1 super trend in red could initialize a take profit)
shorts work vice versa
The EMA shows in green for uptrends and in red for downtrends, if it is blue no Signal will be taken because
the 3 super trends are not all above or below the trendline(EMA)
//-------------------------------------------------------------------------------------------------------------------------------------------------
Update 1:
- Fixed a minor input error
- Added ATR stoploss, and commented out the percentage stop loss
- Added time window to backtest
- Added exit on risk/reward is met
- This version is only buy...wait for next update adding shorts and more
As always, thanks for your ideas, likes, and support. Feel free to mess around with the settings and give me your feedback.
Profit Maxima: a crypto strategyThis strategy is designed for those who are looking for long-term positions with low risk and high profitability.
How does it work?
In short, the basis of this strategy is the frequent modeling of the price using regression equations and the estimation of the range of price movements.
The price modeling process starts from the first bars and will be repeated on each bar. This process is performed in each candle based on the data available up to that candle, and data for subsequent bars is not used.
There is also no fixed price model, but it will change from one candle to the next; Therefore, the more candles there are, the larger the statistical population and therefore the quality of the price model increases.
I have also used the concept of scarcity. Bitcoin is the first scarce digital object in the world. Once something becomes scarce enough, it can be used as money. This scarcity gradually increases and affects the price. The entire crypto market also follows Bitcoin.
However, always remember that past results in no way guarantee future performance.
Why this strategy generates a small number of trades?
Preston Pysh believed Bitcoin cycles happen in three phases: the Bull Run, the Correction, and the Reversion to the Mean. He estimates there are about 200,000 blocks per cycle and there are about 144 blocks per day.
Therefore, each cycle of Bitcoin lasts about four years. The entire crypto market follows bitcoin. On the other hand, cryptocurrency is a new phenomenon. They have a limited price history.
This strategy is designed to open a long position at the lowest possible price. In addition, due to the concept of scarcity and its continued impact on prices, trading in the “short” direction is avoided.
The combination of these factors leads to generate a small number of trades. However, you can test it on several different charts to make sure it works properly.
Default settings
{ default_qty_type } = strategy.percent_of_equity
{ default_qty_value } = 3.3
{ commission_value } = 0.1
{ pyramiding } = 3
{ close_entries_rule } = "ANY"
In a simple word, buy (Entry) and sell (take-profit) orders are each done at three different levels. At each level, 3.3% of equity is used (9.9% in total)
0.1% commission is considered for each transaction.
“close_entries_rule” determines the order in which orders are closed. The default is FIFO (first in, first out), but in this strategy, orders are executed in “first in, last out” order. In this way, the lowest buy (Entry) order corresponds to the lowest sell (take profit) order.
Choose the best chart
Charts have a significant impact on the performance of the strategy. As mentioned, the more historical bars there are, the larger the statistical population and therefore the quality of the price model increases.
You can use the Chart Quality panel to choose the appropriate chart:
The ‘Historical Bars’ field shows the number of candles in the chart. Choose the chart of an exchange that has the most historical bars.
The ‘Recommended Chart’ field shows the suggested chart for some symbols.
The “Predictability” field indicates to what extent price movements can be predicted using the model; the higher the “predictability”, the more credible the results of the strategy. "Predictability" indicates that the results of the strategy are reliable or not.
The image below shows the recommended chart for 20 different symbols:
How to use
You don't need automated trading platforms to use it. It can be used by placing simple buy and sell (take-profit) orders manually.
The green and red lines indicate the 'Entry' and 'Profit' levels respectively. If there is no order (buy / sell) active on one of these levels, it will be displayed in gray. The corresponding values are displayed in the Entry & Profit Limits table.
After choosing the appropriate chart, you can use this table to place your orders manually.
Note that trading in the "short" direction is not recommended at all.
Samples
Bjorgum Key Levels
Key Levels Aims to capture 3 of the most significant points in price action
Breakouts
False Breakouts (Traps)
Back Checks
These 3 points alone, if properly identified, can be some of the most significant points of movement in the price history of an asset and bring significant gains to traders, if capitalized on. Here are a few examples of these setups
Breakouts
Breakouts can bring significant rallies as the market swings one sided after key levels are breached. This entry type can bring large trending runs to follow. Momentum is on your side, but the trade off is a higher entry.
False Breakouts
Also known as a bull trap or a bear trap, false breaks can lead to swift and significant reversals and potential for a large and sudden move to the opposite side. When a key level breakout fails to hold, parties entering to capitalize on the "epic breakout" can get left holding the bag forcing them to exit at a loss, which can double the force of pressure. Traps can bring swift gains from good entry prices. However, price is still in a larger trend against you so momentum is weak, so price action is susceptible to roll over.
Backchecks
Back checks are pull backs in trend that find middle ground to the 2 areas already described. Both momentum and entry price are decent, but risk is defined as a key level has flipped offering entry with stops below demand, or above supply.
Combining these 3 methods helps to diversify risk, understand trend development, and bring steady gains. This script helps to identify these points to traders with analysis of key levels, price structure, and trend direction, while providing visual signals and alerts for when they occur.
Best of luck in your coding and trading and thank you for your support