TradingView
hamster-bot
22 dic 2020 14:18

Noro's ZZ-6 by hamster-bot 

Descrizione

The original script is available here
New version of ZZ-strategy.
Repaint?
Normal lines are not redrawn. Dotted lines repaint, but do not affect trading (do not affect backtests). You can turn off repaint in the script settings. Repaint (dotted lines) are needed only for clarity. To make it clear from which bar the level is created.
Levels
Lime lines above - level from a local high bar. To open a long position. Using a market stop order.
Red line at the bottom - the level from a local low bar. To open a short position. Using a market stop order.
Trading
You can trade without short positions. Then the red line is the level for a stop-loss order.
Reverse trading can be used. Without stop-loss orders.
Risk size
Order size depends on the risk size parameter and possible loss. If risk size = 2%, it means that the loss will be no more than 2%.
For crypto
Symbols: XBT/USD, BTC /USD, BTC /USDT, ETH/USD, etc - need USD(T)
Timeframes: 1h, 4h, 1d


The script will continue to be developed by the Hamster Bot team
Commenti
hst50169
Can I get this script source code? I want to study.
MoreCrazy
看起来非常棒!~不知道是否在alert触发 buy sell信号的时候,会有重绘现象呢?
hamster-bot
@MoreCrazy, There is no redrawing here. The signals are stable. Market stop orders are set by levels on the exchange in advance. Buy and sell signals in this strategy are the triggering of a market stop order. We have been trading automatically using a trading bot for such strategies for more than two years.
MoreCrazy
@hamster-bot, Thank you for your reply~~ I like this strategy very much. I want to trigger buy and sell alarms by means of webhook url. Unfortunately, I didn’t find out how to trigger buy and sell signals separately. I really want to use this strategy. Some varieties have very high earnings performance, I hope you can help me.
MoreCrazy
@MoreCrazy, i want to single like this :{"ticker":"{{ticker}}","action":"SELL","SHORT":"{{close}}"} or {"ticker":"{{ticker}}","action":"BUY","LONG":"{{close}}"}
hamster-bot
@MoreCrazy, Or here's a version of the standard tools:
Noro's ZZ-6 by hamster-bot (1, 1, 5): order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}}

strategy.order.action — returns the string “buy” or “sell” for the executed order.
strategy.order.contracts — returns the number of contracts of the executed order.
strategy.position_size — returns the value of the same keyword in Pine, i.e., the size of the current position.

more info -> tradingview.com/support/solutions/43000481368-strategy-alerts/
hamster-bot
@MoreCrazy, You can use a separate script tradingview.com/script/Vt4DLWuN-hamster-bot-ZZ-alerts/
This script has separate long and short events.
new_long_level - event for placing an order on the exchange.
long is a simpler event of entering a position.
Altro