Skip to content

Instantly share code, notes, and snippets.

buy
TVM:{"exchange":"bybit-testnet","account":"*","symbol":"BTC/USD","open_order":"cancel","type":"market","side":"close"}:MVT
TVM:{"exchange":"bybit-testnet","account":"*","symbol":"BTC/USD","type":"market","side":"buy","bal_pct":100,"sl_pct":-0.75}:MVT
TVM:{"exchange":"bybit-testnet","account":"*","symbol":"BTC/USD","type":"limit","side":"close","price":"last","price_pct":0.75}:MVT
청산 > 시장가 매수 > 지정가 익절 매도
sell
TVM:{"exchange":"bybit-testnet","account":"*","symbol":"BTC/USD","type":"market","side":"close"}:MVT
TVM:{"exchange":"bybit-testnet","account":"*","symbol":"BTC/USD","type":"market","side":"sell","bal_pct":100,"sl_pct":0.75}:MVT
//@version=3
study(title="Relative Strength Index", shorttitle="StochRSI/RSI")
src = close, len = input(14, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, color=fuchsia, linewidth =2, transp=0)
band1 = hline(70)
band0 = hline(30)
fill(band1, band0, color=purple, transp=95)
chrome.runtime.onUpdateAvailable.addListener(function(details) {
console.log("updating to version " + details.version);
chrome.runtime.reload();
});
chrome.runtime.requestUpdateCheck(function(status) {
if (status == "update_available") {
console.log("update pending...");
} else if (status == "no_update") {
console.log("no update found");
var settings = {
"async": true,
"crossDomain": true,
"url": "https://api.telegram.org/" + telegram_bot_id + "/sendMessage",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"cache-control": "no-cache"
},
"data": JSON.stringify({
{
"total": {
"BTC": 8e-8,
"LTC": 0,
"ETH": 0.00000672,
"NEO": 0,
"BNB": 0,
"QTUM": 0,
"EOS": 0,
"SNT": 0,
총 수수료 = 100 [레버리지] x $ 1,000 [여백] x 0.00075 [시장 주문 률] x 2 [엔트리 + 이탈] = $ 150
const sleep = msec => new Promise(resolve => setTimeout(resolve, msec));
(async () => {
console.log('スタート');
await sleep(1000);
console.log('1秒経ってる!')
})();
//@version=3
study("bollinger_band_3", "BB3", true)
// 入力値 ------------------------------------
// BB
bb_lenght = input(20, title="BB 期間", type=integer)
bb_src = input(close, title="BB ソース")
bb_mult1 = input(1, title="BB1 標準偏差", type=float)
bb_mult2 = input(2, title="BB2 標準偏差", type=float)
bb_mult3 = input(3, title="BB3 標準偏差", type=float)
//@version=3
// The majority of this script I took from the Autoview website. There are some typos in the original that I've fixed, some things I've added, things I will add, and I'm tired pulling my strategy code out and uploading this to pastebin for people.
// DISCLAIMER: I am not a financial advisor, this is not financial advice, do not use this code without first doing your own research, etc, etc, it's not my fault when you lose your house.
// Read the comments if you want to use alerts on TradingView they will tell you what to comment and uncomment
// Learn more about Autoview and how you can automate strategies like this one here: https://autoview.with.pink/
// Comment this line out to use alerts
strategy("TradingView Strategy Boilerplate", "Strategy-Boilerplate", overlay=true, pyramiding=0, initial_capital=100000, currency=currency.USD, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, commission_type=strategy.commission.percent, commission_value=0.1)
//@version=3
// Learn more about Autoview and how you can automate strategies like this one here: https://autoview.with.pink/
strategy("Noro's Band Scalper", "Band Scalper Strategy", overlay=true, pyramiding=0, initial_capital=100000, currency=currency.USD, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, commission_type=strategy.commission.percent, commission_value=0.1)
//study("Noro's Band Scalper", "Band Scalper Strategy")
///////////////////////////////////////////////
//* Backtesting Period Selector | Component *//
///////////////////////////////////////////////
//* https://www.tradingview.com/script/eCC1cvxQ-Backtesting-Period-Selector-Component *//