INVITE-ONLY SCRIPT
업데이트됨 Cyato Grid Basic Buy & Sell [BACKTEST]

Private indicator
This Grid bot strategy creates buy orders when the price goes down one level or more, and sell order when the price goes up one level or more.
To avoid useless trades, the lastest traded level is disabled until another level is crossed.
To create the grid, one upper level and one lower level is calculated. Those 2 levels are either given by the user using "MANUAL" mode or automatically calculated by an AI. The space between these two levels are then divided equally into several steps, creating the grid. The number of steps is chosen by the user, from 3 to 20.
HOW IT WORKS
This is the Backtest version meaning this is the one you should use with the Strategy Tester (more below).
Select either "MANUAL" or "AI" mode.
When using "MANUAL", you have to configure an upper level and a lower level.
When using "AI", the upper and lower level are automatically calculated from last 7 days high/low plus a 3% deviation. You can configure the timeframe and the deviation.

Select the grid quantity, from 3 to 20.
Example with 3:

Example with 10:

Example with 20:

You can choose between "Once Per Bar Close" or "Once Per Bar" alert type.
"Once Per Bar Close" will wait candle close to confirm a trade.
"Once Per Bar" will trigger a trade if the price crossed a step anytime inside a candle. Note that the backtest will still use bar close price in its calculation.
BACKTESTING
The strategy will buy 1 contract when a BUY signal appears and sell 1 contract when a SELL signal appears.
Here 1 contract = 1 BTC
The strategy can buy up to 20 contracts. Pyramiding is enabled.
The Backtest info panel is here to show how many trades are open in the backtest.

I know very well that a backtest has no value if several trades are left open. That is why I coded a feature to close all open trades at once on the last candle. This feature can be turned on and off.

To get this indicator, use the link in my signature below, thanks!
This Grid bot strategy creates buy orders when the price goes down one level or more, and sell order when the price goes up one level or more.
To avoid useless trades, the lastest traded level is disabled until another level is crossed.
To create the grid, one upper level and one lower level is calculated. Those 2 levels are either given by the user using "MANUAL" mode or automatically calculated by an AI. The space between these two levels are then divided equally into several steps, creating the grid. The number of steps is chosen by the user, from 3 to 20.
HOW IT WORKS
This is the Backtest version meaning this is the one you should use with the Strategy Tester (more below).
Select either "MANUAL" or "AI" mode.
When using "MANUAL", you have to configure an upper level and a lower level.
When using "AI", the upper and lower level are automatically calculated from last 7 days high/low plus a 3% deviation. You can configure the timeframe and the deviation.
Select the grid quantity, from 3 to 20.
Example with 3:
Example with 10:
Example with 20:
You can choose between "Once Per Bar Close" or "Once Per Bar" alert type.
"Once Per Bar Close" will wait candle close to confirm a trade.
"Once Per Bar" will trigger a trade if the price crossed a step anytime inside a candle. Note that the backtest will still use bar close price in its calculation.
BACKTESTING
The strategy will buy 1 contract when a BUY signal appears and sell 1 contract when a SELL signal appears.
Here 1 contract = 1 BTC
The strategy can buy up to 20 contracts. Pyramiding is enabled.
The Backtest info panel is here to show how many trades are open in the backtest.
I know very well that a backtest has no value if several trades are left open. That is why I coded a feature to close all open trades at once on the last candle. This feature can be turned on and off.
To get this indicator, use the link in my signature below, thanks!
릴리즈 노트
Core behavior fixes릴리즈 노트
AI mode updated:The up/lower step is now calculated using high/lowest of 100 bars of higher data, plus a percent increased range.
릴리즈 노트
AI strategy behavior improvements:When the grid moves, the last traded level was reset when it should not.
릴리즈 노트
NEW: STOP LOSS FeatureYou can turn it on/off
Make the strategy close all orders if price breaks below step 0 which is one step below step 1
릴리즈 노트
Updated info panel릴리즈 노트
New input setting to change the order size.릴리즈 노트
Added strategy alerts text inputs!How to create Strategy Alerts:
Write your alert messages for EXIT, LONG and SHORT orders in the settings (Backtest section).
Then click add alert, and in the alert message, write the following:
{{strategy.order.alert_message}}
릴리즈 노트
bugfixes:The highest step was misbehaving sometimes.
릴리즈 노트
Bugfixes with the AI mode.릴리즈 노트
Updated Backtest Period settings: we can now select hours and minutes.릴리즈 노트
Max number of grid steps increased to 30, but steps above 24th will not be printed on chart due to graphic limitations.릴리즈 노트
Configuration panel udpated: smaller and better placement.Added new alert system!
To use it:
1. Write your alert messages in the indicator settings (alert section at the bottom)
2. CLick "Create Alert" as usual, but choose "alert() function calls only"
That's all! You will receive alerts for every event.
릴리즈 노트
Max grid quantity increased to 100Max grid quantity plotted on chart increased to 59
That means grid steps above 59th will not be plotted (due to graphic limitations)
AI mode improved. An option was added to use the old AI mode if needed.
릴리즈 노트
Fixed multiple entries bug while letting the indicator run with recalculate on every tick setting on릴리즈 노트
Bugfix: deals not closing in the backtest when using "recalculate on every" tick in real time.릴리즈 노트
Updated inputs, added tooltipsUpdated info panel
릴리즈 노트
Order SizeAdded an option to choose from "Fixed", "% of Equity", or "Contracts".
릴리즈 노트
Added new Backtest Results panel!You can disable it by going in the style tab -> tables, or by clicking the indicator setting "Backtest Results Table".
릴리즈 노트
Backtest orders realtime behavior fix bug: several closing orders on the same candle릴리즈 노트
Updated backtesting behavior:- each step is now closed with its corresponding previous step, instead of "First In, First Out".
- order size is now set in the regular backtest properties tab.
릴리즈 노트
fix backtest period option릴리즈 노트
Alerts will no longer stop triggering if they are outside of the backtest period.릴리즈 노트
Fix backtest bug (multiple orders on same bar)릴리즈 노트
.릴리즈 노트
Revert릴리즈 노트
Updated config panel릴리즈 노트
Added Grid step size to the backtest panelAdded Break Even line
릴리즈 노트
Fix for real time backtesting릴리즈 노트
Updated default settings for easier onboarding.The indicator is now plotting all of the max 100 grid step lines.
릴리즈 노트
Added more stop loss features:Backtest
Added optional Upper and Lower Stop Loss with price configuration and action being either "Stop Bot" or "Stop Bot and buy/sell base currency using all equity".
Alerts
Added alerts for both stop losses.
릴리즈 노트
Updated alert inputs릴리즈 노트
Updated config panelAdded the option to calculate the grid from top to bottom using a percentage of price for each grid.
릴리즈 노트
Added an option to prevent trades (and alerts) to trigger before the start of the backtest period input.릴리즈 노트
New input 'order type' with two options 'Market' or 'Limit'.Up until now the indicator was using market orders in the backtest and for the alerts it would simply trigger 'buy' or 'sell' when a step is crossed.
With the new 'Limit' orders option, the backtest is using limit orders.
And, in order to automate the strategy, I added a 'Start Date' input. 0n the bar of the start date, an alert is triggered which contains one limit order for each grid step, which can be used to automatically place the limit buys for steps below the price and limit sells for steps above the price.
Then, on each step cross, the indicator will trigger and alert to place an order on the previous step. That way the grid is permanently covered with limit orders.
The alerts can be connected to my website using webhooks and using the alert message syntax I already wrote in the inputs. All you have to do is replace your bot id in the message, and create the alert. It still only takes one alert slot to automate the whole strategy.
릴리즈 노트
Added new feature: "Trailing Up" !The grid will automatically create new steps as price climbs up.
Note: When using this feature, the "start from" input must be set to "lower" step!
릴리즈 노트
When using trailing up feature, the "grid quantity" is now used to create an additional number of steps above current price at start time.릴리즈 노트
Bug fixes when using grid quantity > 28Added an input parameter to limit the amount of default limit orders in the alert (with too many orders, the alert message is too long and the indicator doesn't load)
릴리즈 노트
New feature "Take Profit":- Can be turned on/off
- Configure the % (percent) of total profit (net profit + open profit, or also called realized and unrealized PnL)
- Once that % is reached, the strategy will sell by closing all open orders at current price and stop.
Added take profit alert and updated alerts messages placeholders.
Updated open profit calculation in backtest panel.
릴리즈 노트
Added Trend Line Filters to filter entries and exits:1 trend line with the external indicator option and 1 MTF trend line.
Small fix regarding take profit: it will now cancel open orders in the backtest.
릴리즈 노트
bugfixes: start alert 릴리즈 노트
Fixed a bug with the grid not generating on some timeframes when trailing up activated.릴리즈 노트
Updated backtest panel currency릴리즈 노트
Added {grid_step} and {grid_step_percent} placeholders in the alert messages for long and short alerts.릴리즈 노트
Updated backtest panel "daily %" color 릴리즈 노트
Fixed a bug with the limit order strategy starting alert when limiting the number of orders in the alert.릴리즈 노트
Visual bug Fix릴리즈 노트
- Fixed an issue that left open the last step of the grid when price exits the range- Updated backtest panel, improved readability
릴리즈 노트
Fixed issues with trailing up option릴리즈 노트
Updated to pine v6In long strategy, the lowest step can only buy, the highest can only sell. This prevent open orders when the price leaves and comes back in the grid. Idem with short strategy.
릴리즈 노트
Added {price} placeholder in alerts to get the current price.초대 전용 스크립트
오써가 승인한 유저만 이 스크립트에 액세스할 수 있으며, 이를 위해서는 일반적으로 결제가 필요합니다. 이 스크립트를 즐겨찾기에 추가할 수는 있지만 오써에게 권한을 요청하여 권한을 얻은 뒤에야 쓸 수 있습니다 - 여기에서 자세히 알아보세요. 자세한 내용은 아래 오써의 안내를 따르거나 cyatophilum에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
This indicator access can be purchased through a subscription on my website: https://blockchainfiesta.com/strategy/Cyatophilum-Grid-Bot/35/
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
🔥Get the Cyatophilum Indicators today and automate them on Binance! => blockchainfiesta.com/strategies/
Discord Server: discord.gg/RVwBkpnQzm
I am taking PineScript Commissions ✔
=> blockchainfiesta.com/contact/
Discord Server: discord.gg/RVwBkpnQzm
I am taking PineScript Commissions ✔
=> blockchainfiesta.com/contact/
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
오써가 승인한 유저만 이 스크립트에 액세스할 수 있으며, 이를 위해서는 일반적으로 결제가 필요합니다. 이 스크립트를 즐겨찾기에 추가할 수는 있지만 오써에게 권한을 요청하여 권한을 얻은 뒤에야 쓸 수 있습니다 - 여기에서 자세히 알아보세요. 자세한 내용은 아래 오써의 안내를 따르거나 cyatophilum에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
This indicator access can be purchased through a subscription on my website: https://blockchainfiesta.com/strategy/Cyatophilum-Grid-Bot/35/
경고: 액세스를 요청하기 앞서 초대 전용 스크립트에 대한 가이드를 읽어주세요.
🔥Get the Cyatophilum Indicators today and automate them on Binance! => blockchainfiesta.com/strategies/
Discord Server: discord.gg/RVwBkpnQzm
I am taking PineScript Commissions ✔
=> blockchainfiesta.com/contact/
Discord Server: discord.gg/RVwBkpnQzm
I am taking PineScript Commissions ✔
=> blockchainfiesta.com/contact/
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.