3C QFL Mean reversalWhat is QFL trading strategy?
QFL stands for Quickfingersluc, and sometimes it is referred to as the Base Strategy or Mean Reversals. Its main idea is about identifying the moment of panic selling and buying below the base level and utilizing Safety orders.
What is Base level or Support Level?
Base level or Support Level refers to the lowest price level that was reached before the moment the price started increasing again. At that level, you can notice that buyers of some cryptocurrencies make a strong reaction.
In this strategy we can also reverse the strategy and go short. But i must warn you that that is alot riskier.
QFL is meant to be used on higher TF's like 1hr, 2hr and 4hr. But this strategy also work well on lower Timeframes.
The script also simulates DCA strategy with parameters used in 3commas DCA bots for futures trading.
Experiment with parameters to find your trading setup.
Beware how large your total leveraged position is and how far can market go before you get liquidated!
Do that with the help of futures liquidation calculators you can find online!
Included:
An internal average price and profit calculating, instead of TV`s native one, which is subject to severe slippage.
A graphic interface, so levels are clearly visible and back-test analyzing made easier.
Long & Short direction of the strategy.
Table display a summary of past trades
Vertical colored lines appear when the new maximum deviation from the original price has
been reached
All the trading happens with total account capital, and all order sizes inputs are expressed in percent.
Điểm Pivot và cấp độ
IPB_JPMUPS_2022Introduction :
This indicator serves two purposes
a) It is a multi dimensional floor pivot indicator, which takes its concepts from Secrets of Pivot Boss book of Frank Ochoa. Most of the indicators suggested in the book are packed in one indicator.
b) It also has an inbuilt intraday strategy which identifies trend, direction and momentum based on CPR (Central Pivot Range) concepts and accordingly comes up with trading signals.
How this indicator is different from the published ones :
A). Role as an indicator
This indicator has all the CPR (Central Pivot Range) indicators packed together which provides a ready made solution for CPR based trading. The following are the salient features of this indicator :
1) This indicator plots daily CPR using previous day high, low and close. It also plots Support and Resistance levels based on floor pivots formula.
Moreover, it also plots developing CPR which is based on current day's high, low and close. Apart from that it also plots CPR for next day session as well which is useful for EOD analysis.
2) This indicator plots weekly CPR using previous week high, low and close. It also plots developing CPR which is based on current week's high, low and close.
3) This indicator plots monthly CPR using previous month high, low and close. It also plots developing CPR which is based on current month's high, low and close.
4) This indicator plots pivot EMA which is called PEMA. It uses three different EMAs which are customisable and uses them to plot a moving average web based on pivot points of each candle, which is called as PEMA. This also facilitates PEMA plotting for higher time frame (daily time frame) as well.
5) This indicator plots daily time frame moving average in intraday chart which can be used as a key zone during trading. The period is customisable.
B) Role as a strategy
This indicator also functions as an intraday trading strategy called JPMUPS (JP stands for author's nickname. MUPS stands for Manoj Ultimate Pivot Strategy). This strategy attempts to identify trend, direction and momentum and when all these three align together it gives buy and sell signals. The concepts are as under:
Trend identification :
Whenever a trend is established, the developing CPR starts to widen. Hence this strategy uses the width of the developing CPR and compares it with the MA of the width to identify the trend. If the width of the developing CPR crosses the 34 period MA (can be customised), it assumes a trend is developing.
Direction identification:
Whenever a direction is established, the CPR components, namely BC and TC shifts its position. Hence this strategy uses this concept to identify the direction. It computes MACD sort of histogram of the BC and TC difference and whenever the histogram slops upwards, it assumes bullish direction and vice versa.
Momentum identification :
Whenever momentum is established, the developing CPR starts sloping upwards. Hence this strategy uses this concept to identify the momentum. It computes RSI of the developing CPR and if the RSI is above the 34 period MA (can be customised) of RSI , it assumes momentum is establishing and vice versa.
When all the above are aligned together, it gives buy or sell signals suitably.
How to use it :
a) Indicator usage :
1) CPR zones are key zones which predominantly acts as support and resistance zones. Looking at the price action at these zones, one can look for trading opportunities in live market.
2) Developing CPR acts as pull back zones and is very useful in live trading and also EOD analysis for spotting opportunities by combining price action.
b) Strategy usage :
1). Strategy signals are only indicative. Users are strongly advised not to use the strategy blindly. Users are advised to go though the CPR concepts thoroughly and use this strategy signals only as a supplement for further decision making / analysis.
Markets meant for :
1). This indicator and Strategy is predominantly designed for I ndian stock markets . However it can be customised for other markets as well by changing the timings of the markets in the parameters.
Market conditions meant for :
1). This indicator is meant for all types of market conditions as its predominant role is to plot the key support and resistance zones using CPR concepts.
2). The strategy is mainly found to be effective in trending markets and predominantly indices like Nifty and Bank Nifty . Hence Users are advised to use this only as an indicative feature and not blindly trade based on signals. The strategy is found to be less effective in lower time frames like 1min / 3min, etc. 15 min time frame provides fair performance. However it doesnt mean that it will continue to perform in the same manner in the future.
MXV-BSzoneSummary: averaging down the cost of capital with lines and color zones
The strategy can include many long entries when the market is bullish or many short entries when the market is bearish hourly. And we put a stoploss order with same value for all of them.
For me, it is always dificult to detect when and at which best price exactly to stop loss and to take profit after I make an buy or sell entry in hourly time frame, so i make may entry at different price values. And i prefer make only one stoploss price for all the entries
I use 2 visual trailing lines to determine zone of stop loss or take profit in same chart.
Every 60 minutes 2 visual horizontal line will permanently stamp on the charts: red and white.
When to Sell
- When the market is bearish in daily time frame, red line will be marked in H1 time frame as for sell zone. And when candles move up near or cut cross over the red line (we call it: action moment), it is recommended that we should short and make a stoploss at price of the white line (white line in this situation is higher than the red line). I can take profit whenever I have time to watch chart.
When to buy
- When the market is bullish in daily time frame, green line will be marked in H1 time frame as for buy zone. And when candles move down near or cut cross over the green line (we call it: action moment), it is recommended that we should long and make a stoploss at price of the white line (white line in this situation is beneath the green line). I can take profit whenever I have time to watch chart.
* When I miss an action moment, i will need to wait until the next action moments appear and make an entry (or many) then rapidly make an trailing exit with white line value (price) reducing risk
The strategy works fine
[Crypto] Autotrade 2.3* Commission: 0.06% = Binance future fee.
1. HIGH/LOW PIVOT:
- Pivot Left: 10
- Pivot Right: 10
Long trend identification:
- Higher High occurs after Higher Low.
Short trend identification:
- Lower Low occurs after Lower High.
2. ADX INDICATOR: 1h & 4h timeframe have a strong strength for open trade.
- ADX smoothing: 14.
- DI length: 14.
- ADX STRONG > 25.
3. SUPERTREND INDICATOR:
- Long trend when closes candle is above the green line.
- Short trend when closes candle is below the red line.
4. OPEN POSITION RULE:
- BUY/LONG: reject to Supertrend at current timeframe.
- SELL/SHORT: reject to Supertrend at current timeframe.
5. AUTOTRADE BINANCE FUTURE WITH MONEY MANAGERMENT: requires Pro, Pro +, Premium Tradingview & Webhook service.
6. BACKTEST RESULT:
- Deep backtest: 08 OCT 2010 - 3 JUL 2022:
- Backtest 129 Binance Future pairs: 78 pairs with winrate > 52% | 51 pairs with winrate < 52%
Buy/Sell on the levelsThis script is generally
My describe is:
There are a lot of levels we would like to buy some crypto.
When the price has crossed the level-line - we buy, but only if we have the permission in array(2)
When we have bought the crypto - we lose the permission for buy for now(till we will sell it on the next higher level)
When we sell some crypto(on the buying level + 1) we have the permission again.
There also are 2 protect indicators. We can buy if these indicators both green only(super trend and PIVOT )
Jun 12
Release Notes: Hello there,
Uncomment this section before use for real trade:
if array.get(price_to_sellBue, i) >= open and array.get(price_to_sellBue, i) <= close// and
//direction < 0 and permission_for_buy != 0
Here is my script.
In general - this is incredible simple script to use and understand.
First of all You can see this script working with only long orders, it means we going to get money if crypto grows only. Short orders we need to close the position on time.
In this script we buy crypto and sell with step 1% upper.
You can simply change the step by changing the price arrays.
Please note, if You want to see where the levels of this script is You Have to copy the next my indicator called LEVEL 1%
In general - if the price has across the price-level we buy some crypto and loose permission for buying for this level till we sell some crypto. There is ''count_of_orders" array field with value 2. When we bought some crypto the value turns to 0. 0 means not allowed to by on this level!!! The script buy if the bar is green only(last tick).
The script check every level(those we can see in "price_to_sellBue" array).
If the price across one of them - full script runs. After buying(if it possible) we check is there any crypto for sell on the level.
We check all levels below actual level( of actual level - ''i'' than we check all levels from 0 to i-1).
If there is any order that has value 0 in count of orders and index <= i-1 - we count it to var SELL amount and in the end of loop sell all of it.
Pay attention - it sells only if price across the level with red bar AND HAS ORDERS TO SELL WHICH WAS BOUGHT BELOW!!!
In Strategy tester it shows not-profitables orders sometimes, because if You have old Long position - it sells it first. First in - first out.
If the price goes down for a long time and You sell after 5 buys You sell the first of it with the highest value.
There is 2 protection from horrible buying in this strategy. The first one - Supertrend. If the supertrend is red - there is no permission for buy.
The second one - something between PIVOT and supertrend but with switcher.
If the price across last minimum - switcher is red - no permission for buy and the actual price becomes last minimum . The last maximum calculated for last 100 bars.
When the price across last maximum - switcher is green, we can buy. The last minimum calculation for last 100 bars, last maximum is actual price.
This two protections will save You from buying if price get crash down.
Enjoy my script.
Should You need the code or explanation, You have any ideas how to improve this crypt, contact me.
Vladyslav.
Jun 12
Release Notes: Here has been uncommented the protection for buy in case of price get down.
5 hours ago
Release Notes: Changed rages up to actual price to make it work
Bjorgum Double Tap█ OVERVIEW
Double Tap is a pattern recognition script aimed at detecting Double Tops and Double Bottoms. Double Tap can be applied to the broker emulator to observe historical results, run as a trading bot for live trade alerts in real time with entry signals, take profit, and stop orders, or to simply detect patterns.
█ CONCEPTS
How Is A Pattern Defined?
Doubles are technical formations that are both reversal patterns and breakout patterns. These formations typically have a distinctive “M” or a “W” shape with price action breaking beyond the neckline formed by the center of the pattern. They can be recognized when a pivot fails to break when tested for a second time and the retracement that follows breaks beyond the key level opposite. This can trap entrants that were playing in the direction of the prior trend. Entries are made on the breakout with a target projected beyond the neckline equal to the height of the pattern.
Pattern Recognition
Patterns are recognized through the use of zig-zag; a method of filtering price action by connecting swing highs and lows in an alternating fashion to establish trend, support and resistance, or derive shapes from price action. The script looks for the highest or lowest point in a given number of bars and updates a list with the values as they form. If the levels are exceeded, the values are updated. If the direction changes and a new significant point is made, a new point is added to the list and the process starts again. Meanwhile, we scan the list of values looking for the distinctive shape to form as previously described.
█ STRATEGY RESULTS
Back Testing
Historical back testing is the most common method to test a strategy due in part to the general ease of gathering quick results. The underlying theory is that any strategy that worked well in the past is likely to work well in the future, and conversely, any strategy that performed poorly in the past is likely to perform poorly in the future. It is easy to poke holes in this theory, however, as for one to accept it as gospel, one would have to assume that future results will match what has come to pass. The randomness of markets may see to it otherwise, so it is important to scrutinize results. Some commonly used methods are to compare to other markets or benchmarks, perform statistical analysis on the results over many iterations and on differing datasets, walk-forward testing, out-of-sample analysis, or a variety of other techniques. There are many ways to interpret the results, so it is important to do research and gain knowledge in the field prior to taking meaningful conclusions from them.
👉 In short, it would be naive to place trust in one good backtest and expect positive results to continue. For this reason, results have been omitted from this publication.
Repainting
Repainting is simply the difference in behaviour of a strategy in real time vs the results calculated on the historical dataset. The strategy, by default, will wait for confirmed signals and is thus designed to not repaint. Waiting for bar close for entires aligns results in the real time data feed to those calculated on historical bars, which contain far less data. By doing this we align the behaviour of the strategy on the 2 data types, which brings significance to the calculated results. To override this behaviour and introduce repainting one can select "Recalculate on every tick" from the properties tab. It is important to note that by doing this alerts may not align with results seen in the strategy tester when the chart is reloaded, and thus to do so is to forgo backtesting and restricts a strategy to forward testing only.
👉 It is possible to use this script as an indicator as opposed to a full strategy by disabling "Use Strategy" in the "Inputs" tab. Basic alerts for detection will be sent when patterns are detected as opposed to complex order syntax. For alerts mid-bar enable "Recalculate on every tick" , and for confirmed signals ensure it is disabled.
█ EXIT ORDERS
Limit and Stop Orders
By default, the strategy will place a stop loss at the invalidation point of the pattern. This point is beyond the pattern high in the case of Double Tops, or beneath the pattern low in the case of Double Bottoms. The target or take profit point is an equal-legs measurement, or 100% of the pattern height in the direction of the pattern bias. Both the stop and the limit level can be adjusted from the user menu as a percentage of the pattern height.
Trailing Stops
Optional from the menu is the implementation of an ATR based trailing stop. The trailing stop is designed to begin when the target projection is reached. From there, the script looks back a user-defined number of bars for the highest or lowest point +/- the ATR value. For tighter stops the user can look back a lesser number of bars, or decrease the ATR multiple. When using either Alertatron or Trading Connector, each change in the trail value will trigger an alert to update the stop order on the exchange to reflect the new trail price. This reduces latency and slippage that can occur when relying on alerts only as real exchange orders fill faster and remain in place in the event of a disruption in communication between your strategy and the exchange, which ensures a higher level of safety.
👉 It is important to note that in the case the trailing stop is enabled, limit orders are excluded from the exit criteria. Rather, the point in time that the limit value is exceeded is the point that the trail begins. As such, this method will exit by stop loss only.
█ ALERTS
Five Built-in 3rd Party Destinations
The following are five options for delivering alerts from Double Tap to live trade execution via third party API solutions or chat bots to share your trades on social media. These destinations can be selected from the input menu and alert syntax will automatically configure in alerts appropriately to manage trades.
Custom JSON
JSON, or JavaScript Object Notation, is a readable format for structuring data. It is used primarily to transmit data between a server and a web application. In regards to this script, this may be a custom intermediary web application designed to catch alerts and interface with an exchange API. The JSON message is a trade map for an application to read equipped with where its been, where its going, targets, stops, quantity; a full diagnostic of the current state and its previous state. A web application could be configured to follow the messages sent in this format and conduct trades in sync with alerts running on the TV server.
Below is an example of a rendered JSON alert:
{
"passphrase": "1234",
"time": "2022-05-01T17:50:05Z",
"ticker": "ETHUSDTPERP",
"plot": {
"stop_price": 2600.15,
"limit_price": 3100.45
},
"strategy": {
"position_size": 0.1,
"order_action": "buy",
"market_position": "long",
"market_position_size": 0,
"prev_market_position": "flat",
"prev_market_position_size": 0
}
}
Trading Connector
Trading Connector is a third party fully autonomous Chrome extension designed to catch alert webhooks from TradingView and interface with MT4/MT5 to execute live trades from your machine. Alerts to Trading Connector are simple; just select the destination from the input drop down menu, set your ticker in the "TC Ticker" box in the "Alert Strings" section and enter your URL in the alert window when configuring your alert.
Alertatron
Alertatron is an automated algo platform for cryptocurrency trading that is designed to automate your trading strategies. Although the platform is currently restricted to crypto, it offers a versatile interface with high flexibility syntax for complex market orders and conditions. To direct alerts to Alertatron, select the platform from the 3rd party drop down, configure your API key in the ”Alertatron Key” box and add your URL in the alert message box when making alerts.
3 Commas
3 Commas is an easy and quick to use click-and-go third party crypto API solution. Alerts are simple without overly complex syntax. Messages are simply pasted into alerts and executed as alerts are triggered. There are 4 boxes at the bottom of the "Inputs" tab where the appropriate messages to be placed. These messages can be copied from 3 Commas after the bots are set up and pasted directly into the settings menu. Remember to select 3 Commas as a destination from the third party drop down and place the appropriate URL in the alert message window.
Discord
Some may wish to share their trades with their friends in a Discord chat via webhook chat bot. Messages are configured to notify of the pattern type with targets and stop values. A bot can be configured through the integration menu in a Discord chat to which you have appropriate access. Select Discord from the 3rd party drop down menu and place your chat bot URL in the alert message window when configuring alerts.
👉 For further information regarding alert setup, refer to the platform specific instructions given by the chosen third party provider.
█ IMPORTANT NOTES
Setting Alerts
For alert messages to be properly delivered on order fills it is necessary to place the following placeholder in the alert message box when creating an alert.
{{strategy.order.alert_message}}
This placeholder will auto-populate the alert message with the appropriate syntax that is designated for the 3rd party selected in the user menu.
Order Sizing and Commissions
The values that are sent in alert messages are populated from live metrics calculated by the strategy. This means that the actual values in the "Properties" tab are used and must be set by the user. The initial capital, order size, commission, etc. are all used in the calculations, so it is important to set these prior to executing live trades. Be sure to set the commission to the values used by the exchange as well.
👉 It is important to understand that the calculations on the account size take place from the beginning of the price history of the strategy. This means that if historical results have inflated or depleted the account size from the beginning of trade history until now, the values sent in alerts will reflect the calculated size based on the inputs in the "Properties" tab. To start fresh, the user must set the date in the "Inputs" tab to the current date as to remove trades from the trade history. Failure to follow this instruction can result in an unexpected order size being sent in the alert.
█ FOR PINECODERS
• With the recent introduction of matrices in Pine, the script utilizes a matrix to track pivot points with the bars they occurred on, while tracking if that pivot has been traded against to prevent duplicate detections after a trade is exited.
• Alert messages are populated with placeholders ; capability that previously was only possible in alertcondition() , but has recently been extended to `strategy.*()` functions for use in the `alert_message` argument. This allows delivery of live trade values to populate in strategy alert messages.
• New arguments have been added to strategy.exit() , which allow differentiated messages to be sent based on whether the exit occurred at the stop or the limit. The new arguments used in this script are `alert_profit` and `alert_loss` to send messages to Discord
MarketCipher B Wavetrend DivergencesCreated for the MarketCipher Community and friends :)
I have published this before but it was taken down by Tradingview and PineCoders because they wanted a more in depth description so here it is:
This strategy is mainly based on Wavetrend Oscillator by LazyBear / blue momentum waves on MarketCipher B.
The Wavetrend indicator is a combination of 2 oscillator lines that signals the short term direction of the price once the lines cross. The Wavetrend indicator is useful but only once a divergence has been identified based on the crosses and the price which is what this strategy partly uses to open trades.
Here is a list and description of the different conditions that goes into the entries and exits.
Long trade:
1) Bullish divergence, regular or hidden
2) Price is above Exponential Moving Average
3) Chande Momentum Oscillator value is above x
Short trade:
1) Bearish divergence, regular or hidden
2) Price is below Exponential Moving Average
3) Chande Momentum Oscillator value is below x
The Exponential Moving Average (EMA) is a type of moving average that is price based, lagging (or reactive) indicator that displays the average price of a security over a set period of time. The EMA is however different from a normal moving average and values the recent price action. A Moving Average is a good way to confirm trends which is what it is used for in this strategy. If enabled the strategy will only open long trades above the EMA and only short trades below the EMA.
The Chande Momentum Oscillator is a technical momentum indicator and was designed specifically to track the movement and momentum of a security. The oscillator calculates the difference between the sum of both recent gains and recent losses, then dividing the result by the sum of all price movement over the same period. In this strategy it is used like the EMA to filter out bad trades that goes against the trend. The EMA is better at trading the overall trend but the Chande Momentum Oscillator is a lot better at identifying short term market conditions that are favorable for entering at divergences.
One of the most important aspects when creating a trading strategy is to know when to take profit and to make it as dynamic as possible so that it changes to the market conditions. This is what i have tried to do and the reason why this divergence trading strategy works well.
These are the 3 different exit conditions:
1) A dynamic take profit that will signal a short term trend reversal that is based on pivot points and moving averages.
2) Another dynamic take profit based on pivot points that like the previous take profit is used to determine and anticipate potential changes in market price and reversals.
3) A normal % fixed take profit
Photo of what the dynamic take profit looks like on the chart:
The pivot pointexit comes from this indicator that i have helped update and modify from the original script:
When you have found the right settings you can insert the messages from your automatic trading platform at the bottom of the inputs and then create an alert with your unique webhook address along with the alert message below:
{{strategy.order.alert_message}}
I hope this strategy will be useful to automate part of your trading or help you identify and backtest divergences for your manual trading.
Future updates to come.
Enjoy!
Bot fib/pivot Hello, friends!
This strategy is based on the fibonacci level you choose in the setup and possible pivot points under the control of Williams’ Percent Range.
Williams' Percent Range is a dynamic indicator that detects overbought/oversold conditions.
When the possible reversal points coincide with the fibonacci level, and the high or low points according to Williams also coincide, then an entry occurs.
One of the oldest and most reliable trading tools are widely used support and resistance levels.
In this strategy, we are trying to find these reversal levels based on fibonacci.
//LOGIC ENTRY SETTINGS
Deviation-deviation from the pivot point, the lower this figure, the more entries. The yellow lines on the chart are pivot points.
Fibonacci lvl-fibonacci level, from which the entry will occur, provided that other conditions match
Highest lookback-The setting, which refers to Williams' Percent Range , looks at how many candles ago, was high or low. The smaller the number, the larger, but less accurate inputs.
//AMOUNT(USDT) FIRST ORDER AND > % NEXT
-Martingale first order (the amount of the entrance to the usdt) / next order (Increase of each subsequent order as a percentage)
//EXIT SETTINGS (%, RSI)
-Use RSI for close position? (the position will not be closed if it is in the red, even if the RSI conditions worked)
-Use % for exit? Exit immediately upon reaching the specified percentage
-Use trailing? When the checkbox is checked, the position will be exited by trailing.
Activation trail,after?- When the specified percentage is reached, trailing is activated!
Stop_trail,%- if the last candle falls from the high (after the trailing is activated), the position will be exited.
For example:
We entered the purchase at 100 per asset, activation costs 10, and stop is 2.
the price reached 110, there was an activation, after that it went up to 120, and from the high of the last candle, a 2% drop occurs and the trade is exited.
PS:The default value is 1%, what does this give us? if there is a sharp increase, then we take away all the movement
Use only long?
Allow long?- Only long trades will be displayed
Allow short? Only short trades will be displayed
Allo reverse? Upon receipt of a return signal, the opposite position will be closed.
//MARTINGALE GRID
If there is a check mark in the line "Use martingale and grid?"
then the grid will be active
If there is a check mark in the "Limit each next entry,%?" then, even if the entry from the bot logic is triggered, and the price does not fall by the specified percentage, then there will be no entry!
If there is a check mark in the "Grid,%" column, then purchases with martingale support will be added with a decrease by the specified percentage!
PS: "Grid" always starts anew, as the input from logic triggered!
//FILTER SETTINGS
1) Use filter oscillator? (The filter uses 7 averaged oscillators)
Period-the period for which you will be billing
Upper line-Short entry border.
(if 40, then there will be no entry until it reaches)
Lower line-Long entry border.
(20 until below 20 no entry)
2)Use filter range?
Filter type-moving average selection
Bars back-offset speed based on number of last bars
Period-period to calculate
3)Use filter supertrend?
Supertrend filter with multitimeframe
// How do filters work 2 and 3?
Filters can work either one by one or together.
A trade is entered when conditions from the logic and filters in the red zone are triggered, when there are no entries in the green zone.
//DATA RANGE:
-Testing results for any period of time
//PIRAMIDING
-Also in the settings there is a pyramid of order, keep this in mind. Make a deal for a small part of the deposit, and not for all the money at once!
PS: to use martingale, you need to write in the hook messages:
"amount": "{{strategy.order.contracts}}" (purchases will be in the amount of coins equivalent to USDT)
The default settings for TF are 1 minute, 10 inputs.
You can choose your settings for any TF, but look at different coins to make sure you have good statistics
Price action: Double top/bottom StrategyDouble top and bottom patterns are chart patterns that occur when the underlying investment moves in a similar pattern to the letter "W" (double bottom) or "M" (double top).
In this strategy, I use Pivot High/Low to find Double top and bottom.
Entry long: when Double bottom occur.
Entry short: when Double top occur.
Risk: Reward: You can change % Stop loss and Target pfofit.
Price action: Trendline Break StrategyThis strategy use trendline to entry. Trendline be drawed from Pivots High/Low.
Entry Long: When price break up trendline.
Entry Short: When price break down trendline.
Risk:Reward setup is 1:1.
You can backtest with whichever pair and whichever timeframe.
I backtested:
- If scalping: should use timeframe 5m, set up SL, TP is 2%.
- If swing trade: should use timeframe 1H, set up SL 2%, TP is 3%.
Should use with other indicator to increase winrate.
DCA Bot for ProfitViewThe base for this strategy is the "Backtesting 3commas DCA Bot v2" script by rouxam. I have made some additions, edits, and fixes, as well as tailored it for usage with ProfitView.
The strategy works in such a way that you select one or multiple rules together, in order to determine when a trade should be initiated.
The selectable rules are:
RSI-7: Initiate trading when the 7 period RSI goes below a specified threshold.
Technicals: This is essentially the TradingView screener strength. A multitude of technical indicators combined that range from Strong Sell - Sell - Buy - Strong Buy.
QFL: Find a support/resistance line on a specified timeframe, and initiate trading only when the price is below a certain point from this line.
Once the deal start rule is met, trading will initiate, and a series of additional orders will be placed and spaced out according to the order settings set in the indicator. These orders includes Take Profit, Stoploss, Trailing Take Profit, and specified additional entry orders to DCA your way into a position.
The indicator is set up so that by hooking this up to ProfitView, all of the signals should automatically be replicated to your assigned exchange, along with discord/telegram notifications for when the deals start and end, and the resulting pnl.
If you want to use it for spot markets, while technically possible, you will need to significantly edit the PV Alert syntax that i have supplied below.
Run this on your testnet of choice, it is likely that there are undiscovered issues at this point.
The strategy currently only works with 'Longs' at the time of publishing, but may be subject to change.
==ProfitView Setup==
!!Important!!
The assigned PV Alert name must contain the keyword 'Long', fex "DCA Long"
Uncheck the Once per Bar advanced filter option on the PV Alert you use for this.
Copy/Paste the text into the PV Alert: pastebin.com
Weekly Returns with BenchmarkSome time ago I published Monthly returns table. Now It's time for weekly one.
To get it work you need a pretty big screen, but I hope it will be useful for some of you.
Features of this table includes:
Display weekly returns of your strategy, benchmark, and alpha over this benchmark.
Select benchmark to be another instrument
Select the date from which you want to compute monthly returns
Show/hide benchmark and alpha
Choose colors for gradient for gain/loss values
Use it with any type of strategy
Use it with replay
Thanks to @MUQWISHI to help me coding it.
It's not about the strategy itself but the way you display returns on your chart. So pls don't critique my choice of the strategy and its performance 🙂
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
ONWAY Indicator PV6The ONWAY indicator is a comprehensive and earnestly designed tool aimed to increase confidence in a traders market bias. ONWAY analyzes market trends, market strength, and price action near key pivot levels to form a bias on future price action. Of course, it is fundamentally impossible to predict the future, but we all try it now don't we. Gain an edge in the markets and add ONWAY to your tool box.
ONWAY Functionality
Confirmation Signals: ONWAY provides real-time, non-repaint BUY and SELL signals upon the active timeframes candle close.
Targets and Stops: ONWAY will, upon signal confirmation, set a target and stop loss.
Position Management: ONWAY will monitor its current position, if one exists, and attempt to tighten the stop loss if possible.
ONWAY Details
Symbols and Timeframes: ONWAY is restricted to approved symbols and timeframes indicated by the 🟢 icon next to "Optimized:" and "ONWAY Timeframe:" on the dashboard. If an unapproved combination of symbol and timeframe is in use, ONWAY will be disabled (no signals will be visible). See author's instructions for the current ONWAY watchlist or to submit a symbol/timeframe request.
Position Details: Apart from the on chart signals and position plot, the ONWAY dashboard will indicate the current position, entry price, target price, and stop price.
Stop Loss: ONWAY has a unique stop loss/exit strategy that has proved, based on our calculations, to be advantageous. If price reaches or exceeds the stop loss, ONWAY will not close the position unless there is a candle close on the active timeframe exceeding the stop level. This is known as a soft stop loss and identified on the dashboard as "(Soft)" next to the stop price. Additionally, the stop loss will change throughout the position, following the low, for a long position or high, for a short position, within a given period, but the soft stop loss will not exceed beyond a 1:1 risk to reward ratio (the risk will always be equal to or less than the potential reward). It is importance to be aware that the soft stop is utilized at this 1:1 threshold as well. On the plus side, the changing stop loss will impose a risk free position if it finds itself between the entry price and target price. At this stage the soft stop is no longer utilized, the stop loss can only approach the target price, and profit is uhhh.....certain (I don't think the mods will like that word 😉). If the soft stop is no longer in use, the dashboard will indicate this with "(Hard)" next to the stop price.
Position Sizing: The position sizing used for the backtested results is displayed on the dashboard next to "Strategy Lot Size:". This position size is provided solely as a reference for the backtest results. The choice of a position size is left to the users discretion.
Backtest Results: With any strategy, backtesting is an excellent way to judge performance and viability, but it is important to recognize that past performance does not confirm repeatability in future market conditions.
Updates: ONWAY updates its acceptable symbols frequently to account for everchanging market conditions. This includes adding new symbols, rejecting previously compatible symbols, and modifying the optimal window for current symbols.
Acceptability Criteria: The criteria for a symbol to be deemed acceptable requires that its backtested results deliver a win rate greater than 70%, profit factor greater than 1.2, and its equity chart appear favorable. These metrics are available to users by clicking on "Strategy Tester" located on the bottom panel of the chart view.
Accessibility: To gain access to ONWAY, see the author's instructions below.
Use of this script implies that you acknowledge that past performance does not necessarily indicate future results and that guarantees are not possible in this trading realm.
Strategy Execution Template - Master PatternThis script is a template to execute your strategy with Stop Loss and Take Profit and showing Trades.
Then, you can write your strategy without taking care of Stop Loss and Take Profit method.
3x Fixed Percent Stop Loss, Trailing Percent Stop Loss, Trailing ATR Stop Loss, Tailing HHLL Stop Loss
3x Fixed Percent, Take Profit
TTC2022NVDA15mThis is version 1.0 "TTC2022NVDA15m" Strategy. This has only been back tested for the ticker "NVDA" on the 15m ext hour chart for the year 2022. The reason I isolated this strategy to 2022 is because NVDA's chart patterns have changed from the previous 2 years. So, I wanted to develop an indicator-based strategy that was consistent with current market conditions. I will adjust any variables that make this TTC2022NVDA15m Strategy more accurate in the future as more 2022 data comes out.
It's based on my TTC: Triangular Trend Channel script that dynamically creates a trend channel on the move. It uses open, high, low, close, simple moving average inputs for its plot lines and ema11 for calculation purposes. The default trend channel line settings are based off sma128.
Default color coded in top to bottom price order:
green = top
orange
blue
white = center (128sma)
purple
yellow
red = bottom
Please excuse me if this appears scrunched up. I had to set my browser to 50% size to fit in the YTD 15 minute ext chart.
• Remember * This has only been back tested for the ticker "NVDA" on the 15m ext chart for the year 2022 to date. *
Villa Dinamic Pivot Supertrend StrategyThis strategy works better on AUD/USD in the 15 min timeframe. It uses the Pivot Supertrend to enter trades based on different filters such as:
- Simple EMA filter: that the 3 EMAs should be in order
- DEMA angle: you can choose the DEMA Angle threshold and the look back to check the angle to just trade trades with DEMA at a certain angle
- Simple DEMA filter: just check if close is above or below DEMA
- Take Every Supertrend Signal: this means to take every normal supertrend signal to not just wait for a pivot supertrend signal to enter a trade (specially on long pivot supertrend periods)
- Stop Loss at Supertrend: this means that the stop loss will be at the Normal Supertrend, if false the stop loss will be placed at the ATR level selected.
- 2 Steps Take Profit: this means if you want to close a percentage of position as soon as the normal supertrend crosses the entry price, you can select the % on the "2 Steps TP qty" input
- Stop Loss ATR Multiplier: if Stop Loss at Supertrend is off this will be the stoploss based on the atr
- Take Profit ATR Multiplier: if Stop Loss at Supertrend is off this will be the takeprofit based on the atr (you have to keep in mind that the ratio between this two will make the Risk to reward ratio of the take profit when the Stop Loss at Supertrend)
- Testing: to avoid overfitting, you can select date ranges for backtesting and forwardtesting and select which testing you wanna do
TTC2022TSLA15mThis is version 1.0 "TTC2022TSLA15m" Strategy. This has only been back tested for the ticker "TSLA" on the 15m chart for the year 2022. The reason I isolated this strategy to 2022 is because TSLA's chart patterns have changed from the previous 2 years. So, I wanted to develop an indicator-based strategy that was consistent with current market conditions. The default setting for percent of equity is set to 5% risk. I will adjust any variables that make this TTC2022TSLA15m Strategy more accurate in the future as more 2022 data comes out.
It's based on my TTC: Triangular Trend Channel script that dynamically creates a trend channel on the move. It uses open, high, low, close, simple moving average inputs for its plot lines and sma9 & ema5 for calculation purposes. The default trend channel line settings are based off sma64.
Default color coded in top to bottom price order:
green = top
orange
blue
white = center (64sma)
purple
yellow
red = bottom
• Remember * This has only been back tested for the ticker "TSLA" on the 15m chart for the year 2022 to date. *
TTC2022SPY4hrThis is version 1.0 "TTC2022SPY4hr" Strategy. This has only been back tested for the ticker "SPY" on the 4hr ext chart for the year 2022. The reason I isolated this strategy to 2022 is because SPY's chart patterns have changed from the previous 2 years. So, I wanted to develop an indicator-based strategy that was consistent with current market conditions. The default setting for percent of equity is set to 5% risk. I will adjust any variables that make this TTC2022SPY4hr Strategy more accurate in the future as more 2022 data comes out.
It's based on my TTC: Triangular Trend Channel script that dynamically creates a trend channel on the move. It uses open, high, low, close, simple moving average inputs for its plot lines and ema1 & a hard coded ema5 for calculation purposes. The default trend channel line settings are based off sma7.
Default color coded in top to bottom price order:
green = top
orange
blue
white = center (7sma)
purple
yellow
red = bottom
• Remember * This has only been back tested for the ticker "SPY" on the 4hr ext chart for the year 2022 to date. *
[Herif's] Harmonic Patterns ProjectionBullish and bearish 5-point patterns are based on various Fibonacci retracement levels and signify potential reversal zones (PRZ).
As they become 0%-80% complete, the dashed-line pattern will appear, displaying the PRZ and giving you time to prepare for a reversal.
Different combinations of specific fib retracements and extensions result in different patterns, and each is named for identification.
Bullish patterns signify a potential turn to the upside are colored green.
Bearish patterns signify a potential turn to the downside are colored red.
1- Live harmonic patterns which are still in trade with XABCD and ratio with labels.
2- Entry, Stop and Target levels on chart for all patterns.
in Settings:
Error Percent - This is error tollerance for matching pattern ratios. Cannot expect price ratios to be exactly as per books. Hence, adding few error tolerance will help identify patterns better. In this indicator defatult 1%
When there are multiple patterns on chart, Entry, Stop, and Target labels and lines are created with specific distance from each other to provide clarity to the users.
Trailing and Targets
1-Trailing Start Stage - Defines when to start trailing stop-loss. It is recommended to set this value to either Target 1 or Target 2. Disabling the trailing or setting too far away may lead to being in trade on ranging market for too long. This may also result in drawing errors related to distance from current bar.
2- Custom Target Levels - Target and stop levels are set to optimal values based on individual patterns. If you want to override these levels, use the available input option to override targets and chose your custom Target1, Target2, Target3 and Target4
All Pending Patterns you can enable or disable
Classic Patterns : Gartley , Bat, Butterfly , Crab , Deep Crab , Cypher , Shark , Nenstar
Anti Patterns: Anti Nenstar, Anti Shark , Anti Cypher , Anti Crab , Anti Butterfly , Anti Bat, Anti Gartley , Navarro 200
This is a Strategy version of indicator below
tercanomics' all-weatherIt is a strategy that takes scalps by using support/resistance levels detection when the exhaustion conditions have been met.
It is profitable to take scalp positions with reversals on sideways market by its nature, as well as its entry and exit prices, as they are being used as take profit and stop loss levels. If there is already an existing trend that one wants to follow, this strategy can meet the need for signals in the trends direction within a low time frame, whereas enter and exit prices can be used for dynamic support and resistance levels for manual trades within high time frames.
Besides the fact that it is designed for every market and every product, Volume Filter and some specific levels like Stop-Loss & Dollar-Cost Averaging percentages were created for BitMEX: XBTUSD, 1-minute time frame.
The backtest equations have been calculated with an assumption of the use of 100% of the equity and depending on the chosen exchange to trade, there will be market fee (commission) needed.
PM us to obtain access.
Special thanks to @hophop