Bitcoin Long Time Cycle Detection (RGB Box)Hi!
I tried to analyze bitcoin's cycles since the beggining at INDEX:BTCUSD (on 1D timeframe) using some tools like Moving Averages and Ichimoku Cloud and Fibonacci Levels based on ATH prices of each cyle. Each cycle type is represented by colors:
1- Green is when the price is going to have a new ATH compared to the last ATH
2- Red is when the price is going to move down from the last ATH
3- Blue is when the price seems not going down anymore and moving up go get to the last ATH
The result is very interesting because each cycle has similar behaviours. The Main cycle is when there is a Green, Red and Blue and then there will be a Green again for the new cycle.
Logic of detecting Red part some times makes a Red between two Green s (which is normal but it makes a bit difference in the behaviour of the last part of that shorter Red part) so the valuable part is the Blue !
You can see the interesting noticable similarity of the Blue 's price movement and duration (written in the boxes).
What I understood from this model about each part was:
In the Greens, strongest candles of the whole market appear with higher volumes. which are the shortest parts too.
in the Reds, we see a lot of hammer candles here, price moves down step by step (unless it is going to have a NEW ATH which makes the duration of Red part vert shorter than the main Red parts before the Blue). Temporary resistances make some range channels but finally the price will go down a lot!
in the Blues, the main weak uptrend from the bottom which is finally going to see its last ATH price, but very slowly and weakly compared to the Green part. Some times there will be a lot of temporary downtrends too but in the end, price is going up. this part maybe the best time to buy for long time holding.
What makes this model interesting is that cycles match fundamental events like HALVING and periodic cycle analyses based on that.
In the last cylce we haven't seen the Blue Signal yet! so there should be alot of more patient till we say there will be no more down.
I hope it gives you more insight on the long term trend of crypto. I would be glad to hear your ideas to improve the model.
1-BTCUSD
Wunder Keltner botWunder Keltner bot
1. Wunder Keltner bot is based on the breakout of the Keltner channel. For calculation, 2 channels are used, one for long trades, and the other for short trades. The division into 2 channels is used for more accurate entry calculations depending on trend directions.
2. The ADX indicator is used to filter signals and determine the trend strength. ADX determines the strength of the trend and confirms the entry into the strategy if the value is greater than the level indicated in the settings.
3. There are 3 ways to calculate Stop Loss and Take Profit. You can choose one of them:
Classic Stop Loss and Take Profit in a fixed percentage
ATR Stop Loss
Keltner. Stop Loss, which is set on the opposite Keltner’s Channel Band from Keltner breakout.
4. ATR and Keltner use Risk Reward (R:R) to calculate Take Profit. The script calculates Risk Reward based on the determined Stop loss level and uses the ration to calculate Take Profit.
5. A function for calculating risk on the portfolio (your deposit) has been added to the script. When this option is enabled, you get a calculation of the entry amount in dollars relative to your Stop Loss. In the settings, you can select the risk percentage on your portfolio. The loss will be calculated from the amount that will be displayed on the chart.
For example. Deposit - $1000, you set the risk to 1%. SL 5%. Entry volume will be $200. The loss at SL will be $10.10$ this is your 1% risk or 1% of the deposit.
Important! The risk per trade must be less than the Stop Loss value. If the risk is greater than SL, then you should use leverage.
The amount of funds entering the trade is calculated in dollars. This option was created if you want to send the dollar amount from Tradingview to the exchange. However, putting your volume in dollars you get the incorrect net profit and drawdown indication in the backtest results, as TradingView calculates the backtest volume in contracts.
To display the correct net profit and drawdown values in Tradingview Backtest results, use the ”Volume in contract” option.
Makumup X Tesseract 2.2SuperTrend is one of the most common ATR based trailing stop indicators.
In this version you can change the ATR calculation method from the settings. Default method is RMA, when the alternative method is SMA .
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a superindicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on equities, futures or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
VWATR Multi-Timeframe RibbonThis script combines and averages Volume-Weighted Moving Averages in a specific way to make a unique ATR band that expands and retracts based on the volume in the current market.
This indicator allows for viewing up to 4 VWATR Bands on all the major trading timeframes.
This creates support and resistance levels that are fluid enough for traders to use these 4 methods:
- Identify a range to trade between in sideways markets.
- Identify when we are beginning a move(breaking out of the bands and using them as support to trade from).
- During a trend, traders can use higher timeframe VWATR Bands to identify take profits or potential rejection points.
- Identify when a trend may be over(losing the band as support after a breakout).
NOTE: This script will work fine on identifying crypto assets and stocks, but markets with different volume parameters will negatively affect the accuracy of this script.
BTC Twitter SentimentBTC Twitter Sentiment - shows the total numbers of all negative, neutral and positive Bitcoin related tweets.
On default settings, the tweets are plotted in red (negative) white (neutral) as well as green (positive). The three charts are stacked so the total number of tweets is easily discernible.
Furthermore, there's an optional smoothing setting in the options.
The Twitter Sentiment data is provided daily by IntoTheBlock; Since data is only updated once a day the graph might look chunky on lower timeframes, even with smoothing.
BTC Hashrate ribbonsBTC Hash Rate ribbons / Hash Rate cross
This strategy goes long when BTCs Hash Rate 30 day moving average crosses above the 60 day moving average, signifying that miner capitulation is over and recovery has started.
When the opposite signal is given, which signifies the beginning of miner capitulation, the strategy goes short (or flat, depending on configuration). This is generally considered the most popular Hash Rate related strategy.
The strategy is based on this medium article: medium.com
Thanks to the recent integration of IntoTheBlock data into Tradingview, we can now effortlessly show Hash Rate data on our chart,
keep in mind however, that IntoTheBlock doesn't provide Hash Rate data on timeframes below daily, so this strategy is based used on the daily, weekly or even monthly time frames.
Hash Rate definition:
The Bitcoin hash rate is the number of times per second that computers on the Bitcoin network are hashing data to verify transactions and perform the encryption that secures the network. The hash rate is an indicator of how healthy the Bitcoin network is at any given time, and is driven primarily by difficulty mining and the number of miners. Generally, a high hash rate is considered a good thing.
More precisely, the Bitcoin hash rate is the number of times per second that computers on the Bitcoin network are hashing data to verify transactions and perform the encryption that secures the network.
Volume Buy/Sell (by iammaximov)Buy/Sell Volume
Buy/Sell volume based on total bar amplitude (high/low price) and close/open (for calculate vbuy > vsell or vbuy < vsell)
DlineDline is a indicator that was developed by B-Negative. This indicator was developed under convergence logic. If we have many information of prices, when the information was averaged with more enough, the average line will be the linear line that has direction. The direction of this linear line can help traders to analyze the direction of trends. Dline was made with TEMA, EMA, DEMA, and Dline line that is a average line between DEMA and EMA.
Under B-Negative's concept, DEMA and EMA that are average lines will convergence and have same direction when the trends are coming. Amount of data must more enough and diferrect by assets' type. However, user can change value of DEMA, Dline, EMA, and TEMA by themself under 7 concepts below.
1. EMA will convergence to close Dline when the trend will be changing.
2. The uptrend will occure when EMA above/below Dline and candle sticks are green/red color.
3. TEMA was setted similair DEMA.
4. When new high/low of wave cross TEMA and can not retrun to create higher/lower high/low (At oversold/overbought, Stocastic 9,3,3 counting with loop technique), that is exit point of position.
5. Difference of timeframe or assets could use different parameters. (Setting based on 4 rule above.)
6. Divergence between Dline and EMA mean sentiment of assets are sideways.
7. If Dline and EMA look like same line, the trend is most strength trend.
Dline use thickness = 4
EMA use thickness = 1
This ex. is timeframe day.
Trend Identifier StrategyTrend Identifier Strategy for 1D BTC.USD
The indicator smoothens a closely following moving average into a polynomial like plot and assumes 4 staged cycles based on the first and the second derivatives. This is an optimized strategy for long term buying and selling with a Sortino Ratio above 3. It is designed to be a more profitable alternative to HODLing. It can be combined with 'Accumulation/Distribution Bands & Signals' and 'Exponential Top and Bottom Finder'.
Ultimate Bitcoin StrategyThis is my masterpiece.
I recommend using it following strict rules:
Buy = Wait for the next green Heikein Ashi candle and RSI above 50
Sell: Wait for the next red Heikein Ashi candle and RSI below 50
Use it in H1
Enjoy.
Fast v Slow Moving Averages Strategy (Variable) [divonn1994]This is a simple moving average based strategy that takes 2 moving averages, a Fast and a Slow one, plots them both, and then decides to enter a 'long' position or exit it based on whether the two lines have crossed each other. It goes 'long when the Fast Moving Average crosses above the Slow Moving Average. This could indicate upwards momentum in prices in the future. It then exits the position when the the Fast Moving Average crosses back below. This could indicate downwards momentum in prices in the future. This is only speculative, though, but sometimes it can be a very good indicator/strategy to predict future action.
I've tried some strategy settings and I found different promising strategies. Here are a few:
BTCUSD ( BitStamp ) 1 Day Timeframe : EMA, Fast length 25 bars, Slow length 62 bars => 28,792x net profit (default)
BTCUSD ( BitStamp ) 1 Day Timeframe : VWMA, Fast length 21 bars, Slow length 60 bars => 15,603x net profit
BTCUSD ( BitStamp ) 1 Day Timeframe : SMA, Fast length 18 bars, Slow length 51 bars => 19,507x net profit
BTCUSD ( BitStamp ) 1 Day Timeframe : RMA, Fast length 20 bars, Slow length 52 bars => 5,729x net profit
BTCUSD ( BitStamp ) 1 Day Timeframe : WMA, Fast length 29 bars, Slow length 60 bars => 19,869x net profit
Features:
-You can choose your preferred moving average: SMA , EMA , WMA , RMA & VWMA .
-You can change the length average for each moving average
-I made the background color Green when you're currently in a long position and Red when not. I made it so you can see when you'd be actively in a trade or not. The Red and Green background colors can be toggled on/off in order to see other indicators more clearly overlayed in the chart, or if you prefer a cleaner look on your charts.
-I also have a plot of the Fast moving average and Slow moving average together. The Opening moving average is Purple, the Closing moving average is White. White on top is a sign of a potential upswing and purple on top is a sign of a potential downswing. I've made this also able to be toggled on/off.
Let me know if you think I should change anything with my script, I'm always open to constructive criticism so feel free to comment below :)
TT Multibands MTFThis Multi Moving Average Indicator is for a long list of Moving Averages:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Weighted Moving Average (WMA)
- Hull Moving Average (HMA)
- Double Exponential Moving Average (DEMA)
- Triple Exponential Moving Average (TEMA)
- Volume Weighted Moving Average (VWMA)
- Kaufman's Adaptive Moving Average (KAMA)
- Relative Moving Average (RMA)
- Arnaud Legoux’s Moving Average (ALMA)
Advantages:
- Auto Plotting the Lable: < TIMEFRAME + BAND TYPE + LENGTH >
- Multi TimeFrame (MTF)
- Usable with Custom Time Frames: You can choose any Time Frame out of your Custom Time Frame List
- "No Repainting"
- "No Gaps" on lower Chart Time Frames (HD, no "Stairs")
"No Repainting" and "No Gaps" TRUE
"No Gaps" FALSE
Trade HourThis script is just finds the best hour to buy and sell hour in a day by checking chart movements in past
For example if the red line is on the 0.63 on BTC/USDT chart it mean the start of 12AM hour on a day is the best hour to buy (all based on
It's just for 1 hour time-frame but you can test it on other charts.
IMPORTANT: You can change time Zone in strategy settings.to get the real hours as your location timezone
IMPORTANT: Its for now just for BTC/USDT but you can optimize and test for other charts...
IMPORTANT: A green and red background color calculated for show the user the best places of buy and sell (green : positive signal, red: negative signals)
settings :
timezone : We choice a time frame for our indicator as our geo location
source : A source to calculate rate of change for it
Time Period : Time period of ROC indicator
About Calculations:
1- We first get a plot that just showing the present hour as a zigzag plot
2- So we use an indicator ( Rate of change ) to calculate chart movements as positive and negative numbers. I tested ROC is the best indicator but you can test close-open or real indicator or etc as indicator.
3 - for observe effects of all previous data we should indicator_cum that just a full sum of indicator values.
4- now we need to split this effects to hours and find out which hour is the best place to buy and which is the best for sell. Ok we should just calculate multiple of hour*indicator and get complete sum of it so:
5- we will divide this number to indicator_cum : (indicator_mul_hour_cum) / indicator_cum
6- Now we have the best hour to buy! and for best sell we should just reverse the ROC indicator and recalculate the best hour for it!
7- A green and red background color calculated for show the user the best places of buy and sell that dynamically changing with observing green and red plots(green : positive signal, red: negative signals) when green plot on 15 so each day on hour 15 the background of strategy indicator will change to 15 and if its go upper after some days and reached to 16 the background green color will move to 16 dynamically.
Magic BOXThe Magic BOX strategy is designed to work with cryptocurrency and Forex.
Working timeframe from 1 minute to 1 hour.
The strategy is based on the formation of a trade zone. Probably everyone has already noticed that every day there is a period of time that sets a certain corridor for further price movement in order to get out of it up or down. In the Magic BOX strategy, you yourself set the period that gives the best result using only 2 parameters - "Start hour" and "Final hour".
Every day, the algorithm generates a zone at a selected time and then opens deals to break through the upper or lower level of the resulting trading zone.
In addition, the settings have the ability to show additional entries - these are the moments of price rollback to the middle of the zone, as well as repeated breakouts of levels after the completion of the previous transaction.
-------------------------------------
💹 SETUP SETUP:
-------------------------------------
To configure, you should change the values "Start hour" and "Final hour" - the hour of the beginning and the hour of the end of the formation of the trading zone.
By default, the parameters are 20 hours and 7 hours (the time corresponds to the time zone of the exchange!).
To enable additional re-breakout signals, use - "Additional deals (repeat in the zone)"
To enable additional signals for position averaging use - "Additional deals (averaging position)"
-------------------------------------
🟢 TAKE SETUP:
-------------------------------------
The strategy has 3 types of take: BOX, FIX and DAY_CLOSE
BOX - take as a percentage of the width of the formed zone.
FIX - take as a percentage of the asset price.
DAY_CLOSE - select the hour at the beginning of which we close the position forcibly.
-------------------------------------
⛔️ STOP SETUP:
-------------------------------------
The strategy has 3 types of stop line: BOX, FIX and DAY_CLOSE
BOX - stop as a percentage of the width of the formed zone.
FIX - stop as a percentage of the asset price.
DAY_CLOSE - select the hour at the beginning of which we close the position forcibly.
-------------------------------------
💡 OTHER USEFUL FEATURES
-------------------------------------
✅ The screen has a compact display of a table with strategy settings and current level values.
For the convenience of saving your settings, use the standard PrintScreen function.
✅ 👉 In the strategy settings, each field has hints, to do this, hover over the ⓘ sign
-------------------------------------
Magic BOX 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.
-------------------------------------
-------------------------------------
Magic BOX 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.
-------------------------------------
========================================================================================================
Стратегия Magic BOX предназначена для работы с криптовалютой и Форексом.
Рабочий таймфрейм от 1 минуты до 1 часа.
В основе стратегии лежит формирование зоны проторговки. Наверное уже каждый заметил, что каждый день есть период времени, который задаёт некий коридор для дальнейшего движения цены с целью выйти из него вверх или вниз. В стратегии Magic BOX Вы сами задаёте тот период, который даёт наилучший результат с помощью всего 2-х параметров - "Start hour" и "Final hour".
Каждый день алгоритм формирует зону в выбранное время и далее открывает сделки на пробой верхнего или нижнего уровня полученной зоны проторговки.
Кроме этого в настройках есть возможность показать дополнительные входы - это моменты отката цены к середине зоны, а также повторные пробития уровней, после завершения предыдущей сделки.
-------------------------------------
💹 НАСТРОЙКА СЕТАПА:
-------------------------------------
Для настройки следует изменять значения "Start hour" и "Final hour" - час начала и час окончания формирования зоны проторговки.
По умолчанию стоят параметры 20 часов и 7 часов (время соответствует времени часовой зоны биржи!).
Для включения дополнительных сигналов повторных пробоев используйте - "Additional deals (repeat in the zone)"
Для включения дополнительных сигналов на усреднение позиции используйте - "Additional deals (averaging position)"
-------------------------------------
🟢 НАСТРОЙКА ТЕЙКОВ:
-------------------------------------
Стратегия имеет 3 типа тейка: BOX, FIX и DAY_CLOSE
BOX - тейк в процентах от ширины сформированной зоны.
FIX - тейк в процентах от цены актива.
DAY_CLOSE - выбираем час, в начале которого принудительно закрываем позицию.
-------------------------------------
⛔️ НАСТРОЙКА СТОПА:
-------------------------------------
Стратегия имеет 3 типа стоп-линии: BOX, FIX и DAY_CLOSE
BOX - стоп в процентах от ширины сформированной зоны.
FIX - стоп в процентах от цены актива.
DAY_CLOSE - выбираем час, в начале которого принудительно закрываем позицию.
-------------------------------------
💡 ПРОЧИЕ ПОЛЕЗНЫЕ ФУНКЦИИ
-------------------------------------
✅ На экране есть компактное отображение таблицы с настройками стратегии и текущими значениями уровней.
Для удобства сохранения своих настроек - воспользуйтесь стандартной функцией PrintScreen.
✅ 👉 В настройках стратегии у каждого поля есть подсказки, для этого наведите курсор на знак ⓘ
-------------------------------------
Стратегия Magic BOX является закрытой! Вы можете получить к ней тестовый доступ на 48 часов.
👉 Для того, чтобы получить доступ или задать вопросы пишите мне в личные сообщения или по контактам, указанным в моей подписи.
-------------------------------------
Bitcoin Support BandsSMA and EMA support/resistance bands for Bitcoin. Based on 4 week multiples; 1 month, 3 month, 6 month, 1 year, 2 year, 4 year.
BTC Price TrendThe crypto market is reacting very quickly based on BTC price, thus monitoring the BTC price is very helpful.
This script will color the candles based on the BTC price trend. Set the timeframe and down/up percentage to monitor the BTC price trend, and the script should not repaint.
The indicator will monitor the BTC price in a high frame, for example, for 4 hours, if the price goes down the set percentage during one candle, will change the candle color. Thereafter, if the price goes up within a small timeframe (as you set) then the candle color will be changed.
So, in case the bar color is red, then it is recommended to avoid trading since the BTC price is down trending.
The indicator is requesting the BTC price as of now, and the previous closed price, then it will calculate the price difference, if it result is minus, then the price is in a downtrend, else it is in an uptrend.
RSI OverlayThis is the stock RSI index using the Price as the midline.
It can be useful to view information normally displayed in a second pane overlaid on the price chart. As far as I know, this has not been done for one of the most widely used indicators, the Relative Strength Index.
This can be overlaid anywhere on the chart and every parameter is variable. If you'd like to change the position, the RSI, midline, upper line, and lower line are scaled with a factor "*close/x"
To change the position on the chart, simply change the "X" until you are pleased with the location.
The RSI MA was distracting so I removed it. I also published this indicator including the MA, titled "RSI Overlay with MA."
BTC Active Address Momentum (On-chain)This indicator shows the difference between the % change in BTC price and the % change in BTC’s active addresses (BTC’s utility value).
- Dark red: Extreme overbought conditions
BTC price is increasing too fast and outgrows the increase in its utility value
(RSI of % change difference > 70)
- Light red: Overbought conditions
BTC price is increasing too fast and outgrows the increase in its utility value
(RSI of % change difference > 60)
- Dark green: Extreme oversold conditions
BTC price is dropping too fast and outruns the decrease in its utility value
(RSI of % change difference < 30)
- Light green: Oversold conditions
BTC price is dropping too fast and outruns the decrease in its utility value
(RSI of % change difference < 40)
*Not financial advice.
Rate Of Change Trend Strategy (ROC)This is very simple trend following or momentum strategy. If the price change over the past number of bars is positive, we buy. If the price change over the past number of bars is negative, we sell. This is surprisingly robust, simple, and effective especially on trendy markets such as cryptos.
Works for many markets such as:
INDEX:BTCUSD
INDEX:ETHUSD
SP:SPX
NASDAQ:NDX
NASDAQ:TSLA
Trend IdentifierTrend Identifier for 1D BTC.USD
It smoothens a closely following moving average into a polynomial like plot.
And assumes 4 stage cycles based on the first and second derivatives.
Green: Bull / Exponential Rise
Yellow: Distribution
Red: Bear / Exponential Drop
Blue: Accumulation
Red --> Blue --> Green: indicates the start of a bull market
Green --> Yellow --> Red: indicates the start of a bear market
Green --> Yellow: Start of a distribution phase, take profits
Red --> Blue: Start of a accumulation phase, DCA
SOPR SignalThe script uses Glassnode's SOPR on-chain data to identify:
1. Sentiment Trends:
- Green circle on bottom (Bullish) -> Investors are selling in profits
- Red circle on top (Bearish) -> Investors are selling in losses
2. Short-term Entries:
- Small green circle on SOPR (Bullish) -> Approaching investor purchase price in bull run -> not willing to sell -> decrease supply
- Small red circle on SOPR (Bearish) -> Approaching break even price in bear run -> chance to get out -> increase supply
3. Potential Trend Change:
- Yellow circle on top/bottom -> Potential trend changing soon
Soren test 2Me cool u bad
Say we use strategy.risk.allow_entry_in() to only trade longs. When our script uses the strategy.entry() function to open a short trade, TradingView of course won’t allow our strategy to go short. But that doesn’t mean the trade is ignored. Instead the ‘enter short’ trade – which is actually a sell command – becomes an ‘exit long’ order.
Another way to think about this is the following. The strategy.entry() function can reverse positions: longs into shorts, and shorts into longs. That reverse behaviour gets stopped by strategy.risk.allow_entry_in(). What strategy.entry() instead ends doing is close positions: from long to flat, or from short to flat.
(The example strategies that we discuss later in this article show how strategy.risk.allow_entry_in() makes strategy.entry() close instead of open trades.)
Say we use strategy.risk.allow_entry_in() to only trade longs. When our script uses the strategy.entry() function to open a short trade, TradingView of course won’t allow our strategy to go short. But that doesn’t mean the trade is ignored. Instead the ‘enter short’ trade – which is actually a sell command – becomes an ‘exit long’ order.
Another way to think about this is the following. The strategy.entry() function can reverse positions: longs into shorts, and shorts into longs. That reverse behaviour gets stopped by strategy.risk.allow_entry_in(). What strategy.entry() instead ends doing is close positions: from long to flat, or from short to flat.
(The example strategies that we discuss later in this article show how strategy.risk.allow_entry_in() makes strategy.entry() close instead of open trades.)
Say we use strategy.risk.allow_entry_in() to only trade longs. When our script uses the strategy.entry() function to open a short trade, TradingView of course won’t allow our strategy to go short. But that doesn’t mean the trade is ignored. Instead the ‘enter short’ trade – which is actually a sell command – becomes an ‘exit long’ order.
Another way to think about this is the following. The strategy.entry() function can reverse positions: longs into shorts, and shorts into longs. That reverse behaviour gets stopped by strategy.risk.allow_entry_in(). What strategy.entry() instead ends doing is close positions: from long to flat, or from short to flat.
(The example strategies that we discuss later in this article show how strategy.risk.allow_entry_in() makes strategy.entry() close instead of open trades.)Say we use strategy.risk.allow_entry_in() to only trade longs. When our script uses the strategy.entry() function to open a short trade, TradingView of course won’t allow our strategy to go short. But that doesn’t mean the trade is ignored. Instead the ‘enter short’ trade – which is actually a sell command – becomes an ‘exit long’ order.
Another way to think about this is the following. The strategy.entry() function can reverse positions: longs into shorts, and shorts into longs. That reverse behaviour gets stopped by strategy.risk.allow_entry_in(). What strategy.entry() instead ends doing is close positions: from long to flat, or from short to flat.
(The example strategies that we discuss later in this article show how strategy.risk.allow_entry_in() makes strategy.entry() close instead of open trades.)
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