Skip to content

Instantly share code, notes, and snippets.

//@version=2
//Heikin Ashi Strategy V2 by breizh29
strategy("Heikin Ashi Strategy V2",shorttitle="HAS V2",overlay=true,default_qty_value=1000,initial_capital=100000,currency=currency.EUR)
res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="60")
hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")
res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="180")
mhshift = input(0,title="Heikin Ashi EMA Time Frame Shift")
fama = input(1,"Heikin Ashi EMA Period")
test = input(1,"Heikin Ashi EMA Shift")
//@version=3
//
study(title = "Heiken Ashi zero lag EMA v1.2 by JustUncleL", shorttitle="HAZEMA v1.2 by JustUncleL", overlay=true)
//
// Title: Heiken Ashi with non lag dot by JustUncleL
// Author: JustUncleL
// Version: 1.2
// Date: 5-feb-2016
//
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");
@bongkook
bongkook / [PineScript]Heikin Ashi Strategy Example
Last active November 27, 2021 20:16
TradingView Strategies
// NOTE: Add this strategy on a usual candles chart, NOT on a HeikinAshi chart.
//@version=3
strategy("Heikin Ashi Strategy Example", overlay=true)
haTicker = heikinashi(tickerid)
haOpen = security(haTicker, period, open)
haClose = security(haTicker, period, close)
longCondition = haClose > haOpen and haOpen > haClose[1]
exitCondition = haClose < haOpen
//@version=3
strategy(“Heiken Ashi + Ichimoku Kinko Hyo Strategy”, shorttitle=”HaI”, overlay=true, default_qty_type=strategy.percent_of_equity, max_bars_back=1000, default_qty_value=100, calc_on_order_fills= true, calc_on_every_tick=true, pyramiding=0)
hahigh = security(heikinashi(tickerid), period, high)
halow = security(heikinashi(tickerid), period, low)
TenkanSenPeriods = input(9, minval=1, title=”Tenkan Sen Periods”)
KijunSenPeriods = input(24, minval=1, title=”Kijun Sen Periods”)
SenkouSpanBPeriods = input(51, minval=1, title=”Senkou Span B Periods”)
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)
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