Skip to content

Instantly share code, notes, and snippets.

View sophie-eihpos's full-sized avatar
💉
GMO

Sophie sophie-eihpos

💉
GMO
View GitHub Profile
@sophie-eihpos
sophie-eihpos / 1WAlerts
Created September 21, 2018 18:20
1WAlerts
//@version=2
study(title='Alert 1W', shorttitle='Alert 1W', overlay=false)
duration=input('90D')
ch1 = security(tickerid, duration, open)
ch2 = security(tickerid, duration, close)
// Signals//
long = crossover(ch2, ch1)
@sophie-eihpos
sophie-eihpos / 1WSetups
Created September 21, 2018 18:19
1WSetups
//@version=2
strategy(title='Beat the Odds 1W setups', shorttitle='1W setups', overlay=true, pyramiding=0, initial_capital=1000, currency=currency.USD)
//----------------- EMA 1 -------------------------------------------------------------------------------------------//
src0 = close, len0 = input(13, minval=1, title="Fast EMA Cross")
emaFast = ema(src0, len0)
direction = rising(emaFast, 2) ? +1 : falling(emaFast, 2) ? -1 : 0
plot_color = direction > 0 ? lime: direction < 0 ? red : na
@sophie-eihpos
sophie-eihpos / 15MinAlerts
Created September 17, 2018 01:14
15MinAlerts
//@version=2
study(title='Alert 15 min', shorttitle='Alert 15 min', overlay=false)
duration=input('135')
ch1 = security(tickerid, duration, open)
ch2 = security(tickerid, duration, close)
// Signals//
long = crossover(ch2, ch1)
@sophie-eihpos
sophie-eihpos / 15MinSetups
Last active September 19, 2018 02:52
15MinSetups
//@version=2
strategy(title='Beat the Odds 15 min setups', shorttitle='15 min setups', overlay=true, pyramiding=0, initial_capital=1000, currency=currency.USD)
// 15 min chart with 15 min setups with input of 105 or 135 will yeild best result
//----------------- EMA 1 ---------------------------------------------------------------------------//
src0 = close, len0 = input(10, minval=1, title="Fast EMA Cross")
emaFast = ema(src0, len0)
@sophie-eihpos
sophie-eihpos / 1HAlerts
Created September 17, 2018 00:56
1HAlerts
//@version=2
study(title='Alert 1H', shorttitle='Alert 1H', overlay=false)
duration=input('540')
ch1 = security(tickerid, duration, open)
ch2 = security(tickerid, duration, close)
// Signals//
long = crossover(ch2, ch1)
@sophie-eihpos
sophie-eihpos / 1HSetups
Last active September 19, 2018 02:49
1HSetups
//@version=2
strategy(title='Beat the Odds 1H setups', shorttitle='1H setups', overlay=true, pyramiding=0, initial_capital=1000, currency=currency.USD)
// best input value is 540 (default) for BTCUSD
//----------------- EMA 1 ---------------------------------------------------------------------------//
src0 = close, len0 = input(10, minval=1, title="Fast EMA Cross")
emaFast = ema(src0, len0)
@sophie-eihpos
sophie-eihpos / 3HAlerts
Created September 16, 2018 14:11
3HAlerts
//@version=2
study(title='Alert 3H', shorttitle='Alert 3H', overlay=false)
duration=input('1620')
ch1 = security(tickerid, duration, open)
ch2 = security(tickerid, duration, close)
// Signals//
long = crossover(ch2, ch1)
@sophie-eihpos
sophie-eihpos / 3HSetups
Last active September 19, 2018 02:46
3H Setups
//@version=2
strategy(title='Beat the Odds 3H setups', shorttitle='3H setups', overlay=true, pyramiding=0, initial_capital=1000, currency=currency.USD)
//----------------- EMA 1 ---------------------------------------------------------------------------//
src0 = close, len0 = input(10, minval=1, title="Fast EMA Cross")
emaFast = ema(src0, len0)
direction = rising(emaFast, 2) ? +1 : falling(emaFast, 2) ? -1 : 0
plot_color = direction > 0 ? lime: direction < 0 ? red : na
@sophie-eihpos
sophie-eihpos / 1DAlerts
Last active September 16, 2018 14:10
1DAlerts
//@version=2
study(title='Alert 1D', shorttitle='Alert 1D', overlay=false)
duration=input('9D')
ch1 = security(tickerid, duration, open)
ch2 = security(tickerid, duration, close)
// Signals//
long = crossover(ch2, ch1)
@sophie-eihpos
sophie-eihpos / 1DSetups
Last active September 19, 2018 02:39
1DSetups
//@version=2
strategy(title='Beat the Odds 1D setups', shorttitle='1D setups', overlay=true, pyramiding=0, initial_capital=1000, currency=currency.USD)
//----------------- EMA 1 -------------------------------------------------------------------------------------------//
src0 = close, len0 = input(9, minval=1, title="Fast EMA Cross")
emaFast = ema(src0, len0)
direction = rising(emaFast, 2) ? +1 : falling(emaFast, 2) ? -1 : 0
plot_color = direction > 0 ? lime: direction < 0 ? red : na