3-Signal Directional Trend Strategy for E-MinisThis is a conceptual strategy intended for E-mini S&P 500 futures with hourly bars.
It uses three signals, going long or short when two or more change in the same direction.
First is MACD. A positive oscillator is considered a bullish signal and a falling oscillator is interpreted bearishly.
Next, stochastics are used as an overbought/oversold indicator. Overbought conditions are considered bearish and oversold readings are viewed as bullish.
Third is a custom indicator based on our Moving Average Speed script. It takes the rate of change of the 50-hour simple moving average (SMA), and then smooths it using a 10-period average. This provides a directional signal.
Traders may want to experiment with different settings for moving average speed.
Note: This is intended for use with stock index futures, which have round-the clock price data to populate the data in the indicators. It may not yield good results with stocks or ETFs.
TradeStation has, for decades, advanced the trading industry, providing access to stocks, options, futures and cryptocurrencies. See our Overview for more.
Important Information
TradeStation Securities, Inc., TradeStation Crypto, Inc., and TradeStation Technologies, Inc. are each wholly owned subsidiaries of TradeStation Group, Inc., all operating, and providing products and services, under the TradeStation brand and trademark. TradeStation Crypto, Inc. offers to self-directed investors and traders cryptocurrency brokerage services. It is neither licensed with the SEC or the CFTC nor is it a Member of NFA. When applying for, or purchasing, accounts, subscriptions, products, and services, it is important that you know which company you will be dealing with. Please click here for further important information explaining what this means.
This content is for informational and educational purposes only. This is not a recommendation regarding any investment or investment strategy. Any opinions expressed herein are those of the author and do not represent the views or opinions of TradeStation or any of its affiliates.
Investing involves risks. Past performance, whether actual or indicated by historical tests of strategies, is no guarantee of future performance or success. There is a possibility that you may sustain a loss equal to or greater than your entire investment regardless of which asset class you trade (equities, options, futures, or digital assets); therefore, you should not invest or risk money that you cannot afford to lose. Before trading any asset class, first read the relevant risk disclosure statements on the Important Documents page, found here: www.tradestation.com .
Penunjuk dan strategi
Yesterday's High v.17.07Yesterday’s High Breakout it is a trading system based on the analysis of yesterday's highs, it works in trend-following mode therefore it opens a long position at the breakout of yesterday's highs even if they occur several times in one day.
There are several methods for exiting a trade, each with its own unique strategy. The first method involves setting Take-Profit and Stop-Loss percentages, while the second utilizes a trailing-stop with a specified offset value. The third method calls for a conditional exit when the candle closes below a reference EMA.
Additionally, operational filters can be applied based on the volatility of the currency pair, such as calculating the percentage change from the opening or incorporating a gap to the previous day's high levels. These filters help to anticipate or delay entry into the market, mitigating the risk of false breakouts.
In the specific case of INJ, a 12% Take-Profit and a 1.5% Stop-Loss were set, with an activated trailing-stop percentage, TRL 1 and OFF 0.5.
To postpone entry and avoid false breakouts, a 1% gap was added to the price of yesterday's highs.
Name: Yesterday's High Breakout - Trend Follower Strategy
Author: @tumiza999
Category: Trend Follower, Breakout of Yesterday's High.
Operating mode: Spot or Futures (only long).
Trade duration: Intraday.
Timeframe: 30M, 1H, 2H, 4H
Market: Crypto
Suggested usage: Short-term trading, when the market is in trend and it is showing high volatility.
Entry: When there is a breakout of Yesterday's High.
Exit: Profit target or Trailing stop, Stop loss or Crossunder EMA.
Configuration:
- Gap to anticipate or postpone the entry before or after the identified level
- Rate of Change for Entry Condition
- Take Profit, Stop Loss and Trailing Stop
- EMA length
Backtesting:
⁃ Exchange: BINANCE
⁃ Pair: INJUSDT
⁃ Timeframe: 4H
- Treshold: 1
- Gap%: 1
- SL: 1.5
- TP:12
- TRL: 1
- OFF-TRL: 0.5
⁃ Fee: 0.075%
⁃ Slippage: 1
- Initial Capital: 10000 USDT
- Position sizing: 10% of Equity
- Start : 2018-07-26 (Out Of Sample from 2022-12-23)
- Bar magnifier: on
Credits: LucF for Pine Coders (f_security function to avoid repainting using security)
Disclaimer: Risk Management is crucial, so adjust stop loss to your comfort level. A tight stop loss can help minimise potential losses. Use at your own risk.
How you or we can improve? Source code is open so share your ideas!
Leave a comment and smash the boost button!
Thanks for your attention, happy to support the TradingView community.
SuperTrend Enhanced Pivot Reversal - Strategy [PresentTrading]
- Introduction and How it is Different
The SuperTrend Enhanced Pivot Reversal is a unique approach to trading that combines the best of two worlds: the precision of pivot reversal points and the trend-following power of the SuperTrend indicator. This strategy is designed to provide traders with clear entry and exit points, while also filtering out potentially false signals using the SuperTrend indicator.
BTCUSDT 6hr
ETHBTC 6hr
Unlike traditional pivot reversal strategies, this approach uses the SuperTrend indicator as a filter. This means that it only takes trades that align with the overall trend, as determined by the SuperTrend indicator. This can help to reduce the number of false signals and improve the overall profitability of the strategy.
The Pivot Reversal Strategy with SuperTrend Filter is particularly well-suited to the cryptocurrency market for the reason of High Volatility. This means that prices can change rapidly in a very short time, making it possible to make a profit quickly. The strategy's use of pivot points allows traders to take advantage of these rapid price changes by identifying potential reversal points
- Strategy: How it Works
The strategy works by identifying pivot reversal points, which are points in the price chart where the price is likely to reverse. These points are identified using a combination of the ta.pivothigh and ta.pivotlow functions, which find the highest and lowest points in the price chart over a certain period.
Once a pivot reversal point is identified, the strategy checks the direction of the SuperTrend indicator. If the SuperTrend is positive (indicating an uptrend), the strategy will only take long trades. If the SuperTrend is negative (indicating a downtrend), the strategy will only take short trades.
The strategy also includes a stop loss level, which is set as a percentage of the entry price. This helps to limit potential losses if the price moves in the opposite direction to the trade.
- Trade Direction
The trade direction can be set to "Long", "Short", or "Both". This allows the trader to choose whether they want to take only long trades (buying low and selling high), only short trades (selling high and buying low), or both. This can be useful depending on the trader's view of the market and their risk tolerance.
- Usage
To use the Pivot Reversal Strategy with SuperTrend Filter, simply input the desired parameters into the script and apply it to the price chart of the asset you wish to trade. The strategy will then identify potential trade entry and exit points, which will be displayed on the price chart.
- Default Settings
The default settings for the strategy are as follows:
ATR Length: 5
Factor: 2.618
Trade Direction: Both
Stop Loss Level: 20%
Commission: 0.1%
Slippage: 1
Currency: USD
Each trade: 10% of account equity
Initial capital: $10,000
These settings can be adjusted to suit the trader's preferences and risk tolerance. Always remember to test any changes to the settings using historical data before applying them to live trades.
Master Trend ReversalThe 'Master Trend Reversal' strategy is an innovative approach to detecting trend reversals in the market. This strategy harnesses the power of 'Pin Bars', a specific type of candlestick, to pinpoint potential trading opportunities.
Based on the properties of Pin Bars, this strategy identifies scenarios where the market is likely to reverse its trend. In particular, it seeks out Pin Bars that are significantly longer than their surrounding candles, a length determined by the 'Pin Bar Size (%)' parameter.
When a bullish Pin Bar is detected (i.e., the closing price is lower than the opening price, and the gap between the opening and low prices exceeds the specified Pin Bar size), the strategy goes long. Conversely, upon identifying a bearish Pin Bar (the closing price is higher than the opening price, and the difference between the high and opening prices is greater than the specified Pin Bar size), the strategy goes short.
Furthermore, 'Master Trend Reversal' incorporates an efficient risk management mechanism via stop-loss orders. The stop-loss level is calculated based on the average price of the position and the 'Stop Loss Percentage (%)' as specified by the user.
Hence, the 'Master Trend Reversal' strategy offers a unique approach to capitalize on market trend reversals while limiting potential losses through the use of stop-loss orders. This combination of precise trend reversal detection and robust risk management makes this strategy particularly useful for traders seeking to maximize their profits while effectively controlling their risk exposure.
Please remember that, like any trading strategy, 'Master Trend Reversal' does not guarantee success and should be used as part of a holistic risk management approach in the markets.
Blockunity Divinetrend (BDT)A formidable trend-following indicator, based on an ATR combined with a trailing stop mechanism. Divinetrend’s aim is to offer a simple and efficient alternative to Supertrend, another highly reputed indicator of the same type. It comes with a trading strategy that can be activated in its parameters. You can also change a number of design parameters.
Divinetrend is pretty straightforward in its approach. It calculates a base moving average taking into account the asset’s volatility, multiplies it with an ATR, then displays a line representing a trailing stop. When a red line is broken, the asset is considered to be moving back into an uptrend. Inversely, when a green line is broken, a bearish signal is sent. In the parameters, you can also activate a trend contestation period. If this parameter is activated, the price must have been trending for at least 5 days for the trend change to be validated.
Usage Advice
We recommend that you do not use this indicator with a time unit of less than 2 hours. Ideally in 4 hours or daily, or even 3 days. Otherwise, there’s nothing special about the use of this indicator. We still recommend that you use your logarithmic chart for a better visualization, but this is optional.
This indicator was designed in particular for the crypto market, but it also works on traditional market assets.
The Different Signals
Divinetrend gives buy and sell signals based on trailing stop line breaks and trend orientation. In particular, it can be used for trend identification and following. If the Contested Trend option is activated in the settings, the indicator will also display a contested period in blue. In this case, it is necessary to wait 5 days for the trend to be validated.
Integrated Strategy
In addition, a trading strategy is integrated into the Divinetrend indicator. This can be activated in the parameters. This is mainly there to see the results and the relevance of the indicator in the TradingView Strategy Tester. We do not recommend using it alone. As this strategy is used to study the indicator's performance, we use the following default parameters: An initial capital of 2,000 USDT with 100% of equity in order size. In other words, we'll bet the entire portfolio on each trade. To do this, we use a default stop loss of 10%, to avoid risking heavy losses. We also use a commission of 0.01% and a slippage of 3 ticks to reflect more reality.
[Volume Profile] Signal Clean Up Analysis with Backtest (TSO) This is a full-cycle trading system indicator, which uses Volume Profile for generating signals using a custom developed algorithm, TP (Take Profit) and SL (Stop Loss) levels. There are 2 SOURCES for signals (each can be used separately or both can be used at the same time, each signal SOURCE is using Volume Profile levels to open optimal trade direction) with chained (NOTE: You can select several or ALL of the features, this is not limited to either one) signal cleanup and analysis approach with scheduling and alerting capabilities. Works with most popular timeframes: 1M, 5M, 15M, 1H, 4H, D, great for intraday trading!
NOTE: Every calculation is done on a confirmed closed candle bar state, so the indicator will never repaint!
===========================================================================
Explanation of all the Features | Configuration Guide | Indicator Settings | Signal Cleanup Analysis
---------------------------------------------------------------------------
>>> Customizable Backtesting for a specific date range, results via TradingView strategy, which includes “Deep Backtesting” for largest amounts of data on trading results.
>>> Trading Schedule with customizable trading daily time range, automatic closing/alert trades before Power Hour or right before market closes or leave it open until next day.
>>> 3 Trading Systems.
>>> Multiple Signal SOURCEs for opening trades, either SOURCE can be used or both at the same time!
>>> Static/Dynamic Stop-Loss setups (HIGHLIGHT: Stop-Loss will be moved to Entry after TP1 is taken, which minimizes risk).
>>> Single or Multiple profit targets (up to 3).
>>> Take-Profit customizable offset feature (set your Take-Profit targets slightly before everyone is expecting it!).
>>> Candle bar signal analysis (matching candle color, skip opposite structured and/or doji candle uncertain signals).
>>> Additional analysis of VWAP/EMA/ATR/EWO (Elliot Wave Oscillator)/Divergence MACD+RSI/Volume signal confirmation (clean up your chart with indicator showing only the best potential signals!).
>>> Advanced Alerts setup, which can be potentially setup with a trading bot over TradingView Webhook (NOTE: This will require advanced programming knowledge).
===========================================================================
Labels, plots, colors explanations:
---------------------------------------------------------------------------
>>>>> Signal SOURCE(s): Green/Red arrows, which will be shown unconditionally, outside of trade engine and can be hidden if desired.
>>>>> LONG open: green "house" looking arrow below candle bar.
>>>>> SHORT open: red "house" looking arrow above candle bar.
>>>>> LONG/SHORT take-profit target: green/red circles (multi-profit > TP2/3/4/5 smaller circles).
>>>>> LONG/SHORT take-profit hits: green/red diamonds.
>>>>> LONG/SHORT stop-loss target: green/red + crosses.
>>>>> LONG/SHORT stop-loss hits: green/red X-crosses.
>>>>> LONG/SHORT EOD close (profitable trade): green/red squares.
>>>>> LONG/SHORT EOD close (loss trade): green/red PLUS(+)-crosses.
===========================================================================
Date Range and Trading Schedule Settings
---------------------------------------------------------------------------
>>>>> Date Range: Select your start and/or end dates (uncheck “End” for indicator to show results up to the very moment and to use for LIVE trading) for backtesting results, if not using backtesting – uncheck “Start”/“End” to turn it off.
>>>>> Use TradingView “Strategy Tester” to see backtesting results
NOTE: If Strategy Tester does not show any results with Date Ranged fully unchecked, there may be an issue where a script opens a trade, but there is not enough TradingView power to set the Take-Profit and Stop-Loss and somehow an open trade gets stuck and never closes, so there are “no trades present”. In such case you will need to manually check “Start”/“End” dates or use “Depp Backtesting” feature!
>>>>> Trading Schedule: This is where you can setup Intraday Session or any custom session schedule you wish. Turn it ON. Select trading hours. Select EOD (End of Day) setting (NOTE: If it will be OFF, the indicator will assume you are holding your position open until next day!).
>>> Trading Systems: 1) "Open Until Closed by TP or SL": the signal will only open a trade if no trades are currently open/trunning, a trade can only be closed by Take Profit, Stop Loss or End of Day close (if turned on) | 2) "Open Until Closed by TP or SL + OCA": Same as 1), but if there is an opposite signal to the trade which is currently open > it will immediately be closed with new trade open or End of Day close (if turned on) | 3) "OCA (no TP or SL)": There are is Take Profit or Stop Loss, only an opposite signal will close current trade and open an opposite one or End of Day close (if turned on)
>>>>> MULTIPROFIT | TP (Take-Profit) System: Once the trade is open, all Take-Profit target(s) are immediately calculated and set for the trade > once the target(s) is hit > trade will be partially closed (if candle bar closes beyond several Take-Profit targets > trade will be reduced accordingly to the amount of how many Take-Profit targets were hit)
>>>>> MULTIPROFIT | SL (Stop-Loss) System: 1) Static – Once the trade is open, Stop-Loss is calculated and set for the remaining of the trade ||| 2) Dynamic – At trade open, Stop-Loss is calculated and set the same way, however once 1st Take-Profit is taken > Stop-Loss is moved to Entry, reducing the risk.
>>>>> # of TPs (number of take profit targets): Just like it is named, this is where you select the number of Take-Profit targets for your trading system (NOTE: If "OCA (no TP or SL)" Trading System is selected, this setting won’t do anything, since there are no TP or SLs for that system).
>>>>> TP(s) offset: This is a special feature for all Take-Profit targets, where you can turn on a customizable offset, so that if the price is almost hitting the Take-Profit target, but never actually touches it > you will capture it. This is good to use with HHLL (Highest High Lowest Low), which is pretty much a Support/Resistance as often the price will nearly touch these strong areas and turn around…
===========================================================================
Take-Profit and Stop-Loss visual example:
---------------------------------------------------------------------------
1) A simply nice intraday trading day for SPY (S&P500 ETF TRUST) with a single Take-Profit target on each trade.
See how Take-Profit distances increase with price momentum and how Stop-Loss is following the trade reducing the risk!
2) Same intraday trading day for SPY (S&P500 ETF TRUST) with 3 Take-Profit targets with static Stop-Loss.
3) Same intraday trading day for SPY (S&P500 ETF TRUST) with 3 Take-Profit targets with dynamic Stop-Loss.
You can see how Stop-Loss was moved once TP1 is taken!
===========================================================================
Trade Analysis and Cleanup Settings
---------------------------------------------------------------------------
>>>>> Candle Analysis | Candle Color signal confirmation: If closed candle bar color does not match the signal direction > no trade will be open.
>>>>> Candle Analysis | Skip opposite candle signals: If closed candle bar color will match the signal direction, but candle structure will be opposite (for example: bearish green hammer, long high stick on top of a small green square) > no trade will be open.
>>>>> Candle Analysis | Skip doji candle signals: If closed candle bar will be the uncertain doji > no trade will be open.
>>>>> Divergence/Oscillator Analysis | EWO (Elliot Wave Oscillator) signal confirmation: LONG will only be open if at signal, EWO is green or will be at bullish slope (you can select which setting you desire), SHORT if EWO is red or will be at bearish slope.
>>>>> Divergence/Oscillator Analysis | VWAP signal confirmation: LONG will only be open if at signal, the price will be above VWAP, SHORT if below.
>>>>> Divergence/Oscillator Analysis | Moving Average signal confirmation: LONG will only be open if at signal, the price will be above selected Moving Average, SHORT if below.
>>>>> Divergence/Oscillator Analysis | ATR signal confirmation: LONG will only be open if at signal, the price will be above ATR, SHORT if below.
>>>>> Divergence/Oscillator Analysis | RSI + MACD signal confirmation: LONG will only be open if at signal, RSI + MACD will be bullish, SHORT if RSI + MACD will be bearish.
>>>>> Volume signal confirmation: LONG/SHORT will only be open if closing candle volume is 150% above average Volume based on the Volume Length.
===========================================================================
Alert Settings (you don’t have to touch this section unless you will be using TradingView alerts through a Webhook to use with trading bot)
---------------------------------------------------------------------------
Here is how a LONG OPEN alert looks like (each label is customizable + I can add up more items/labels if needed):
COIN: BTCUSD
TIMEFRAME: 15M
LONG: OPEN
ENTRY: 20000
TP1: 20500
TP2: 21000
TP3: 21500
SL: 19000
Leverage: 0
===========================================================================
Adding Alerts in TradngView
---------------------------------------------------------------------------
-Right-click anywhere on the TradingView chart
-Click on Add alert
-Condition: Select this indicator by it’s name
-Alert name: Whatever you want
-Hit “Create”
-Note: If you change ANY Settings within the indicator – you must DELETE the current alert and create a new one per steps above, otherwise it will continue triggering alerts per old Settings!
===========================================================================
If you have any questions or issues with the indicator, please message me directly via TradingView.
---------------------------------------------------------------------------
Good Luck! (NOTE: Trading is very risky, past performance is not necessarily indicative of future results, so please trade responsibly!)
Moving Average Rainbow (Stormer)This strategy is based and shown by trader and investor Alexandre Wolwacz "Stormer".
Overview
The strategy uses 12 moving averages (default EMA) to identify trends and generate trading signals opening positions.
Allowing to select the type of moving average and length to be used.
The conditions includes relationship between moving averages, the position of the current price relative to the moving averages, and the occurrence of certain price patterns.
Calculation
The mean moving averages is calculated by adding all the 12 moving averages and dividing by 12, the value is used to help to identify trend and possible condition to open position.
The 12 moving averages is spliced by 3 ranges, initial range (moving average lines 1 to 4), middle range (moving average lines 5 to 8) and end range (moving average lines 9 to 12). These ranges helps to identify potential trend and market turn over.
The moving average touch price is a relationship between the low price (uptrend) or high price (downtrend) with the moving average lines, it identifies where the price (low/high) has reached the the moving average line. Fetching the value to help for opening position, set stop loss and take profit.
Since the stop loss is based and set from the previous moving average touch price value, when position is about to be open and setting the stop loss value, there is a verification to check both current and previous moving average touch price to recalculate the stop loss value.
The turnover trend checks for a possible market turnover event, setting up a new profit target, this setting when enabled is to be helpful when a turnover occurs against the position to exit position with some profit based on highest high price if long or lowest low price if short.
The turnover signal is similar to turnover trend. The difference is that when this setting is enabled and it triggers, it simply exit the current position and opens up a reverse position, long goes short and short goes long. And there is an complement optional that checks current price exit profitable.
Entry Position
Long Position:
Price is higher than the mean moving averages. Meaning possible uptrend.
The lines of the middle range from the moving averages are in increasing order. Meaning possible uptrend.
The current high pierced up previous high.
Fetch the previous value of the moving average touch price. Meaning the low price has touched one of the moving average lines, which that value is conditioning to open position.
Short Position:
Price is lower than the mean moving averages. Meaning possible downtrend.
The lines of the middle range from the moving averages are in decreasing order. Meaning possible downtrend.
The current low pierced down previous low.
Fetch the previous value of the moving average touch price. Meaning the high price has touched one of the moving average lines, which that value is conditioning to open position.
Risk Management
Stop Loss:
The stop loss is based from the previous moving average touch price value, high price for short and low price for long or occurs an verification to check for both current and previous moving average touch price value and a recalculation is done to set the stop loss.
Take Profit:
According to the author, the profit target should be at least 1:1.6 the risk, so to have the strategy mathematically positive.
The profit target is configured input, can be increased or decreased.
It calculates the take profit based on the price of the stop loss with the profit target input.
Turnover Trend
Long Position:
The moving averages initial range lines signals a possible market turnover. Meaning long might be going short.
Fetches the highest high hit since the opening of the position, setting that value to the new profit target.
Short Position:
The moving averages initial range lines signals a possible market turnover. Meaning short might be going long.
Fetches the lowest low hit since the opening of the position, setting that value to the new profit target.
Volatility Capture RSI-Bollinger - Strategy [presentTrading]- Introduction and how it is different
The 'Volatility Capture RSI-Bollinger - Strategy ' is a trading strategy that combines the concepts of Bollinger Bands (BB), Relative Strength Index (RSI), and Simple Moving Average (SMA) to generate trading signals. The uniqueness of this strategy is it calculates which is a dynamic level between the upper and lower Bollinger Bands based on the closing price. This unique feature allows the strategy to adapt to market volatility and price movements.
The market in Crypto and Stock are highly volatile, making them suitable for a strategy that uses Bollinger Bands. The RSI can help identify overbought or oversold conditions in this often speculative market.
BTCUSD 4hr chart
(700.hk) 3hr chart
Remember, the effectiveness of a trading strategy also depends on other factors such as the timeframe used, the specific settings of the indicators, and the overall market conditions. It's always recommended to backtest and paper trade a strategy before using it in live trading.
- Strategy, How it Works
Dynamic Bollinger Band: The strategy works by first calculating the upper and lower Bollinger Bands based on the user-defined length and multiplier. It then uses the Bollinger Bands and the closing price to dynamically adjust the presentBollingBand value. In the end, it generates a long signal when the price crosses over the present Bolling Band and a short signal when the price crosses under the present Bolling Band.
RSI: If the user has chosen to use RSI for signals, the strategy also calculates the RSI and its SMA, and uses these to generate additional long and short signals. The RSI-based signals are only used if the 'Use RSI for signals' option is set to true.
The strategy then checks the chosen trading direction and enters a long or short position accordingly. If the trading direction is set to 'Both', the strategy can enter both long and short positions.
Finally, the strategy exits a position when the close price crosses under the present Bolling Band for a long position, or crosses over the present Bolling Band for a short position.
- Trade direction
The strategy also includes a trade direction parameter, allowing the user to choose whether to enter long trades, short trades, or both. This makes the strategy adaptable to different market conditions and trading styles.
- Usage
1. Set the input parameters as per your trading preferences. You can choose the price source, the length of the moving average, the multiplier for the ATR, whether to use RSI for signals, the RSI and SMA periods, the bought and sold range levels, and the trading direction.
2. The strategy will then generate buy and sell signals based on these parameters. You can use these signals to enter and exit trades.
- Default settings
1. Source: hlc3
2. Length: 50
3. Multiplier: 2.7183
4. Use RSI for signals: True
5. RSI Period: 10
6. SMA Period: 5
7. Bought Range Level: 55
8. Sold Range Level: 50
9. Trade Direction: Both
- Strategy's default Properties
1. Default Quantity Type: 'strategy.percent_of_equity'
2. commission_value= 0.1, commission_type=strategy.commission.percent, slippage= 1: These parameters set the commission and slippage for the strategy. The commission is set to 0.1% of the trade value, and the slippage (the difference between the expected price of a trade and the price at which the trade is executed) is set to 1.
3. default_qty_type = strategy.percent_of_equity, default_qty_value = 15: These parameters set the default quantity for trades. The default_qty_type is set to strategy.percent_of_equity, which means that the size of each trade will be a percentage of the account equity. The default_qty_value is set to 15, which means that each trade will be 15% of the account equity.
4. initial_capital= 10000: This parameter sets the initial capital for the strategy to $10,000.
PresentTrend - Strategy [presentTrading]- Introduction and how it is different
The PresentTrend strategy is a unique custom trend-following strategy. This combination allows the strategy to take advantage of both short-term and long-term market trends, making it suitable for various market conditions.
BTCUSDT 4hr chart
(700.hk) 3D chart
- Strategy, How it Works
RSI or MFI: The first part uses a custom indicator based on either the Relative Strength Index (RSI) or the Money Flow Index (MFI). The indicator calculates a PresentTrend value, which generates buy and sell signals based on its crossover and crossunder, indicating potential trend reversals.
ATR: The second part is a popular trend-following indicator that uses the Average True Range (ATR).
The strategy enters a long position when all buy signals from both strategies are true, and a short position when all sell signals are true. This ensures trades are entered when both short-term and long-term trends align, potentially increasing the strategy's reliability.
- Trade direction
The strategy also includes a trade direction parameter, allowing the user to choose whether to enter long trades, short trades, or both. This makes the strategy adaptable to different market conditions and trading styles.
- Usage
1. Set the input parameters for the custom trend-following strategy.
2. Choose whether to use the RSI or MFI for the custom strategy.
3. Choose the trade direction: long, short, or both.
4. The strategy will generate buy and sell signals based on the conditions of both strategies.
5. Enter a trade when a buy or sell signal is generated, depending on the chosen trade direction.
Please note that this strategy is meant to be a tool to aid in your trading decisions and not a standalone trading system. Always use proper risk management and make sure to test the strategy thoroughly before using it in live trading.
- Default settings
1. Source: 'hlc3', a balanced price level for calculations.
2. Length: 14, a common setting for many technical indicators.
3. Multiplier: 1.618 (the golden ratio), used in calculating the upper and lower thresholds.
4. RSI or MFI: Set to use MFI by default, both are momentum indicators.
5. Trade Direction: 'Both', allowing for both long and short trades.
The default settings are designed to provide a balanced approach to trend detection. However, these can be adjusted based on the user's preferences and the specific characteristics of the market being traded.
- Strategy's default Properties
1. Default Quantity Type: 'strategy.percent_of_equity'
2. commission_value= 0.1, commission_type=strategy.commission.percent, slippage= 1: These parameters set the commission and slippage for the strategy. The commission is set to 0.1% of the trade value, and the slippage (the difference between the expected price of a trade and the price at which the trade is executed) is set to 1.
3. default_qty_type = strategy.percent_of_equity, default_qty_value = 10: These parameters set the default quantity for trades. The default_qty_type is set to strategy.percent_of_equity, which means that the size of each trade will be a percentage of the account equity. The default_qty_value is set to 10, which means that each trade will be 10% of the account equity.
4. initial_capital= 10000: This parameter sets the initial capital for the strategy to $10,000.
Bollinger Bands Modified (Stormer)This strategy is based and shown by trader and investor Alexandre Wolwacz "Stormer".
Overview
The strategy uses two indicators Bollinger Bands and EMA (optional for EMA).
Calculates Bollinger Bands, EMA, highest high, and lowest low values based on the input parameters, evaluating the conditions to determine potential long and short entry signals.
The conditions include checks for crossovers and crossunders of the price with the upper and lower Bollinger Bands, as well as the position of the price relative to the EMA.
The script also incorporates the option to add an inside bar pattern check for additional information.
Entry Position
Long Position:
Price cross over the superior band of bollinger bands.
The EMA is used to add support for trend analysis, it is an optional input, when used, it checks if price is above EMA.
Short Position:
Price cross under the inferior band of bollinger bands.
The EMA is used to add support for trend analysis, it is an optional input, when used, it checks if price is under EMA.
Risk Management
Stop Loss:
The stop loss is calculated based on the input highest high (for short position) and lowest low (for long position).
It gets the length based on the input from the last candles to set which is the highest high and which is the lowest low.
Take Profit:
According to the author, the profit target should be at least 1:1.6 the risk, so to have the strategy mathematically positive.
The profit target is configured input, can be increased or decreased.
It calculates the take profit based on the price of the stop loss with the profit target input.
Risk to Reward - FIXED SL BacktesterDon't know how to code? No problem! TradingView is an excellent platform for you. ✅ ✅
If you have an indicator that you want to backtest using a risk-to-reward ratio or fixed take profit/stop loss levels, then the Risk to Reward - FIXED SL Backtester script is the perfect solution for you.
introducing Risk to Reward - FIXED SL Backtester Script which will allow you to test any indicator / Signal with RR or Fixed SL system
How does it work ?!
Once you connect the script to your indicator, it will analyze your entry points and perform calculations based on them. It will then open trades for you according to the specified inputs in the script settings.
HOW TO CONNECT IT to your indicator?
simply open your indicator code and add the below line of code to it
plot(Signal ? 100 : 0,"Signal",display = display.data_window)
Replace Signal with the long condition from your own indicator. You can also modify the value 100 to any number you prefer. After that, open the settings.
Once the script is connected to your indicator, you can choose from two options:
Risk To Reward Ratio System
Fixed TP/ SL System
🔸if you select the Risk to Reward System ⤵️
The Risk-to-Reward System requires the calculation of a stop loss. That's why I have included three different types of stop-loss calculations for you to choose from:
ATR Based SL
Pivot Low SL
VWAP Based SL
Your stop loss and take profit levels will be automatically calculated based on the selected stop loss method and your risk-to-reward ratio.
You can also adjust their values to match your desired risk level. The trades will be displayed on the chart.
with the ability to change their values to match your risk.
once this is done, trades will be displayed on the chart
🔸if you select the Fixed system ⤵️
You have 2 inputs, which are FIXED TP & Fixed SL
input the values you want, and trades will be on your chart...
I have also added a Breakeven feature for you.
with this Breakeven feature the trade will not just move SL to Entry ?! NO NO, it will place it above entry by a % you input yourself, so you always win! 🚀
Here is an example
Enjoy, and have fun, if you have any questions do not hesitate to ask
twisted SMA strategy [4h] Hello
I would like to introduce a very simple strategy that uses a combination of 3 simple moving averages ( SMA 4 , SMA 9 , SMA 18 )
this is a classic combination showing the most probable trend directions
Crosses were marked on the basis of the color of the candles (bulish cross - blue / bearish cross - maroon)
ma 100 was used to determine the main trend, which is one of the most popular 4-hour candles
We define main trend while price crosses SMA100 ( for bullish trend I use green candle color )
The long position strategy was created in combination of 3 moving averages with Kaufman's adaptive moving average by alexgrover
The strategy is very accurate and is easy to use indicators
the strategy uses only Buy (Long) signals in a combination of crossovers of the SMA 4, SMA 9, SMA 18 and the Kaufman Adaptive Moving Average.
As a signal to close a long position, only the opposite signal of the intersection of 3 different moving averages is used
the current strategy is recommended for higher time zones (4h +) due to the strength of the closing candles, which translates into signal strength
works fascinatingly well for long-term bullish market assets (for example 4h Apple, Tesla charts)
Enjoy and trade safe ;)
Grid Strategy with MA0. Preface
Hello traders,
This is a strategy script that allows you to utilize a Grid Strategy using moving averages.
It is very simple, but I decided to post it because it was hard to find such shared open-source codes in Pine Script.
1. Main
This is a very simple trading method.
Based on the moving average line you set, if the price drops by a certain ATR (or percent) below it, you buy, and when it goes back up, you sell.
In basic settings, you choose the moving average line and its length, and decide how much to set the distance between each grid through the 'Band Multiplier/Percent' item.
I believe that it is advantageous to widen the bandwidth for stocks with strong upward momentum.
2. Conclusion
I have confirmed that this works better in the stock market than in the crypto market,
and that it is suitable for use on index stocks like NASDAQ because it follows trends.
In addition, through backtesting, I have confirmed that this grid strategy is more suitable for buying strategies than selling strategies, so I uploaded it as a strategy focused on buying strategies.
Personally, I have developed my own strategy by adjusting buying and selling strategies according to trends and managing risks.
I hope you can use this to create a script that suits you.
Thank you.
GKD-BT Baseline Backtest [Loxx]The Giga Kaleidoscope GKD-BT Baseline Backtest is a backtesting module included in Loxx's "Giga Kaleidoscope Modularized Trading System."
█ GKD-BT Baseline Backtest
The GKD-BT Baseline Backtest allows traders to backtest the Regular and Stepped baselines used in the GKD trading system. This module includes 65+ moving averages and 15+ types of volatility to choose from.
Additionally, this backtest module provides the option to test the GKD-B indicator with 1 to 3 take profits and 1 stop loss. The Trading backtest allows for the use of 1 to 3 take profits, while the Full backtest is limited to 1 take profit. The Trading backtest also offers the capability to apply a trailing take profit.
In terms of the percentage of trade removed at each take profit, this backtest module has the following hardcoded values:
Take profit 1: 50% of the trade is removed
Take profit 2: 25% of the trade is removed
Take profit 3: 25% of the trade is removed
Stop loss: 100% of the trade is removed
After each take profit is achieved, the stop loss level is adjusted. When take profit 1 is reached, the stop loss is moved to the entry point. Similarly, when take profit 2 is reached, the stop loss is shifted to take profit 1. The trailing take profit feature comes into play after take profit 2 or take profit 3, depending on the number of take profits selected in the settings. The trailing take profit is always activated on the final take profit when 2 or more take profits are chosen.
The backtest also offers the capability to restrict by a specific date range, allowing for simulated forward testing based on past data. Additionally, users have the option to display or hide a trading panel that provides relevant information about the backtest, statistics, and the current trade. It is also possible to activate alerts and toggle sections of the trading panel on or off. On the chart, historical take profit and stop loss levels are represented by horizontal lines overlaid for reference.
This backtest also includes an optional GKD-E Exit indicator that can be used to test early exits.
The GKD system utilizes volatility-based take profits and stop losses. Each take profit and stop loss is calculated as a multiple of volatility. You can change the values of the multipliers in the settings as well.
To utilize this strategy, follow these steps:
1. (Required) Import the value "Input into NEW GKD-BT Backtest" from the GKD-B Baseline indicator into the GKD-BT Baseline Backtest field "Import GKD-B Baseline"
2. (Optional) Import the value "Input into NEW GKD-BT Backtest" from the GKD-E Exit indicator into the GKD-BT Baseline Backtest field "Import GKD-E Exit". You can toggle the Exit on or off using the "Activate GKD-E Exit" option.
Baselines that are compatible with this backtest module:
GKD-B Baseline
GKD-B Stepped Baseline
Volatility Types Included
17 types of volatility are included in this indicator
Close-to-Close
Parkinson
Garman-Klass
Rogers-Satchell
Yang-Zhang
Garman-Klass-Yang-Zhang
Exponential Weighted Moving Average
Standard Deviation of Log Returns
Pseudo GARCH(2,2)
Average True Range
True Range Double
Standard Deviation
Adaptive Deviation
Median Absolute Deviation
Efficiency-Ratio Adaptive ATR
Mean Absolute Deviation
Static Percent
█ Giga Kaleidoscope Modularized Trading System
Core components of an NNFX algorithmic trading strategy
The NNFX algorithm is built on the principles of trend, momentum, and volatility. There are six core components in the NNFX trading algorithm:
1. Volatility - price volatility; e.g., Average True Range, True Range Double, Close-to-Close, etc.
2. Baseline - a moving average to identify price trend
3. Confirmation 1 - a technical indicator used to identify trends
4. Confirmation 2 - a technical indicator used to identify trends
5. Continuation - a technical indicator used to identify trends
6. Volatility/Volume - a technical indicator used to identify volatility/volume breakouts/breakdown
7. Exit - a technical indicator used to determine when a trend is exhausted
8. Metamorphosis - a technical indicator that produces a compound signal from the combination of other GKD indicators*
*(not part of the NNFX algorithm)
What is Volatility in the NNFX trading system?
In the NNFX (No Nonsense Forex) trading system, ATR (Average True Range) is typically used to measure the volatility of an asset. It is used as a part of the system to help determine the appropriate stop loss and take profit levels for a trade. ATR is calculated by taking the average of the true range values over a specified period.
True range is calculated as the maximum of the following values:
-Current high minus the current low
-Absolute value of the current high minus the previous close
-Absolute value of the current low minus the previous close
ATR is a dynamic indicator that changes with changes in volatility. As volatility increases, the value of ATR increases, and as volatility decreases, the value of ATR decreases. By using ATR in NNFX system, traders can adjust their stop loss and take profit levels according to the volatility of the asset being traded. This helps to ensure that the trade is given enough room to move, while also minimizing potential losses.
Other types of volatility include True Range Double (TRD), Close-to-Close, and Garman-Klass
What is a Baseline indicator?
The baseline is essentially a moving average, and is used to determine the overall direction of the market.
The baseline in the NNFX system is used to filter out trades that are not in line with the long-term trend of the market. The baseline is plotted on the chart along with other indicators, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR).
Trades are only taken when the price is in the same direction as the baseline. For example, if the baseline is sloping upwards, only long trades are taken, and if the baseline is sloping downwards, only short trades are taken. This approach helps to ensure that trades are in line with the overall trend of the market, and reduces the risk of entering trades that are likely to fail.
By using a baseline in the NNFX system, traders can have a clear reference point for determining the overall trend of the market, and can make more informed trading decisions. The baseline helps to filter out noise and false signals, and ensures that trades are taken in the direction of the long-term trend.
What is a Confirmation indicator?
Confirmation indicators are technical indicators that are used to confirm the signals generated by primary indicators. Primary indicators are the core indicators used in the NNFX system, such as the Average True Range (ATR), the Moving Average (MA), and the Relative Strength Index (RSI).
The purpose of the confirmation indicators is to reduce false signals and improve the accuracy of the trading system. They are designed to confirm the signals generated by the primary indicators by providing additional information about the strength and direction of the trend.
Some examples of confirmation indicators that may be used in the NNFX system include the Bollinger Bands, the MACD (Moving Average Convergence Divergence), and the MACD Oscillator. These indicators can provide information about the volatility, momentum, and trend strength of the market, and can be used to confirm the signals generated by the primary indicators.
In the NNFX system, confirmation indicators are used in combination with primary indicators and other filters to create a trading system that is robust and reliable. By using multiple indicators to confirm trading signals, the system aims to reduce the risk of false signals and improve the overall profitability of the trades.
What is a Continuation indicator?
In the NNFX (No Nonsense Forex) trading system, a continuation indicator is a technical indicator that is used to confirm a current trend and predict that the trend is likely to continue in the same direction. A continuation indicator is typically used in conjunction with other indicators in the system, such as a baseline indicator, to provide a comprehensive trading strategy.
What is a Volatility/Volume indicator?
Volume indicators, such as the On Balance Volume (OBV), the Chaikin Money Flow (CMF), or the Volume Price Trend (VPT), are used to measure the amount of buying and selling activity in a market. They are based on the trading volume of the market, and can provide information about the strength of the trend. In the NNFX system, volume indicators are used to confirm trading signals generated by the Moving Average and the Relative Strength Index. Volatility indicators include Average Direction Index, Waddah Attar, and Volatility Ratio. In the NNFX trading system, volatility is a proxy for volume and vice versa.
By using volume indicators as confirmation tools, the NNFX trading system aims to reduce the risk of false signals and improve the overall profitability of trades. These indicators can provide additional information about the market that is not captured by the primary indicators, and can help traders to make more informed trading decisions. In addition, volume indicators can be used to identify potential changes in market trends and to confirm the strength of price movements.
What is an Exit indicator?
The exit indicator is used in conjunction with other indicators in the system, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR), to provide a comprehensive trading strategy.
The exit indicator in the NNFX system can be any technical indicator that is deemed effective at identifying optimal exit points. Examples of exit indicators that are commonly used include the Parabolic SAR, the Average Directional Index (ADX), and the Chandelier Exit.
The purpose of the exit indicator is to identify when a trend is likely to reverse or when the market conditions have changed, signaling the need to exit a trade. By using an exit indicator, traders can manage their risk and prevent significant losses.
In the NNFX system, the exit indicator is used in conjunction with a stop loss and a take profit order to maximize profits and minimize losses. The stop loss order is used to limit the amount of loss that can be incurred if the trade goes against the trader, while the take profit order is used to lock in profits when the trade is moving in the trader's favor.
Overall, the use of an exit indicator in the NNFX trading system is an important component of a comprehensive trading strategy. It allows traders to manage their risk effectively and improve the profitability of their trades by exiting at the right time.
What is an Metamorphosis indicator?
The concept of a metamorphosis indicator involves the integration of two or more GKD indicators to generate a compound signal. This is achieved by evaluating the accuracy of each indicator and selecting the signal from the indicator with the highest accuracy. As an illustration, let's consider a scenario where we calculate the accuracy of 10 indicators and choose the signal from the indicator that demonstrates the highest accuracy.
The resulting output from the metamorphosis indicator can then be utilized in a GKD-BT backtest by occupying a slot that aligns with the purpose of the metamorphosis indicator. The slot can be a GKD-B, GKD-C, or GKD-E slot, depending on the specific requirements and objectives of the indicator. This allows for seamless integration and utilization of the compound signal within the GKD-BT framework.
How does Loxx's GKD (Giga Kaleidoscope Modularized Trading System) implement the NNFX algorithm outlined above?
Loxx's GKD v2.0 system has five types of modules (indicators/strategies). These modules are:
1. GKD-BT - Backtesting module (Volatility, Number 1 in the NNFX algorithm)
2. GKD-B - Baseline module (Baseline and Volatility/Volume, Numbers 1 and 2 in the NNFX algorithm)
3. GKD-C - Confirmation 1/2 and Continuation module (Confirmation 1/2 and Continuation, Numbers 3, 4, and 5 in the NNFX algorithm)
4. GKD-V - Volatility/Volume module (Confirmation 1/2, Number 6 in the NNFX algorithm)
5. GKD-E - Exit module (Exit, Number 7 in the NNFX algorithm)
6. GKD-M - Metamorphosis module (Metamorphosis, Number 8 in the NNFX algorithm, but not part of the NNFX algorithm)
(additional module types will added in future releases)
Each module interacts with every module by passing data to A backtest module wherein the various components of the GKD system are combined to create a trading signal.
That is, the Baseline indicator passes its data to Volatility/Volume. The Volatility/Volume indicator passes its values to the Confirmation 1 indicator. The Confirmation 1 indicator passes its values to the Confirmation 2 indicator. The Confirmation 2 indicator passes its values to the Continuation indicator. The Continuation indicator passes its values to the Exit indicator, and finally, the Exit indicator passes its values to the Backtest strategy.
This chaining of indicators requires that each module conform to Loxx's GKD protocol, therefore allowing for the testing of every possible combination of technical indicators that make up the six components of the NNFX algorithm.
What does the application of the GKD trading system look like?
Example trading system:
Backtest: GKD-BT Baseline Backtest as shown on the chart above
Baseline: Hull Moving Average as shown on the chart above
Volatility/Volume: Hurst Exponent
Confirmation 1: Sherif's HiLo
Confirmation 2: uf2018
Continuation: Coppock Curve
Exit: Fisher Transform as shown on the chart above
Metamorphosis: Baseline Optimizer
Each GKD indicator is denoted with a module identifier of either: GKD-BT, GKD-B, GKD-C, GKD-V, GKD-M, or GKD-E. This allows traders to understand to which module each indicator belongs and where each indicator fits into the GKD system.
█ Giga Kaleidoscope Modularized Trading System Signals
Standard Entry
1. GKD-C Confirmation gives signal
2. Baseline agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Volatility/Volume agrees
1-Candle Standard Entry
1a. GKD-C Confirmation gives signal
2a. Baseline agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
Next Candle
1b. Price retraced
2b. Baseline agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Baseline Entry
1. GKD-B Baseline gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Volatility/Volume agrees
7. Confirmation 1 signal was less than 'Maximum Allowable PSBC Bars Back' prior
1-Candle Baseline Entry
1a. GKD-B Baseline gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSBC Bars Back' prior
Next Candle
1b. Price retraced
2b. Baseline agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Volatility/Volume Entry
1. GKD-V Volatility/Volume gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Baseline agrees
7. Confirmation 1 signal was less than 7 candles prior
1-Candle Volatility/Volume Entry
1a. GKD-V Volatility/Volume gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSVVC Bars Back' prior
Next Candle
1b. Price retraced
2b. Volatility/Volume agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Baseline agrees
Confirmation 2 Entry
1. GKD-C Confirmation 2 gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Volatility/Volume agrees
6. Baseline agrees
7. Confirmation 1 signal was less than 7 candles prior
1-Candle Confirmation 2 Entry
1a. GKD-C Confirmation 2 gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSC2C Bars Back' prior
Next Candle
1b. Price retraced
2b. Confirmation 2 agrees
3b. Confirmation 1 agrees
4b. Volatility/Volume agrees
5b. Baseline agrees
PullBack Entry
1a. GKD-B Baseline gives signal
2a. Confirmation 1 agrees
3a. Price is beyond 1.0x Volatility of Baseline
Next Candle
1b. Price inside Goldie Locks Zone Minimum
2b. Price inside Goldie Locks Zone Maximum
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Continuation Entry
1. Standard Entry, 1-Candle Standard Entry, Baseline Entry, 1-Candle Baseline Entry, Volatility/Volume Entry, 1-Candle Volatility/Volume Entry, Confirmation 2 Entry, 1-Candle Confirmation 2 Entry, or Pullback entry triggered previously
2. Baseline hasn't crossed since entry signal trigger
4. Confirmation 1 agrees
5. Baseline agrees
6. Confirmation 2 agrees
Premium VWAP Trendfollow Strategy [wbburgin]This is a strongly-revised version of my VWAP Trendfollow Strategy, which follows a substantial reworking to address various structural inefficiencies with the script, such as the narrowing of the standard deviation band upon anchor reset. I will continue updating the original script with planned adjustments, this is a different proof-of-concept that builds off of the original script thesis with a different calculation method and execution.
This strategy is not built for any specific asset or timeframe, and has been backtested on crypto and equities from 1 min-1 day. The previous experimental strategy was heavily-correlated with the actual movement of the asset, which added unpalatable risk to the strategy and increased drawdown. This revised form has a more stable backtesting curve, but I want to heavily emphasize that I cannot guarantee that the strategy will be profitable for your circumstances. Backtesting only goes so far and every exchange has a different fee schedule, which can substantially eat into your profits. At the bottom I will explain the parameters behind the strategy results.
**********
The VWAP Trendfollow Strategy begins with a simple premise: to enter long when the price breaks above the upper standard deviation of a VWAP, and to close the position when the price breaks below the lower standard deviation of the VWAP. This is more effective than initiating the same strategy for a VWMA because the VWAP resets its anchor depending on your chosen anchor period, and the act of resetting its anchor also resets its standard deviation value. As a consequence, in sustained uptrends, the standard deviation is pulled upward to meet the price when the anchor resets, instead of requiring the price to fall all the way back down, as in the lower standard deviation band of the VWMA. This essentially acts as the VWAP itself raising the stop loss at each anchor period, which works well for the overall trend-following strategy.
However, this narrowing can still have consequences for a simple breakout strategy; as the price gradually oscillates towards above or below its standard deviation band, it may cross over the other and produce false signals. This oscillation is worrisome especially when fees are taken into account.
Thus, the premium VWAP Trendfollow strategy has a variable width which detects abnormal narrowing of the band, and adjusts it until it is reasonable to close the variability period. Additionally, a filter is added to the open/close signals to soften the frequency of signals without impacting performance significantly.
This script contains an ATR stop loss and an ATR take profit (which is also a difference between it and the original experimental script), with customizable inputs. The strategy results shown below are with initial capital of $1000, qty entry of 10%, and commissions of 0.06%. It works best on 24/7 instruments, like crypto, but I have found it also works with FAANG stocks or other high volatility / high volume assets. The issue with stocks, however, is that the price can jump/plummet because of abnormal events after-hours, which the strategy cannot pick up on until pre-trading begins the next morning. For that reason I suggest it be used on crypto and, because of its low % profitable (but high average winning trade in relation to its average losing trade), be used on an exchange that has minimal fees or volume-based discounts. In the unfortunate case that you cannot find a minimal fee or volume-discounted fee exchange (such as fellow Americans following the liquidity-retreat on Binance.US), I encourage you to test out the higher anchor periods for the higher timeframes, which will reduce the number of trades and increase the average % per trade.
Additionally, this is a long-term strategy used best for accumulation. It is currently long-only; that may change based off of user input.
**********
Disclaimer
Copyright by wbburgin.
The information contained in my Scripts/Indicators/Algorithms does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Buy&Sell Bullish Engulfing - The Quant Science🇺🇸
GENERAL OVERVIEW
Buy&Sell Bullish Engulfing - The Quant Science It is a Buy&Sell strategy based on the 'Bullish Engulfing' candlestick pattern. The main goal of the strategy is to achieve a consistent and sustainable return over time, with a manageable level of risk.
Bullish Engulfing
The template was developed at the top of the Indicator provided by TradingView called 'Engulfing - Bullish'.
ENTRY AND EXIT CRITERIA
Entry: A single long order is opened when the candlestick pattern is formed, and the percentage size of the order (%) is fixed by the trader through the user interface.
Exit: The long trade is closed on a percentage equity take profit-stop loss.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
🇮🇹
PANORAMICA GENERALE
Buy&Sell Bullish Engulfing - The Quant Science è una strategia Buy&Sell basata sul candlestick pattern 'Bullish Engulfing'. L'obiettivo principale della strategia è ottenere un ritorno costante e sostenibile nel tempo, con un livello gestibile di rischio.
Bullish Engulfing
Il template è stato sviluppato al top dell' Indicatore fornito da Trading View chiamato 'Engulfing - Bullish'.
CRITERI DI ENTRATA E USCITA
Entrata: viene aperto un singolo ordine long quando si forma il candlestick pattern, la size percentuale dell'ordine (%) viene selezionato tramite l'interfaccia utente dal trader.
Uscita: la chiusura della posizione avviene unicamente tramite un take profit-stop loss percentuale calcolato sul capitale.
ATR GOD Strategy by TradeSmart (PineConnector-compatible)This is a highly-customizable trading strategy made by TradeSmart, focusing mainly on ATR-based indicators and filters. The strategy is mainly intended for trading forex , and has been optimized using the Deep Backtest feature on the 2018.01.01 - 2023.06.01 interval on the EUR/USD (FXCM) 15M chart, with a Slippage value of 3, and a Commission set to 0.00004 USD per contract. The strategy is also made compatible with PineConnector , to provide an easy option to automate the strategy using a connection to MetaTrader. See tooltips for details on how to set up the bot, and check out our website for a detailed guide with images on how to automate the strategy.
The strategy was implemented using the following logic:
Entry strategy:
A total of 4 Supertrend values can be used to determine the entry logic. There is option to set up all 4 Supertrend parameters individually, as well as their potential to be used as an entry signal/or a trend filter. Long/Short entry signals will be determined based on the selected potential Supertrend entry signals, and filtered based on them being in an uptrend/downtrend (also available for setup). Please use the provided tooltips for each setup to see every detail.
Exit strategy:
4 different types of Stop Losses are available: ATR-based/Candle Low/High Based/Percentage Based/Pip Based. Additionally, Force exiting can also be applied, where there is option to set up 4 custom sessions, and exits will happen after the session has closed.
Parameters of every indicator used in the strategy can be tuned in the strategy settings as follows:
Plot settings:
Plot Signals: true by default, Show all Long and Short signals on the signal candle
Plot SL/TP lines: false by default, Checking this option will result in the TP and SL lines to be plotted on the chart.
Supertrend 1-4:
All the parameters of the Supertrends can be set up here, as well as their individual role in the entry logic.
Exit Strategy:
ATR Based Stop Loss: true by default
ATR Length (of the SL): 100 by default
ATR Smoothing (of the SL): RMA/SMMA by default
Candle Low/High Based Stop Loss: false by default, recent lowest or highest point (depending on long/short position) will be used to calculate stop loss value. Set 'Base Risk Multiplier' to 1 if you would like to use the calculated value as is. Setting it to a different value will count as an additional multiplier.
Candle Lookback (of the SL): 50 by default
Percentage Based Stop Loss: false by default, Set the stop loss to current price - % of current price (long) or price + % of current price (short).
Percentage (of the SL): 0.3 by default
Pip Based Stop Loss: Set the stop loss to current price - x pips (long) or price + x pips (short). Set 'Base Risk Multiplier' to 1 if you would like to use the calculated value as is. Setting it to a different value will count as an additional multiplier.
Pip (of the SL): 10 by default
Base Risk Multiplier: 4.5 by default, the stop loss will be placed at this risk level (meaning in case of ATR SL that the ATR value will be multiplied by this factor and the SL will be placed that value away from the entry level)
Risk to Reward Ratio: 1.5 by default, the take profit level will be placed such as this Risk/Reward ratio is met
Force Exiting:
4 total Force exit on custom session close options: none applied by default. If enabled, trades will close automatically after the set session is closed (on next candle's open).
Base Setups:
Allow Long Entries: true by default
Allow Short Entries: true by default
Order Size: 10 by default
Order Type: Capital Percentage by default, allows adjustment on how the position size is calculated: Cash: only the set cash amount will be used for each trade Contract(s): the adjusted number of contracts will be used for each trade Capital Percentage: a % of the current available capital will be used for each trade
ATR Limiter:
Use ATR Limiter: true by default, Only enter into any position (long/short) if ATR value is higher than the Low Boundary and lower than the High Boundary.
ATR Limiter Length: 50 by default
ATR Limiter Smoothing: RMA/SMMA by default
High Boundary: 1000 by default
Low Boundary: 0.0003 by default
MA based calculation: ATR value under MA by default, If not Unspecified, an MA is calculated with the ATR value as source. Only enter into position (long/short) if ATR value is higher/lower than the MA.
MA Type: RMA/SMMA by default
MA Length: 400 by default
Waddah Attar Filter:
Explosion/Deadzone relation: Not specified by default, Explosion over Deadzone: trades will only happen if the explosion line is over the deadzone line; Explosion under Deadzone: trades will only happen if the explosion line is under the deadzone line; Not specified: the opening of trades will not be based on the relation between the explosion and deadzone lines.
Limit trades based on trends: Not specified by default, Strong Trends: only enter long if the WA bar is colored green (there is an uptrend and the current bar is higher then the previous); only enter short if the WA bar is colored red (there is a downtrend and the current bar is higher then the previous); Soft Trends: only enter long if the WA bar is colored lime (there is an uptrend and the current bar is lower then the previous); only enter short if the WA bar is colored orange (there is a downtrend and the current bar is lower then the previous); All Trends: only enter long if the WA bar is colored green or lime (there is an uptrend); only enter short if the WA bar is colored red or orange (there is a downtrend); Not specified: the color of the WA bar (trend) is not relevant when considering entries.
WA bar value: Not specified by default, Over Explosion and Deadzone: only enter trades when the WA bar value is over the Explosion and Deadzone lines; Not specified: the relation between the explosion/deadzone lines to the value of the WA bar will not be used to filter opening trades.
Sensitivity: 150 by default
Fast MA Type: SMA by default
Fast MA Length: 10 by default
Slow MA Type: SMA
Slow MA Length: 20 by default
Channel MA Type: EMA by default
BB Channel Length: 20 by default
BB Stdev Multiplier: 2 by default
Trend Filter:
Use long trend filter 1: false by default, Only enter long if price is above Long MA.
Show long trend filter 1: false by default, Plot the selected MA on the chart.
TF1 - MA Type: EMA by default
TF1 - MA Length: 120 by default
TF1 - MA Source: close by default
Use short trend filter 1: false by default, Only enter long if price is above Long MA.
Show short trend filter 1: false by default, Plot the selected MA on the chart.
TF2 - MA Type: EMA by default
TF2 - MA Length: 120 by default
TF2 - MA Source: close by default
Volume Filter:
Only enter trades where volume is higher then the volume-based MA: true by default, a set type of MA will be calculated with the volume as source, and set length
MA Type: RMA/SMMA by default
MA Length: 200 by default
Date Range Limiter:
Limit Between Dates: false by default
Start Date: Jan 01 2023 00:00:00 by default
End Date: Jun 24 2023 00:00:00 by default
Session Limiter:
Show session plots: false by default, show market sessions on chart: Sidney (red), Tokyo (orange), London (yellow), New York (green)
Use session limiter: false by default, if enabled, trades will only happen in the ticked sessions below.
Sidney session: false by default, session between: 15:00 - 00:00 (EST)
Tokyo session: false by default, session between: 19:00 - 04:00 (EST)
London session: false by default, session between: 03:00 - 11:00 (EST)
New York session: false by default, session between: 08:00 - 17:00 (EST)
Trading Time:
Limit Trading Time: true by default, tick this together with the options below to enable limiting based on day and time
Valid Trading Days Global: 123567 by default, if the Limit Trading Time is on, trades will only happen on days that are present in this field. If any of the not global Valid Trading Days is used, this field will be neglected. Values represent days: Sunday (1), Monday (2), ..., Friday (6), Saturday(7) To trade on all days use: 123457
(1) Valid Trading Days: false, 123456 by default, values represent days: Sunday (1), Monday (2), ..., Friday (6), Saturday(7) The script will trade on days that are present in this field. Please make sure that this field and also (1) Valid Trading Hours Between is checked
(1) Valid Trading Hours Between: false, 1800-2000 by default, hours between which the trades can happen. The time is always in the exchange's timezone
All other options are also disabled by default
PineConnector Automation:
Use PineConnector Automation: false by default, In order for the connection to MetaTrader to work, you will need do perform prerequisite steps, you can follow our full guide at our website, or refer to the official PineConnector Documentation. To set up PineConnector Automation on the TradingView side, you will need to do the following:
1. Fill out the License ID field with your PineConnector License ID;
2. Fill out the Risk (trading volume) with the desired volume to be traded in each trade (the meaning of this value depends on the EA settings in Metatrader. Follow the detailed guide for additional information);
3. After filling out the fields, you need to enable the 'Use PineConnector Automation' option (check the box in the strategy settings);
4. Check if the chart has updated and you can see the appropriate order comments on your chart;
5. Create an alert with the strategy selected as Condition, and the Message as {{strategy.order.comment}} (should be there by default);
6. Enable the Webhook URL in the Notifications section, set it as the official PineConnector webhook address and enjoy your connection with MetaTrader.
License ID: 60123456789 by default
Risk (trading volume): 1 by default
NOTE! Fine-tuning/re-optimization is highly recommended when using other asset/timeframe combinations.
Swing Algo V1.4◆ Introduction
The latest version of the Swing Algo features a complementary system consisting of two internal swing trading logics: an enhanced Swing Algo V1.3 and a secondary control engine to stabilize the overall strategy behaviour in times of increased market chop. Both algorithms feature different averaging lines as well as oscillators, leading to a higher strategy diversification for swing trading as well as a reduced maximum drawdown in comparison to each stand-alone strategy.
While the Swing Algo V1.x series so far featured a single trend-following swing algorithm for each release, where one just switches between Long and Short trades based on one general logic, here two strategies, which act independently of each other, are applied. Due to this, we introduce a third position a trader can be in: the Hedge. The overall logic is as follows:
When both sub-logics are Long, the overall strategy is Long.
When both sub-logics are Short, the overall strategy is Short.
When one sub-logic is Long and the other is Short, the overall strategy is in a Hedge position. It doesn't matter which component is Short and which is Long.
As PineScript doesn't currently offer a real steady hedging-function for two competing swing trading sub-logics (in the sense of a continuously applied Hedge state after hedging conditions are met at least once for an entry), a workaround via position closes was created for this release. For each new internal sub-signal, the overall strategy changes its state (Long/Short/Hedge) visibly on the chart, and the trader can adjust their position accordingly.
For detailed differences to previous Swing Algo V1.x releases, see further below.
◆ Purpose of this Script
This indicator will give Long, Short and Hedge signals on the chart that can be used for e.g. swing trading. Each of the aforementioned sub-logics uses a combination of several (custom) functions and rules to find good entry points for trend trading. After many iterations and tests I came up with this particular setup, which is highly optimized for the ETH/USD trading pair on the daily (D) timeframe.
Attention was also paid to stability, as all parameters are set onto plateaus, so that smaller changes in the characteristic price action should not affect the efficiancy too much, done as an attempt to reduce overfitting as much as possible. Additionally this dual algorithm system is specifically designed to have a safety net: should for the unlikely scenario one swing trading algorithm not trigger at a certain mid-term reversal point, the probability is high that the other will trigger, resulting in an overall hedged position (so that no money is lost in the meantime) until the first algorithm can rejoin at the next mid-term trend change.
For other assets and/or timeframes it is in principle possible to change algorithmic parameters within the indicator settings to tune the swing algorithms, though it is strongly recommended to use the standard asset and timeframe mentioned above.
◆ Viability
For the here presented backtest data, we omitted the biggest portion of the cryptocurrency bullrun in 2017 (starting only at 1st July 2017) so that the results become more realistic for long-term swing traders (investing at least 2-4 years into trading) if such large runs do not happen again. As cryptocurrencies like Ethereum are still to this date capable of doing comparatively smaller runs of about 2-3x in a few weeks/months during accumulation phases (as witnessed e.g. in 2020 and more recently in 2023) and bigger runs during bullmarkets (as witnessed in 2021), the quality of the shown results is still realistic for long-term trend trading efforts over several years, Note that very conservative trading parameters as mentioned below in "Forwardtesting and Backtesting" are used here.
Generally do not expect results in a matter of days or weeks, and of course as with any trading strategy past performances are not indicative of future results.
◆ Forwardtesting and Backtesting
The individual components have been back- and partially forwardtested: The first sub-logic is an advancement of Swing Algo V1.3, with which we have extensive experience running back to October 2020 for its release, while the secondary control strategy, which was privately published for DeanTrader members as a stand-alone script on TradingView in June 2022 and was running in the background since then, is showing good & expected behaviour so far.
While this does not mean that fowardtesting was performed specifically for the combined Swing Algo V1.4 system we have now (which cannot be done realistically considering the timeframes used, i.e. months and especially years), we can at least look at some considerable experience with the individual components. Then again, as I have implemented an exact hedging-function so that both sub-algorithms run independently from each other, it is not likely to see any unexpected behaviour resulting purely from the combination into one script.
For strategy backtesting you can choose the backtest time interval to test the performance of this algorithm for different time windows and different trading pairs. Here various backtesting parameters (e.g. trading fees) can be customized. Default settings for the shown backtest are a starting balance of $1000, a slippage of 20 ticks (= $0.20) and a trading fee of 0.05 % (which is the worst taker fee on the Kraken Pro futures exchange) to have realistic settings. However as we do not conduct many trades with this strategy, fees should not impact our performance too much. As long-term swing traders, we at DeanTrader generally devote one initial portion of our portfolio to swing trading and from then on always use 100% of this portion for the next trade to get the compounding starting. This is in difference to other trading styles which use various, often very small, percentage values for their short- or mid-term trades. Please note that for the here presented backtest only 10% of compounded equity is used for each successive trade to show an estimation for a lower risk & lower reward approach . Keep this in mind when evaluating the backtest data. You can set appropriate values for each backtest parameter in the "Properties" setting menu of the strategy, including the order size percentage of equity value for your trades. Also note that due to the small number of trades the statistical significance is low. It is not possible to gather an abundance of long-term trend signals in the order of hundreds or thousands trades, as much more time would have to pass for this in the case of rather new assets like Ethereum.
Additionally to the TradingView Strategy Tester you can also plot your equity directly on the chart to get a sense for the performance. For this you can also scale the equity graph to e.g. match the starting point of your equity with some price point on the chart to get a direct comparison to 'Buy & Hold' strategies over time.
This indicator (and all other content I provide) is no financial advice. If you use this indicator you agree to my Terms and Conditions which can be found on my website linked on my TradingView profile or in my signature.
◆ Visual Representation on the Chart
Shown below is a screenshot of how the chart looks like when the strategy is applied. Here we can see two different averaging lines, where each line belongs to one of the two sub-logics respectively. Note that this is not a MA-crossover strategy, and the crossing of the lines is not accounted for in the code at all and therefore has no effect on the strategy's signal output. Also note that the price scale is set on logarithmic.
The space between the lines is filled with a faint background color as a rough visual indicator. Magenta-colored fills indicate zones where only Short or Hedge signals can appear, while green-colored fills indicate zones where only Long or Hedge signals can appear. Gray-colored fills mark zones where only Hedge signals can appear, which also means that Hedge signals can appear in any zone. So treat those background fills more as a visual aid to roughly know what can happen next, but pay most attention to the actual signals (with arrows) that appear on the chart.
◆ Differences to Other Versions
Consists now of two competing sub-algorithms instead of just one algorithm. The new system outputs Long, Short and Hedge signals instead of just Long and Short signals.
The first sub-logic is the spiritual successor of the original Swing Algo V1.3 release, with a modified oscillator part.
The second sub-logic serves as a control algorithm (while still having equal rights in terms of strategy impact), newly introduced to the Swing Algo series, but already forwardtested for roughly a year at time of release.
Lowers risk significantly by diversifying swing trading strategies, so that for the rare scenario of a missed trend on one sub-algorithm, losses are prevented as the overall strategy is hedged during that time.
Lowers risk further as the maximum drawdown of the combined strategy is reduced by roughly 1/3 in comparison to each stand-alone strategy while almost retaining the same net profit over a 6-year backtest compared to the first, leading sub-logic.
No guesswork anymore when to use which short leverage (1x corresponding to a Hedge, or 2x corresponding to a Short with an asset-value-change-to-gain-proportionality of -1) as it is clearly defined within the trading system via the displayed signals. In earlier Swing Algo versions, the short leverage for any particular Short signal had to be chosen by hand dependent on market sentiment, which required further market analysis, or was fixed at 2x, leading to less flexibility.
◆ Access
For access please contact me via DM on TradingView or via other channels (linked on my TradingView profile and in my signature).
Powertrend - Volume Range Filter Strategy [wbburgin]The Powertrend is a range filter that is based off of volume, instead of price. This helps the range filter capture trends more accurately than a price-based range filter, because the range filter will update itself from changes in volume instead of changes in price. In certain scenarios this means that the Powertrend will be more profitable than a normal range filter.
Essentials of the Strategy
This is a breakout strategy which works best on trending assets with high volume and liquidity. It should be used on middle to higher timeframes and can be used on all assets that have volume provided by the data source (stocks, crypto, forex). It is long-only as of now. It can work on lower timeframes if you optimize the strategy filters to make less trades or if your exchange/broker is low/no fees, provided that your exchange/broker has high liquidity and volume.
The strategy enters a long position if the range filter is trending upwards and the price crosses over the upper range band, which signifies a price-volume breakout. The strategy closes the long position if the range filter is trending downwards and the price crosses under the lower range band, which signifies a breakdown. Both these conditions can be altered by the three filter options in the settings. The default trend filter is not alterable because it helps prevent false entries and exits that are against the trend.
Settings
The Length setting is the lookback period for the range smoothing.
The ADX Filter setting enables you to turn on an ADX filter, which will halt entries and exits unless the ADX of your customizable length is above a ADX VWMA of that length.
The Range Supertrend setting creates a supertrend from the top and bottom ranges, which can be used to filter entries and exits. The length is customizable. The filter can show you whether the range is making higher highs and lower lows. Below is an example of the Range Supertrend being used as a filter and plotted on-chart:
The VWMA setting halts entries if they are below a customizable length VWMA.
Both the Range Supertrend and the VWMA can also be plotted separately without actually filtering the strategy, so that you can use them independently if you wish. You can turn off the bar color, the highlighting, and the labels if you wish in the settings. A note about the bar color: if the color changes but the strategy does not signal an exit or entry this means that the crossover was against the trend. In these circumstances it may be indicative of a pullback to enter or exit or to add onto your position.
About the Strategy Results Below
A range filter is normally composed of two components - the range filter itself and a smoothing function. In the development of this script I tested both normal and volume-based varieties of the range filter and the smoothing function:
Tests Performed
Volume-based Range x VWMA smoothing
Price-based Range x VWMA smoothing
Price-based Range x EMA smoothing
Volume-based Range x EMA smoothing (final result)
The highest-performing was a volume-based range filter and a normal EMA-based smoothing function, but that does not mean that this strategy will be profitable - exits are based off of signal reversion so I strongly encourage you to develop your own take profits/stop losses for the strategy if you think it may be a good fit for you. The results below are with a commission value of 0.05% (because I built the strategy first for equities), slippage of 3, so if your exchange/broker has a higher fee schedule, I recommend adding filters and/or moving to higher timeframes for the strategy. Additionally, I used 10% of equity in each trade, while using the Range Supertrend filter (the previous upload was unrealistic because it used 100% of equity - missed a 0, apologies, and added in slippage).
Easy Trade Pro [Buy and Sell Strategy + Backtesting System]Hello Traders,
Easy Trade Pro is a comprehensive tool that combines multiple technical indicators into a single customizable one. This tool is the culmination of an extensive trading career, it is designed to help traders navigate the markets in any timeframe and financial asset, like Equities, Futures, Crypto, Forex and Commodities.
Before we deep dive into the comprehensive guide on what Easy Trade Pro is, let's kick off by showcasing the strategy used in this example. Please note, we have adopted an extremely conservative approach strictly following the Tradingview House Rules, which you can review here: www.tradingview.com
The backtest strategy parameters:
Currency pair: EUR USD
Timeframe: 15-min chart
Market: Spot, no leverage
Broker: FXCM
Trading range: 2022-09-01 07:30 — 2023-06-26 20:00
Backtesting range: 2022-08-31 23:00 — 2023-06-26 20:00
Initial Capital: $10,000
Buy Order Size: 20% of the capital, $2,000
Stop Loss: 0.50%
Sell orders: Four different take profits where we unload the position by 25% each time
Broker Fees: Commission set at 0.08$
Slippage: 10 ticks
Understanding FXCM Commissions and Setting Realistic Slippage for EUR/USD Spot Trading:
◉I would like to provide some clarity on the commission structure and slippage setting used in the study for trading the EUR/USD pair on the FXCM spot market. Based on the information available, FXCM charges a commission of $4.00 per standard lot (100,000) on both sides of the trade (meaning at open and close) for the EUR/USD pair. Since the study involve an order size of $2,000 USD, which is equivalent to 0.02 lots, the commission fee for one side of the trade (either buying or selling) would be calculated as $4.00 multiplied by 0.02, which is $0.08. This means that for each individual trade, whether it be a buy or sell, the commission fee would be $0.08.
◉As for slippage, it is crucial to account for the inherent uncertainty in the execution price due to market fluctuations. In the forex market, the EUR/USD pair is quoted with a precision of five decimal places, with the smallest price change being a "pipette" (0.00001). Given that slippage can vary based on market conditions, it is considered fair practice to use a slippage of around 10 ticks under normal market conditions for the EUR/USD pair. This allows for a more realistic representation of the execution price, especially in a liquid and fast-moving market such as forex.
More detailed information about FXCM fees structure in the link below:
docs.fxcorporate.com
Enter a Trade conditions:
For our buy order, we utilize a custom buy signal called 'Bullish Reversal'. A detailed explanation of this and other buy orders can be found later in the guide, specifically in section 1).
To enhance realism in our trading strategy, we have implemented a confirmation mechanism. When utilizing the strategy tester, you have the option to input a value to determine the number of confirmation candles to consider.
For example, if you set the input to 1, the system will check if the next candle following the signal meets the criteria for confirmation. If set to 2, the system will evaluate the second candle, and so on for higher values. The confirmation is determined by comparing the closing or opening price of the selected buy signal candle with the corresponding closing price of the confirmation candle.
In this case we choose as buy signal: 'Bullish Reversal' + 2 candle of confirmation
Exit a trade conditions:
On the sell side, we exit a trade in four different types of sell orders where we take profits. Inside '', you will encounter unique labels attributed to our custom sell signals. A detailed explanation of these sell orders can be found later in the guide, specifically in section 1). We used custom order called:
1TP 'Good Sell'
2TP 'Good Sell'
3TP 'Good Sell'
4TP 'Bearish Reversal' + 4 confirmation candles
Our confirmation logic, for sell signals, is applied only to 'Bearish Reversal' signal. The confirmation is determined by comparing the closing or opening price of the selected 'Bearish Reversal' candle with the corresponding closing price of the confirmation candle. In this case, we wait for the fourth candle from the 'Bearish Reversal' signal to confirm the sell trade.
Protect your capital:
This super-conservative study involves a clear low risk, with the use of $2,000, 20% of our capital. If the stop loss of 0.5% were triggered, we lose 10$, equating to 0.10% of $10,000 - thus affecting only 0.10% of our capital.
Super Conservative Approach & Results:
With 353 closed trades, we achieved a net profit of 2.03%, or $203.34$ relative to our initial $10,000 capital, and a win rate of 73.37%.
Less Conservative Approach & Results:
We could also consider increasing our risk to 0.5% of our capital per trade. We would maintain our stop loss at 0.50%, but we would need to use all our capital to enter the market. If the stop loss of 0.5% will be triggered, we would lose 50$, equating to 0.5% of $10,000.
In this scenario, our net profit would have increased to 10.15%, equivalent to $1015.
Please be aware:
While fully automated strategies can bring considerable advantages, they are not without their cons. For one, relying solely on an automated system may not take into account the potential confluence of other strategies or indicators, such as the significance of support and resistance zones. These elements often require a more nuanced, human understanding of the markets and cannot always be perfectly replicated by an algorithm.
Additionally, it's essential to remember that a significant percentage of traders are not consistently profitable. As such, prudent risk management, a conservative approach, and acceptance of a reasonable profit are crucial aspects of successful trading. While the allure of high returns can be tempting, the sustainability of your trading strategy should always take precedence. Achieving steady, reliable profits over time often outweighs the appeal of a risky, high-return strategy that could potentially lead to substantial losses.
So, while automation can be a powerful tool in your trading arsenal, it's also important to consider other strategies and factors. Always ensure you're managing your risk effectively and approaching trading with a realistic and informed perspective.
------------------------------------------------------------------------ Why Easy Trade Pro is Original? ----------------------------------------------------------------------------------
We developed Easy Trade Pro as a unique and comprehensive solution, and we decided to protect our code to preserve its originality. We invested significant time and effort into making it a realistic trading strategy simulator. The standout features that set Easy Trade Pro apart include:
☀ Versatile Stop Loss Mechanisms: Stop loss execution can be complex and often requires careful coding to work as intended. In most freely available open-source codes, stop losses are implemented using the Average True Range (ATR). ATR can be beneficial but has limitations:
☁ Lagging Indicator - Like most technical indicators, the ATR is a lagging indicator. This means it is based on past data, and so it may not accurately reflect future market volatility. If market conditions change rapidly, the ATR may not adjust quickly enough, potentially leading to suboptimal stop loss levels.
☁ No Directional Information - The ATR measures volatility, but it does not provide any indication of the direction of the trend. Therefore, it should not be used as a standalone tool for making trading decisions, but should be used in conjunction with other technical analysis tools that can provide directional cues.
☁ Inefficiency in Trending Markets - In strongly trending markets, ATR-based stops can sometimes be too far from the current price level. This could lead to larger losses if the price moves against your trade before hitting the stop loss. On the flip side, in less volatile, sideways markets, an ATR-based stop might be set too close to the entry point, leading to premature stop outs.
☁ Overoptimization Risk - If you're backtesting a trading strategy, there's a risk of overoptimizing your stop loss settings by fine-tuning them to past data. The best ATR multiplier that worked in the past might not necessarily work in the future, leading to potential performance issues.
☀ We countered these by implementing four different types of 'protect the trade' mechanisms:
✔ Fixed Percentage Stop Loss
✔ Trailing Stop Loss
✔ Stop Loss Moved to Entry Upon Reaching Certain Gain
✔ Stop Loss Moved to Entry Upon Reaching First Take Profit Order ("Custom Order").
☀ Dual Exit Strategy: We incorporated two distinct methods of exiting a trade. The first uses our custom signals, while the second triggers exit at a certain percentage of gain.
☀ Multiple Take Profit Orders: You have the flexibility to establish up to four different sell orders. This feature enables you to fractionate your exit strategy according to your needs. You can choose to trigger these fractions based on our custom signals or determine your own exit points by setting targeted gains at a fixed percentage.
☀ Confirmation Candle System: This feature enhances trade precision by requiring confirmation candles after a buy or sell signal. This confirmation, dependent on the next candle's closing price, helps reduce false signals and improves entry and exit points. While our confirmation system is applicable to all custom buy signals, it's solely dedicated for the bearish reversal when it comes to sell signals.
☀ Universal Compatibility: Easy Trade Pro's Strategy Tester works perfectly with any asset class. The code can handle different contract types, including the SPX contracts and fractional assets like Bitcoin. It's optimized to ensure proper execution of trades without rounding issues.
☀ Bullish and Bearish Reversal candles: Our method of detecting these pivotal candles combines conditions from buy and sell signals with pertinent divergences in Price, RSI, and Volume (OBV). The distinguishing factor, however, lies in recognizing significant shifts in market structure and liquidity grabs. To further enhance the credibility of our indicator, we've incorporated Bollinger Bands, serving as an additional layer in spotting potential trend reversals, particularly when aligned with long-wick candlesticks, engulfing patterns, and morning or evening star formations.
☀ Non-Repainting Indicator: Our indicator signals are designed not to repaint. Once a signal appears, it stays fixed, offering a reliable tool for your trading decisions.
================================================== EXTENSIVE TECHNICAL DESCRIPTION ====================================================
Easy Trade Pro is versatile, allowing you to analyze market trends across any financial asset. With its rigorous testing, our tool can be used confidently on any timeframe, from 1D to 1min, whether you prefer longer-term or shorter-term trades.
Although we recommend trading on timeframes between 1D and 1min, higher timeframes like 1W chart, can also provide broader insights.
Our study combines a variety of popular technical indicators, such as RSI, Stochastic RSI, MACD, DMI, Bollinger Bands as well as relevant EMAs. On the volume side OBV and MFI. Using a data-driven approach, “Easy Trade Pro” analyzes historical market trends to identify optimal ways to combine these indicators with significant divergences between price and oscillators. On top of that the code considers relevant changes in market structure and liquidity grabs, to generate reliable and accurate signals for potential buy and sell opportunities.
* ☎ --> Please not that MACD, BBs, and EMAs account for a minimal part of our script <--- ☎, If you're looking for a simpler tool, consider checking out our open-source indicator, 'RSI, SRSI, MACD, and DMI cross - Open source code'. You can find it here:
With our customizable system, traders will be able to identify:
1) Three types of buy signals🐂,💰,💎 and sell signals 🐻,🔨,💀
2) Bullish and bearish reversal candles with support and resistance lines
3) Bull and bear momentum signals
4) A function that utilizes Color bars to identify the strength of the trend
5) Three customizable moving averages
6) Alerts direct to your email or phone
7) Advanced and customizable settings menu
8) Our software also includes a backtesting system that that allows users to test their trading strategies on historical data, to check how they would have performed in real-world market conditions. This can help refine a trading strategy and make more informed decisions.
------------------------------------------------------------------------------ 1) BUY AND SELL SIGNALS ---------------------------------------------------------------------------------
Our buy and sell signals are generated using a custom combination of RSI, MFI, and Stochastic RSI levels, as well as relevant MACD and Stochastic RSI crosses. These indicators are carefully analyzed to identify potential trading opportunities and determine optimal entry and exit points for trades.
RSI (Relative strength index) measures the strength of a security's price action, while the SRSI (Stochastic Relative Strength Index) is a momentum oscillator that measures the current price relative to its high and low range over a set period. The Money Flow Index (MFI) is another momentum indicator that uses both price and volume data to measure buying and selling pressure. MACD (Moving Average Convergence Divergence) is a popular technical indicator used in financial markets to analyze price trends and momentum.
▶ With our system, you'll be able to identify three different levels of buy signals:
◉ The first level of buy signal is represented by a 🐂 emoji and is a "Good Buy". This signal indicates a possible buying opportunity. It indicates that could be a good opportunity to enter in a long trade. It's important to note that, the "Good Buy" signal can sometimes be supplemented with a green "Bull" text and a flag plotshape positioned beneath the signal. In these scenarios, we categorize this as a "Good Buy Bull" signal.
◉ The second level of buy signal is represented by a 💰 emoji and is a "Great Buy". This signal indicates a stronger buying opportunity than the "Good Buy" signal.
◉ The third and strongest buy signal is represented by a 💎 emoji and is an "Incredible Buy". This signal indicates a stronger buying opportunity than the "Good Buy" and "Great Buy" signals
▶ With our system, you'll be able to identify three different levels of sell signals:
◉ On the sell side, the first level is represented by a 🐻 emoji and is a "Good Sell". This signal indicates a possible selling opportunity. It indicates that could be a good opportunity to exit a trade or open a short position. It's important to note that, the "Good Sell" signal can occasionally be accompanied by a red "Bear" text and a flag plotshape positioned beneath the signal. In such instances, we refer to this as a "Good Sell Bear" signal.
◉ The second sell signal is represented by a 🔨 emoji and is a "Great Sell". This signal indicates a stronger selling opportunity than the "Good Sell" signal.
◉ The third and strongest sell signal is represented by a 💀 emoji and is an "Incredible Sell". This signal indicates a stronger selling opportunity than the "Good Sell" and "Great Sell" signals.
------------------------------------------2) "BULLISH AND BEARISH REVERSAL CANDLES PLUS SUPPORT AND RESISTANCE LINES" ------------------------------------------------
Bullish and bearish reversal candles are specific candles that have more probability to reverse the trend.
Our trading indicator is designed to identify bullish and bearish reversal candles. Our method of detecting these pivotal candles combines conditions from buy and sell signals with pertinent divergences in Price, RSI, and Volume (OBV). The distinguishing factor, however, lies in recognizing significant shifts in market structure and liquidity grabs. To further enhance the credibility of our indicator, we've incorporated Bollinger Bands, serving as an additional layer in spotting potential trend reversals, particularly when aligned with long-wick candlesticks, engulfing patterns, and morning or evening star formations.
These candles are represented by blue and orange colors respectively by default. Additionally, the indicator also uses lines that are drawn at either the opening or closing of candles to help identify pivot points of support or resistance. These candles, lines color or shape are customizable in the settings menu.
How can I benefit the most from bullish reversal candles? To make the most of bullish reversal candles, a powerful strategy is:
E.g, 1D chart - Wait for the next 1 or 2 candles to close above the support line linked to the bullish reversal candle. For lower timeframes, it is recommended to wait for 2 or 3 candles before making a trading decision. A good tip is also to look for other signals (confluence), like a buy signal. Traders should decide based on their risk tolerance.
Here below we can see an example of a bullish reversal candle in the BTC/USDT, 1D, chart. The system identify a bullish reversal candle (blue color), the next 2 candles are green and closed above the support blue line, in addition we have other bullish signals (confluence).
How can I benefit the most from bullish reversal lines? Bullish reversal lines can help traders to identify key level of support and maintain control of their position until a clear break below occurs.
In the example below we se how the price retrace to the support line:
After touching the price bounce up.
How can I benefit the most from bearish reversal candles? To make the most of bearish reversal candles, a powerful strategy is:
E.g, 1D chart - Wait for the next 1 or 2 candles to close below the resistance line linked to the bearish reversal candle. For lower timeframes, it is recommended to wait for 2 or 3 candles before making a trading decision. Traders should decide based on their risk tolerance.
Here below we can see an example of a bearish reversal candle in the ETH/USDT, 1D, chart. The system identify a bearish reversal candle (orange color), the next candle is red and closes below the resistance orange line. A good tip is also to look for other signals (confluence), like a sell signal.
How can I benefit the most from bearish reversal lines? Bearish reversal lines can help traders to identify key level of resistance and maintain control of their position until a clear break above occurs.
In the example below we se how the price bounce back to the resistance line and get rejected.
------------------------------------------------------------------------- 3) BULL AND BEAR MOMENTUM SIGNALS -----------------------------------------------------------------------
We analyzed factors such as buy or sell signals, long or short confirmation signals, DMI crossup or crossdown and breaks of market structure (BOS) or change of character (CHoCh) to determine the strength and direction of the trend. These study give us bull trend or bear trend signals that can help traders identify potential trading opportunities and make informed decisions.
These conditions are represented by a green word "BULL" and a flag shape below (bull momentum) and by a red word "BEAR" and a flag shape above (bear momentum) respectively by default. These plots shapes are customizable in the settings menu.
How can I benefit the most from bull momentum signals? To make the most of bull momentum signals, a powerful strategy is:
E.g, 1D chart - Look for confluence. If bull signal comes with a "Good Buy 🐂" in the same candle the signal is more strong. Another good combo is to look for a bullish reversal candle prior or after this signal, usually within a range of 1/2 candles. For lower timeframes, it is recommended to wait 2/3 candles before making a trading decision.
In the picture below we can see an example of a bull momentum signal in the US500, 1D, chart.
How can I benefit the most from bear momentum signals? To make the most of bear momentum signals, a powerful strategy is:
E.g, 1D chart - Look for confluence. If bear signal comes with a "Good Sell 🐻" in the same candle the signal is more strong. Another good combo is to look for a bearish reversal candle prior or after this signal, usually within a range of 1/2 candles. For lower timeframes, it is recommended to wait 2/3 candles before making a trading decision.
In the picture below we can see an example of a bear momentum signal in combo with a sell signal, NETFLIX, 1D, chart.
-------------------------------------------------------------- 4) "COLOR BARS THAT INDICATE THE STRENGTH OF THE TREND -----------------------------------------------------
This code is responsible for changing the color of the bars on a chart based on certain conditions. The gradient colors are defined for green and red, and the algorithm checks if the current bar is within a certain range of either a bearish reversal or bullish reversal candle and whether the price is above or below certain exponential moving averages or if important break of market structure occurs.
Ultimately, this feature helps traders visually identify potential trends and market shifts and avoid getting distracted by price fluctuations. Please note that every gradient of color can be customize by the user. We set 3 different bullish colors and 3 different bearish colors.
Below the picture of the settings menu related to the bar color.
----------------------------------------------------------------------5)THREE CUSTOMIZABLE MOVING AVERAGES ----------------------------------------------------------------------
You can choose up to three moving averages, any length and any type like SMA, EMA, WMA, HMA, RMA, SWMA and VWMA. Furthermore, you have the freedom to adjust the color and width of the lines to your preference.
Below the picture of the settings menu related to the moving averages.
----------------------------------------------------------------------6) ALERTS DIRECT TO YOUR EMAIL OR PHONE --------------------------------------------------------------------
Our alert feature sends real-time notifications directly to your email or phone when a signal is generated, allowing you to take immediate action and stay ahead of the market.
With our system, you first establish your own rules for trading in the strategy tester - this includes your criteria for entering and exiting trades.
Once you've defined these conditions, our system will start sending you alerts. These alerts will be triggered whenever your specified conditions are met. So, if the market matches your 'enter trade' conditions, you'll receive an alert prompting. Similarly, when your 'exit trade' conditions are met, you'll receive another alert.
Remember, these alerts are purely based on the conditions you set.
Once the condition is met, you will receive alerts directly to your email or phone when enter and exit a trade based on your custom conditions. To make sure you receive these notifications click on notifications tab.
---------------------------------------------------------------7) ADVANCED AND CUSTOMIZABLE SETTINGS MENU----------------------------------------------------------------------
We designed Easy Trade indicators with traders in mind, so it's user-friendly, easy to navigate and users can customize inputs, style, and colors of every feature in the indicator's settings menu.
-----------------------------------------------------------------------8) EASY TRADE PRO - BACKTESTING SYSTEM----------------------------------------------------------------------
Easy Trade Pro features a highly effective and realistic backtesting system, designed to mirror as closely as possible the real-world scenarios of entering and exiting trades.
Step 1:
Open the settings menu of the Indicator.
Once opened the settings menu click on properties.
Decide on the capital you wish to invest. Choose whether to use contracts or USD and determine the size of your orders. For the sake of realism, we recommend not exceeding 25% of your capital per order. However, if you decide to utilize your entire capital, make sure to adjust your stop loss accordingly. For instance, if you have a capital of 10K and use 10K with a stop loss at 2%, your potential loss would be $200. Conversely, if you use only 2K of your 10K capital with a stop loss at 10%, you would still lose the same 2% of your capital. To make your simulation even more authentic, consider incorporating broker fees or commissions into your calculations. For example, spot market fees are typically around 0.10%. If you're backtesting markets with low liquidity, consider factoring in slippage as well.
Step 2:
Navigate to the 'Inputs' section and scroll down until you come across 'Backtesting System - Strategy Test'. Once you locate this, click on the box and activate the 'USE STRATEGY SYSTEM' option by checking the tick box.
Also You will then need to set a 'Start Date' and 'End Date', establishing a specific time period during which you wish to test your strategy.
Otherwise you can consider to use the deep backtesting feature.
Step 3:
It's now time to establish the conditions for entering a trade. You can choose from five different types of custom buy signals: Good Buy, Good Buy Bull, Great Buy, Incredible Buy, and Bullish Reversal. Note that 'Great Buy' and 'Incredible Buy' are rare signals, so we advise against using them frequently in mechanical strategy tests; instead, consider them more for manual live tests. For more consistent results, we recommend using the other buy signals.
After determining your preferred buy signal, you can choose how many confirmation candles you wish to wait for before entering a trade. A 'confirmation' means that if the next candle closes above the opening or closing price of the chosen buy signal, it's considered a confirmation. This could be the opening or closing price, depending on whether the candle is green (close > open) or red.
You can set the number of confirmation candles in different time frames: below 2h, between 2h and 10h, and above 10h.
Step 4:
It's now time to safeguard your trade by managing risk. You can choose to implement a stop loss, expressed in percentage terms, or opt for a trailing stop. A trailing stop is a type of stop loss order that moves with the market price. It is designed to protect gains by enabling a trade to remain open and continue to profit as long as the market price is moving in a favorable direction. However, the trade closes if the market price changes direction by a specified amount (the 'trailing stop distance').
Additionally, you can minimize losses and move the stop loss to your entry point once the price reaches a certain percentage of profit. This strategy can help secure potential gains while limiting the potential for losses.
Step 5:
Now it's time to set the conditions for exiting the trade. You have the option to divide your exit into a maximum of four parts, with each part representing 25% of the position size. For each take profit point, you can choose from three different custom sell signals: Good Sell, Good Sell Bear, and Bearish Reversal.
Similarly, the concept of confirmation candles also applies here, but in this case, the candles are not closing above. A 'confirmation' for a sell signal means that if the next candle closes below the opening or closing price of the selected sell signal, it's considered a confirmation. This could be the opening or closing price, depending on whether the candle is green (open > close) or red (close < open).
So, when you're looking to sell, a confirmation would occur if the next candlestick's closing price is lower than the opening or closing price of the candlestick that triggered the sell signal. This indicates a potential bearish trend, providing the confirmation to execute the sell order.
Additionally, we've introduced a feature that allows you to move your stop loss to the entry point whenever the first take profit (1TP) is reached, which equates to hitting one custom sell signal.
Step 6:
We've also designed an alternative method for taking profits. With this approach, you can choose to exit your position once a fixed percentage gain from the entry point is reached. For instance, you might decide to exit when a 10% profit is achieved. Similarly to the previous method, this approach allows you to choose up to four exit points and determine the proportion of your position you want to close at each stage.
Conclusion:
Easy Trade Pro provides users with various options for entering and exiting trades. To effectively utilize the indicator, we strongly recommend conducting thorough backtesting and considering the results across your preferred trading pairs. It is advisable to analyze a substantial number of trades, ideally exceeding 100 trades, to obtain reliable insights into the indicator's performance. This approach will help you gain a better understanding of how Easy Trade Pro aligns with your trading strategy and objectives.
❗Keep attention❗
It is important to note that no trading indicator or strategy is foolproof, and there is always a risk of losses in trading. While this indicator may provide useful information for making conclusions, it should not be used as the sole basis for making trading decisions. Traders should always use proper risk management techniques and consider multiple factors when making trading decisions.
It is also important to be aware of the limitations of simulated performance results. Hypothetical or simulated results do not represent actual trading, and since trades have not been executed, results may be over- or under-compensated for market factors such as lack of liquidity. Simulated trading programs are also designed with the benefit of hindsight, and no representation is being made that any account will achieve profits or losses similar to those shown. Therefore, our indicators are for informative purposes only and not intended to be used as financial advice.
We encourage traders to use our indicators as part of a well-rounded trading strategy and to always be aware of the risks involved in trading. Remember that past performance is not indicative of future results and always trade responsibly.
Ta StrategyHello guys
This script follows traditional technical indicators
MACD, ADX, RSI and pivot points
If the price is above the resistance and the MACD has crossover ,and the RSI 14 is above 50
ADX is higher than 20, and DI+ is higher than DI-. This is a buy signal and vice versa for a sell signal
The script moves the stop loss to the entry price after the first target is reached
You can specify the quantity you want to sell when the price reaches the first target
There are also options like if you want the script to entry long or short, or both
you can reverse the strategy if it does not work well
If you want to inquire about any details, please let me know in the comments
METRIC-TREND-TRADERThis script is a Fully Automated trading script meant to be used with "Oanda" broker and the plug-ins for algorithmic trading automation.( FOREX ONLY)
This script is meant to capture "TREND FOLLOWING " for intraday charts (1hour) preferably and will hold for days / weeks .trading on forex markets.
(The combination of indicators includes a short high and low price channel and a longer term high and low price channel)
This script is original in description as being automated to try and capture dynamic trending markets with both long and short fractal price channels. although trend trading is not an original concept. trend trading with this dynamic indicator allows the user visualize both short term and longer term price action at the same time, helping to make better trading decisions. the channels are designed to buy breakouts in the direction of the longer term trend while trailing stop a built-in stop loss that allows normal market movement while attempting to lock in flexible profits.
The concept of this indicator is be able to quickly visualize trends by high lighting the large green areas beneath price "when trending long" which is the difference between the (user defined) short term lows and the (user defined) Long period price lows.
For "down trending" markets a large red area above price will be displayed and this is the difference between the (user defined) short term highs and the (user defined) long term highs.
This strategy uses a lower than reward profile to jump in direction of market moves for continuation,
(1 risk to 4 reward)
in the likelihood the instrument will continue (example) 200 pips before it reverts 50 pips in the counter direction.
This strategy should only be used in markets that you believe are "TRENDING" at the time of trading otherwise you risk trend trading a range market.
This script uses a (user defined period) of short term high and low price ( green/red color) and (user defined period) Long Term high and low price (green/red) chosen in the indicator settings menu.
The default parameters are 10 with a (minimum of 1 and maximum of 10000) for the short term channel and 50 with a (minimum of 1 and maximum of 10000) for the long term price channel , the default parameters = roughly 2 days "long term" and 10 hours "short term" of price action on the (1 hour) chart.
Strategy entries and exits , for Long trades the trade will be entered if the short term high crosses above the Long Term high and the Short term low is not equal to the Long term low . the trade will exit if profit or stop loss are hit or if the Short term low crosses under the long term low.
For Short trades the trade will enter short if , the short term low crosses under the long term low and the short term high is not equal to the long term high. the trade will exit if profit or stop loss are hit or the short term high crosses over the long term high
"The default parameters should be kept unless you fully understand the complete strategy"
There are two very important inputs to be selected at the user setting menu "Long Only " and "Short Only" if you are looking to place long trades only select "Long Only" or for short trades select " Short Only" it is not recommended to keep both selected as it will trade both sides!
When the trade is entered a red , a blue and green horizontal dotted line will appear on the chart.
the blue line is the strategy entry price , the red line is the stop loss price , and the green line is the take profit price . the colors will invert if the trade is long or short.
(Setting alerts should be done in the indicator settings menu, and the parameters you chose will determine the stop loss/target and the amount of "units = (position size)" you wish to trade for the (forex only) markets. using "alert() function calls only" is the only alert that should be used with this strategy.
(note : when "alert() function calls only" is set two messages will be sent, one closing any open position in the opposite direction and one placing the new order regardless if you are currently in a trade or not)
Trade targets , stoploss and trade position size are a user defined variables entered in the indicator settings menu. (target pips minimum 0 and a maximum of 1000)(stop pips minimum of 0 and maximum of 1000)
Back test date range is included in the script for back testing different data periods.
the back ground will be colored a transparent navy blue if the period you are looking trading is with in the date range( note: to place live trades the end date will need to be in the future)
this is also adjustable in the settings menu
The avoid spread filter is a user defined time in which the spread is typically higher than average, applying this filter avoids trades in the specified time. When this filter is applied there will be a transparent red back ground color in the specified time.
Back test default setting are equivocal to OANDA:USDJPY
at the time of this publication placing trades with the "Oanda" broker are as follows , USD units = 2000 equal 2000 USD position size . "Oanda" current leverage is 20 to 1 for this particular pair and commission is paid in spread (1.4) pips = 0.19 USD per trade , Margin required for the trade is 100.0 USD , Position sizing = 10% of a 1000 USD account.
OANDA:USDJPY
Volume-Weighted Supertrend Strategy [wbburgin]This is a script that can be used as a strategy or a standalone indicator.
The Volume-Weighted Supertrend is a supertrend based on a rolling VWAP, instead of a normal price source. The strategy has two components - a supertrend based off of this VWAP (shown on the chart) and a supertrend from volume itself (not plotted on the chart directly). The supertrend from volume is an example of my "Supertrend Any Source" indicator, where a custom ATR is created from non-OHLC data; this is available as both a separate public script and also in my "wbburgin_utils" library for you to use in your own script creation.
The supertrend from volume acts as a confirmation filter for the VWAP-supertrend shown on-chart. If the volume supertrend is trending up and the VWAP-based supertrend is also trending up, a buy signal is generated. Likewise, if the volume supertrend is trending down and the VWAP-supertrend is trending down, a sell signal is generated. The colors are based off of whether both supertrends are trending up or down: green for both up, blue for only price up, orange for only price down, and red for both down.
The settings enable you to change the volume length and the ATR length separately, as well as the multiplier and the source for the price supertrend. If you load the indicator for the first time and see no entries and exits, this is because "Show Strategy Entries and Exits" is disabled in the settings. This is if you plan on using the strategy as an indicator and don't want to be bothered by the entry and exit symbols on the chart. Additionally, for those who like clean charts (like me), you can turn all the labels off in the settings, as well as the highlighting.
My default strategy settings for the strategy results shown below are as follows: 5% equity per trade, 5 degrees of pyramiding, commissions of 0.08% per trade. This strategy doesn't come with stops yet, so please be aware of that before using it to trade - I highly suggest you create your own stops based off of your R/R ratio and personal risk tolerance. Additionally, it works best on trending assets (b/c of the supertrends) with high volume. This might mean it does not work as well on lower timeframes.