Skip to content

Instantly share code, notes, and snippets.

// Created by @pequet (https://www.tradingview.com/u/pequet)
// https://github.com/pequet/
// @version=3
//
study(title="MACD", shorttitle="MACD")
// inputs
macdEMA1Opt = input("ema", options=["ema", "sma"], title="EMA/SMA")
macdEMA1Length = input(9, minval=1, title="MA Length")
# avrdude -p usb1286 -c arduino -U flash:w:pro_micro_ISP_B6_10.hex -v -P /dev/ttyACM0
avrdude: Version 6.3, compiled on Aug 9 2017 at 12:31:56
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
# avrdude -p usb1286 -c arduino -U flash:w:bootloader_at90usb128x_1_0_1.hex:i -v -P /dev/ttyACM0
avrdude: Version 6.3, compiled on Aug 9 2017 at 12:31:56
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
// Created by @pequet (https://www.tradingview.com/u/pequet) September 4 2018
// https://github.com/pequet/
// MIT License
// @version=3
//
study(title="Clusters", shorttitle="Clusters")
// show count of consecutive up and down periods: on the last period, on multiples of 4 (settings) or when there is a top/bottom
// apply this to the MACD, VWMACD, etc
// Created by @pequet (https://www.tradingview.com/u/pequet) July 4 2018
// https://github.com/pequet/
// @version=3
// Reference: https://www.tradingview.com/x/j7TADzBK/
study("Doji Gaps v0.0.4", shorttitle="Doji Gaps", precision=8, overlay=false, scale=scale.right)
dojiInput = input(10, title="Doji is defined by (High-Low) / Body greater than")
rrInput = input(2.0, step=0.5, title="Risk/Reward Ratio")
// Created by @pequet (https://www.tradingview.com/u/pequet) July 8 2018
// https://github.com/pequet/
// @version=3
// Reference: https://www.tradingview.com/x/j7TADzBK/
study("Doji Gaps v0.0.3", shorttitle="Doji Gaps", precision=8, overlay=false, scale=scale.right)
dojiInput = input(10, title="Doji is defined by (High-Low) / Body greater than")
rrInput = input(2.0, step=0.5, title="Risk/Reward Ratio")
// Created by @pequet (https://www.tradingview.com/u/pequet) July 4 2018
// https://github.com/pequet/
// @version=3
// Reference: https://www.tradingview.com/x/j7TADzBK/
study("Doji Gaps v0.0.2", shorttitle="Doji Gaps", precision=8, overlay=false, scale=scale.right)
dojiInput = input(20, title="Doji is defined by (High-Low) / Body greater than")
rrInput = input(2.0, step=0.5, title="Risk/Reward Ratio")
// Created by @pequet (https://www.tradingview.com/u/pequet) July 4 2018
// https://github.com/pequet/
// @version=3
// Reference: https://www.tradingview.com/x/j7TADzBK/
study("Doji Gaps v0.0.1", shorttitle="Doji Gaps", precision=8, overlay=true, scale=scale.right)
rrInput = input(2.0, title="Risk/Reward")
// Created by @pequet (https://www.tradingview.com/u/pequet)
// https://github.com/pequet/
// NOT FOR DISTRIBUTION
// @version=3
study(title="Institutional Bias", shorttitle="IB", overlay=true)
src = input(close, type=source, title="Source")
ibBullCond = resolution=='D' ? ema(src, 9) > ema(src, 18) : security(tickerid, 'D', ema(src, 9) > ema(src, 18))
// Created by @pequet (https://www.tradingview.com/u/pequet) May 28 2018
// https://github.com/pequet/
// NOT FOR DISTRIBUTION
// @version=3
study(title="1' OBV v0.0.4", shorttitle="1' OBV", overlay=false)
// inputs
// ------