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
Полосы и каналы
Double Bollinger Binary OptionsThis script uses 2 Bollinger bands and rsi oversold and overbought region to give signals. Basically, it detects those conditions where the market gets spiked in one direction aggressively(mostly during news) and then reverses back, although signals occur less frequently, this strategy is worth trying. Keep the timeframe for 5 minutes and trade for 5 candles i.e. 25 minutes :)
BUY/SELL on the levels onlyMy discribe is:
There ara a lot of levels we would like to buy some crypto.
When the price has acrossed 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 hiegher 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(supertrend and PIVOT)
VXD Cloud EditionVXD Cloud Edition.
to overcome sideways market conditions this cloud configured for low timeframe.
every TA is same as VXD Supercycle but show as cloud.
Symbols on chart show Premium and Discount Prices
X-Cross = Engulfing Candle with weak volume .
O-circle - Engulfing Candle with strong volume .
Pivot point and Rejected Block
Pivot show last High and low of a price in past bars
Rejected Block show when that High or Low price are important level to determined if it's Hidden Divergence or Divergence (with RSI)
Setting
Momentum: RSI = 25 , RSI MA = 14
Trend: Rolling VWAP and ATR and Subhag (Everthing show as a cloud)
Trailing STOP: ATR 12 x 2.4
Highlight Bars color when volume is above SMA 6
SMA200 act as TP Line
Risk:Reward Calculation
if Buy your Stoploss will be previous Pivot low
if Sell your Stoploss will be previous Pivot high
and TP line will be calculated form there, then show in Orange color line
Buy condition : Close is above Cloud and close above pivot high
Sell condition : Close is below Cloud and close below pivot low
Trip : add this to alerts setting.
Order {{strategy.order.action}} filled on {{ticker}} @ {{strategy.order.price}} {{strategy.order.alert_message}}.
MY_SCALP strategyThe MY_SCALP strategy is designed to work with any instrument (cryptocurrency, stocks, forex).
The working timeframe for scalping is small from 1 to 15 minutes, and for trend trading from 30 minutes.
Signals are generated based on the price range (channel) within which the price of the instrument moves.
When the price of the channel breaks up, we expect an upward movement, and when it breaks down, we expect a downward movement.
To avoid manipulations in the market, the algorithm monitors the level of the price relative to the global trend and thus filters out a large part of the false signals.
In addition, in the settings it is possible to show additional inputs - these are the moments of rebound from the edge of the channel inwards, also with filtering applied.
-------------------------------------
💹 SETUP SETUP:
-------------------------------------
To adjust, you should change the value of the CHANNEL multiplier - this depends on the sensitivity and flexibility of the range.
For TF 5m it will be about 8-9, and for TF 1H about 4-5. That is, the higher the TF, the lower the value of the CHANNEL multiplier.
-------------------------------------
🟢 TAKE SETUP:
-------------------------------------
The strategy has 2 takes
You can choose the type of take - FIX or CHANNEL
FIX - fixed targets in %.
CHANNEL - channel takes (The width of the channel at the moment the signal appears is multiplied by the specified multiplier and thus the size of the take is calculated.).
Important: the 1st take cannot be more than the 2nd!
-------------------------------------
⛔️ STOP SETUP:
-------------------------------------
Stop type is also selectable:
FIX - fixed stop in %.
CHANNEL - channel stop (set % of the price for the offset from the opposite side of the trading channel. For additional entries, the stop uses the value of half the channel width + the specified offset from the position entry price).
You have the opportunity to activate the stop line tightening when the 1st tp1 take breakeven is reached.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ In the strategy, you can enable / disable the display of takes and stop lines.
✅ In the strategy, you can enable / disable the display of points of probable price rebounds.
✅ You can choose the direction of trading: long, short or any.
✅ You can choose the percentage of the position to close on the 1st take.
✅ It is possible to enable background highlighting of the current trend. This background does not stretch to the entire screen, but is limited to the calculated extremes, within which the asset price moves.
✅ The screen has a compact display of a table with the current strategy settings and the current state (position, takes, stop).
For the convenience of saving your settings, use the standard PrintScreen function.
✅ You can sign the strategy in the Notes field - this is convenient if you place several versions of the MY_SCALP strategy on the chart with different settings (for different pairs or for different timeframes).
✅ 👉 In the strategy settings, each field has hints , to do this, hover over the ⓘ sign
-------------------------------------
MY_SCALP strategy is closed! You can get test access to it for 48 hours.
👉 In order to gain access or ask questions, write to me in private messages or at the contacts indicated in my signature.
-------------------------------------
========================================================================================================
Стратегия MY_SCALP предназначена для работы с любым инструментом (криптовалюта, акции, форекс).
Рабочий таймфрейм для скальпинга - малый от 1 до 15 минут, а для трендовой торговли от 30 минут.
В основе формирования сигналов лежит ценовой рейндж (канал), внутри которого движется цена инструмента.
При пробитии ценой канала вверх, мы ожидаем восходящее движение, а при пробитии вниз - нисходящее.
Чтобы избежать манипуляций на рынке, алгоритм отслеживает уровень нахождения цены относительно глобального тренда и тем самым фильтрует немалую часть ложных сигналов.
Кроме этого в настройках есть возможность показать дополнительные входы - это моменты отскока от края канала внутрь, также с применением фильтрации.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Для настройки следует ищменять значение множителя канала CHANNEL - это этого зависит чувствительность и гибкость рейнджа.
Для ТФ 5м это будет примерно 8-9, а для ТФ 1Ч примерно 4-5. То есть, чем выше ТФ, тем ниже значение множителя CHANNEL.
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 2 тейка
Тип тейка можно выбрать - FIX или CHANNEL
FIX - фиксированные тейки в %.
CHANNEL - канальные тейки (Ширина канала в момент появления сигнала умножается на заданный множитель и таким образом высчитывается размер тейка.).
Важно: 1-й тейк не может быть больше 2-го!
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Тип стопа также выбирается:
FIX - фиксированный стоп в %.
CHANNEL - канальный стоп (задаётся % цены для отступа от противоположной стороны торгового канала. Для дополнительных входов стоп использует значение половины ширины канала + заданный отступ от цены входа в позицию).
У Вас есть возможность активировать подтяжку стоп-линии при достижении 1-го тейка tp1 в безубыток.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ В стратегии можно включить/отключить отображение тейков и стоп-линии.
✅ В стратегии можно включить/отключить отображение точек вероятных отскоков цены.
✅ Можно выбрать направление торговли: лонг, шорт или любое.
✅ Можно выбрать процент позиции для закрытия на 1-м тейке.
✅ Есть возможность включения фоновой подкраски текущего тренда. Данный фон не растягивается на весь экран, а ограничивается расчётными экстремумами, в рамках которых двигается цена актива.
✅ На экране есть компактное отображение таблицы с текущими настройками стратегии и текущим состоянием (позиция, тейки, стоп).
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ Вы можете подписать стратегию в поле Notes - это удобно, если Вы размещаете на графике несколько версий стратегии MY_SCALP с разными настройками (для разных пар или для разных ТФ).
✅ 👉 В настройках стратегии у каждого поля есть подсказки , для этого наведите курсор на знак ⓘ
-------------------------------------
Стратегия MY_SCALP является закрытой! Вы можете получить к ней тестовый доступ на 48 часов.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------
Bollinger Bands + EMA 9A 1 minute scalping strategy.
Uses Bollinger Bands (no basis line) and a 9 period EMA.
Waits for price to close below the lower Bollinger Band and the next candle to close bullish above the lower Bollinger Band but below the 9 Period EMA.
If all conditions are met, the script enters a long position with TP at the 9 Period EMA.
Hyper Bot | Self Optimizing Buy & SellThis strategy primarily uses Bollinger Bands with custom improvements and alterations in entry exit signals which i have learned over the past years.
How to use?
Visit strategy settings. You will see checkboxes before all options, meaning they can be turned ON and OFF.
For "Long SL %" to work, the "LONG" should be enabled aswell. If Long is not enabled, changing numbers in "Long SL%" won't make any difference.
Likewise if you want to test take profit, then either long or short or both should be enabled with "TP Long%" or "TP Short%"
This wide customization is being provided for you to be able to test all possible variations and choose whichever best is working for you. Play around with the numbers of SL% and TP% and find best ones that work for you in terms of drawdown, risk to profit etc.
Commission 0.1% by default is included, if however your commissions are lower, please change them to get better results.
This strategy is mainly optimized for Cryptocurrencies, however if you wish to use for indices and commodities please DM me, i will provide customization services.
Enjoy!
© Copyright 2022 "M Tahreem Alam"
Steven Primo's bollinger bands strategyHi, this strategy is taken from a video made by Steven Primo. You can look it up on YouTube if you want to know about it.
It is a mean-reversion strategy based on the Bollinger Bands, in which we wait for 5 consecutive closes above the upper band, and for a short-term top. Once it happens, we place an entry order on this top, with a stop at the nearest bottom before the movement started, and use the difference from the stop and entry point to determine the target. For shorting, it's the same process, but for the downside. From my testing, only long orders were profitable, but you can configure whichever you want.
It works well for directional markets with a low level of noise, as you can see with the BTCUSD chart. One of its caveats is the short number of occurrences, and the long stop loss and target. You can enable a trailing stop, but from my testings, it just made the results worse.
I made some modifications, like removing the MA requirement, since the entry point was above it almost all the time, and I forced the BB to use a log version of the prices, so that discrepancies are eliminated. You'll also notice that you can't select an extension that is lower than 100, and that is intentional, since you're not supposed to enter a trade in which you can lose more than what you can earn.
I chose not to implement any kind of risk management, but I might do that in the future. You can leave your suggestions in the comments.
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
PB Trend ScalperA moving average strategy using a long period RMA and a short period EMA. It has a trailing stop loss based on the previous higher high or lower low. It also has a no trade band surrounding the RMA whose thickness can be changed.
Check out the settings to see what elements values can be changed.
The strategy is set to use the whole balance on each trade currently.
Leverage can be adjusted as well as take profit target as %.
The default values are set up for the 1 hour on BTCUSD.
These can be tweaked to suit any timeframe or market.
Straight Trend V1Hello everyone,
We are proud to present you our "Straight Trend" Strategy.
Strategy is use a specified timeline's opening price as reference and draw a line between the current price and trend line.
Trend line is smoothed with last X times of highest and lowest values ( Donchian Methodology) in order to create less noise and fake alerts , therefore creates a channel of current prices time based opening price.
The timeline can be adjusted according to your specifications in the settings.
------
Why opening price ?
We are traders ,no matter what we do ,we always make a benchmark at the end of a day , week or at the end of a specified time line.
Example :
X commodity's price increased %15 in last days or Y commodity's price dropped %30 in last 2 weeks etc. etc.
Thats why the opening price have a hidden and much more important role in our trading sessions.
------
After the channel is created we remove the unnecessary lines from our output by filtering the direction with closing price.
IF the closing price is higher than Chanel reference price and direction goes upward the script gives you a BUY signal.
The same methodology is applied for SELL operations.
When to Take Profit?
We put a setting for profit percentage in scripts setting you can adjust the ratio as your choices.
When to Stop Loss or change direction of the trade?
The Straight Trends previously mentioned channel's inverse line was set as STOP LOSS and direction changer in the strategy with "STR-X" Marker.
Note : Strategy is much more effective with heikin-ashi bars due methodology of heikin ashi and with this bars it creates less signals with more accuracy, use at your own discretion.
Please don't hesitate to write us if you need support or assistance, we also appreciate your feedbacks.
Please be advised that this strategy is published with Educational Purposes and it is not a investment advice.
Thank you in advance.
Maddrix_club III (strategy)Maddrix club III (STRATEGY) is an advanced trading algorithm that goes long and short in spite of the market condition. It aims to capture large moves. It is the fruit of over a thousand hours of work, trials, errors, research, etc.
The STUDY version is also posted.
There are 5 main variables to adjust the indicator:
Framework length – Use this to establish the environment. Shorter length = volatile environment. Longer length = steadier.
Framework multiplier – Use this to adjust the environment to the asset. Lower value for less volatile price action and higher value for very volatile price action.
Search timeframe – Use this to lookback for a fractal . In theory, the longer the lookback the more reliable the fractal recognition.
Trigger line – Use this to adjust the trigger level. In theory, the lower the trigger the more signals you get.
Threshold – Use this to filter the signals. The higher the threshold, the less signal you get.
The best way to go about changing the settings, is to start off the default value. I’d do a monthly check-in playing with few of them and readjusting based on results from the exchange.
They are different, as this one can show you the equity curve.
It works on many markets as long as there is sufficient activity to create patterns and repetition.
You will notice a slight difference between the strategy calculation and the algo calculation (built in the algo) - this is because the exits are not exactly at the same levels. I left this on purpose, so that you can see that even with a little slippage, overall this is positive.
Very good results have been observed on the 15 min time frame though it technically works on all timeframe (5 min for example, 1 hour also). On the example above ETHUSDT – 15 min, the back test shows consistency in the results for the last 2 years. The theory behind it is based on probabilities, human emotions, and repetition in market patterns.
Results have also shown great adaptability, meaning the total profits don’t change considerably when we play with settings. This is very good because even if you try to fine tune a set of settings to the past, the probability that it keeps working in the future is rather high.
Very important note: the calculations DO NOT take into account any fee or slippage that you always experience on the exchanges.
The indicators only uses real time data, therefore it can’t repaint.
There are absolutely no guarantees about this algorithm and past results are not indicative of future performance.
Fees, slippage and API delay: for any algorithm you will use (from me or others), please keep in mind that fees add up, slippage and delay creates differences between algo theory and reality. We can put in place systems to circumvent that, but we will always have them.
Best TradingView Strategy - For NASDAQ and DOW30 and other IndexThe script is totally based on momentum , volume and price. We have used :
1: Bollinger Band Squeezes to know when a breakout might happen.
2: Used Moving Averages(SMA and EMA) to know the direction.
3: The success Rate of this strategy is above 75% and if little price action is added it can easily surpass 90% success mark.
4: Do not worry about drawdowns , we have implemented trailing SL ,so you might see a little extra drawdown but in reality its pretty less.
5: I myself have tested this strategy for 41 days with a 250$ account and right now I have 2700$.
EHMA Range StrategyThis script is a modified version of @borserman's script for the Exponential Hull Moving Average
All credit for the EHMA goes to him :)
In addition to the EHMA, this script works with a range around the EHMA (which can be modified), in an attempt to be robust against fake signals. Many times a bar will close below a moving average, only to reverse again the next bar, which eats away at your profits. Especially on shorter timeframes, but also on choppy longer timeframes this can make a strategy unattractive to use.
With the range around the EHMA, the strategy only enters a long/exit-short position if a bar crosses above the upper range. Vice versa, it only enters a short/exit-long position if a bar crosses below the lower range. This avoids positions if bars behave choppy within the EHMA range & only enters a position if the market is confident in it's direction. Having said that, fakeouts are still possible, but a lot less frequent. Having backtested this strategy vs the regular EHMA strategy (and having experimented with various settings), this version seems to be a lot more robust & profitable!
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 good as in historical backtesting.
This post and the script don’t provide any financial advice.
EMA bands + leledc + bollinger bands trend following strategy v2The basics:
In its simplest form, this strategy is a positional trend following strategy which enters long when price breaks out above "middle" EMA bands and closes or flips short when price breaks down below "middle" EMA bands. The top and bottom of the middle EMA bands are calculated from the EMA of candle highs and lows, respectively.
The idea is that entering trades on breakouts of the high EMAs and low EMAs rather than the typical EMA based on candle closes gives a bit more confirmation of trend strength and minimizes getting chopped up. To further reduce getting chopped up, the strategy defaults to close on crossing the opposite EMA band (ie. long on break above high EMA middle band and close below low EMA middle band).
This strategy works on all markets on all timeframes, but as a trend following strategy it works best on markets prone to trending such as crypto and tech stocks. On lower timeframes, longer EMAs tend to work best (I've found good results on EMA lengths even has high up to 1000), while 4H charts and above tend to work better with EMA lengths 21 and below.
As an added filter to confirm the trend, a second EMA can be used. Inputting a slower EMA filter can ensure trades are entered in accordance with longer term trends, inputting a faster EMA filter can act as confirmation of breakout strength.
Bar coloring can be enabled to quickly visually identify a trend's direction for confluence with other indicators or strategies.
The goods:
Waiting for the trend to flip before closing a trade (especially when a longer base EMA is used) often leaves money on the table. This script combines a number of ways to identify when a trend is exhausted for backtesting the best early exits.
"Delayed bars inside middle bands" - When a number of candle's in a row open and close between the middle EMA bands, it could be a sign the trend is weak, or that the breakout was not the start of a new trend. Selecting this will close out positions after a number of bars has passed
"Leledc bars" - Originally introduced by glaz, this is a price action indicator that highlights a candle after a number of bars in a row close the same direction and result in greatest high/low over a period. It often triggers when a strong trend has paused before further continuation, or it marks the end of a trend. To mitigate closing on false Leledc signals, this strategy has two options: 1. Introducing requirement for increased volume on the Leledc bars can help filter out Leledc signals that happen mid trend. 2. Closing after a number of Leledc bars appear after position opens. These two options work great in isolation but don't perform well together in my testing.
"Bollinger Bands exhaustion bars" - These bars are highlighted when price closes back inside the Bollinger Bands and RSI is within specified overbought/sold zones. The idea is that a trend is overextended when price trades beyond the Bollinger Bands. When price closes back inside the bands it's likely due for mean reversion back to the base EMA in which this strategy will ideally re-enter a position. Since the added RSI requirements often make this indicator too strict to trigger a large enough sample size to backtest, I've found it best to use "non-standard" settings for both the bands and the RSI as seen in the default settings.
"Buy/Sell zones" - Similar to the idea behind using Bollinger Bands exhaustion bars as a closing signal. Instead of calculating off of standard deviations, the Buy/Sell zones are calculated off multiples of the middle EMA bands. When trading beyond these zones and subsequently failing back inside, price may be due for mean reversion back to the base EMA. No RSI filter is used for Buy/Sell zones.
If any early close conditions are selected, it's often worth enabling trade re-entry on "middle EMA band bounce". Instead of waiting for a candle to close back inside the middle EMA bands, this feature will re-enter position on only a wick back into the middle bands as will sometimes happen when the trend is strong.
Any and all of the early close conditions can be combined. Experimenting with these, I've found can result in less net profit but higher win-rates and sharpe ratios as less time is spent in trades.
The deadly:
The trend is your friend. But wouldn't it be nice to catch the trends early? In ranging markets (or when using slower base EMAs in this strategy), waiting for confirmation of a breakout of the EMA bands at best will cause you to miss half the move, at worst will result in getting consistently chopped up. Enabling "counter-trend" trades on this strategy will allow the strategy to enter positions on the opposite side of the EMA bands on either a Leledc bar or Bollinger Bands exhaustion bar. There is a filter requiring either a high/low (for Leledc) or open (for BB bars) outside the selected inner or outer Buy/Sell zone. There are also a number of different close conditions for the counter-trend trades to experiment with and backtest.
There are two ways I've found best to use counter-trend trades
1. Mean reverting scalp trades when a trend is clearly overextended. Selecting from the first 5 counter-trend closing conditions on the dropdown list will usually close the trades out quickly, with less profit but less risk.
2. Trying to catch trends early. Selecting any of the close conditions below the first 5 can cause the strategy to behave as if it's entering into a new trend (from the wrong side).
This feature can be deadly effective in profiting from every move price makes, or deadly to the strategy's PnL if not set correctly. Since counter-trend trades open opposite the middle bands, a stop-loss is recommended to reduce risk. If stop-losses for counter-trend trades are disabled, the strategy will hold a position open often until liquidation in a trending market if th trade is offsides. Note that using a slower base EMA makes counter-trend stop-losses even more necessary as it can reduce the effectiveness of the Buy/Sell zone filter for opening the trades as price can spend a long time trending outside the zones. If faster EMAs (34 and below) are used with "Inner" Buy/Zone filter selected, the first few closing conditions will often trigger almost immediately closing the trade at a loss.
The niche:
I've added a feature to default into longs or shorts. Enabling these with other features (aside from the basic long/short on EMA middle band breakout) tends to break the strategy one way or another. Enabling default long works to simulate trying to acquire more of the asset rather than the base currency. Enabling default short can have positive results for those high FDV, high inflation coins that go down-only for months at a time. Otherwise, I use default short as a hedge for coins that I hold and stake spot. I gain the utility and APR of staking while reducing the risk of holding the underlying asset by maintaining a net neutral position *most* of the time.
Disclaimer:
This script is intended for experimenting and backtesting different strategies around EMA bands. Use this script for your live trading at your own risk. I am a rookie coder, as such there may be errors in the code that cause the strategy to behave not as intended. As far as I can tell it doesn't repaint, but I cannot guarantee that it does not. That being said if there's any question, improvements, or errors you've found, drop a comment below!
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.
bollinger_Banknifty_CE_PEIt is more suitable for day trading with a 15 min chart. It is more profitable in Banknifty option only. It is based on multiple Bollinger Band and RSI .
The label with Buy+1 and Buy-1 represents more profitable entry positions. The label Buy+1 and Buy-1 stands for entry positions/signals of option "CE" and option "PE" buy at ATM price and backtest results are based on last year's data with one lot .
The Blue dots indicates trailing stop loss of "CE" position and green dots indicates trailing stop loss of "PE" position.
It has an initial capital of 100000 and the size of the lot is 1. The target is 0.8% , stop-loss is 0.35% and trailing stop loss is 0.3% with close candle.
The commission paid is 20 cash per trade and the slippage is 5 ticks per trade. Some of the Indian broker's commission is only 10 cash per trade. Adjust the commission as per your broker.
Trades are conducted based on the intraday time in India set from 9.45 am to 3.0 pm. All positions will get square off at 3.15 pm.
It will execute a maximum of 2 trades per day. All other parameters are suitable for Algo trading with Indian stock brokers.
Rudy's BB with MartingaleMy first strategy script that uses Bollinger Bands and Martingale to increase contract size after negative 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. *
[ROXX] Advanced SuperTrend Strategy Hello Trader(s):
This is a CTA Strategy for BUY THE TRENDING. Try it in 4-hour Kline.
SuperTrend is one of the most common ATR based trailing stop indicators.
This is an alternative of the classical Supertrend based on candle close being above/beyond the previous Supertrend level.
Hope you'll enjoy it and it will improve your trading making you a better trader
ROXX
Donchian Breakout no repaintdonchian breakout strategy which i revise the script for no repaint signal
HURST Channel StrategyBased on the work TJS / Trading Zoom / Svoboda
Strategy based on Hurst channel with loss averaging when an open position is below 0.5 channel range.
How it works:
1. opens the long position when the close price crosses over the lower band (from bottom to top)
2. opens additional position (double in size) when average position price is lower than average channel value (0.5)
3. closes the position when the close price crosses over the higher band (from top to bottom)
Works the best on :
- volatile and continuous instruments (futures)
- on timeframes above 15 minutes
- uptrends or consolidations
- downtrends require more capital to open double positions