TradingView
J_Sims
22 kwi 2016 01:08

Put/call ratio cross - buy and sell SPY 

PUT/CALL RATIOUSI

Opis

When 50DMA and 200DMA cross on PC, algo trades SPY accordingly
Komentarze
LoganTyler
yea hm
AlexsOptions
Hm
shrikantsawant777
//@version=2
strategy("My Strategy", overlay=true)

longCondition = crossover(sma(close, 50), sma(close, 200))
if (longCondition)
strategy.entry("My Long Entry Id", strategy.long)

shortCondition = crossunder(sma(close, 50), sma(close, 200))
if (shortCondition)
strategy.entry("My Short Entry Id", strategy.short)
captdb2000
Just ten lines ? Wow
Więcej