//version=3 //DEPTHHOUSE EMA CANDLESTICKS by oh92 //if you edit please drop a line :) // //study(title="EMA Candles", shorttitle="DepthHouse EMA Candles", overlay=true)
////INPUTS//// fast=input(5) //Fast EMA Band slow=input(55) //Slow EMA Band
up = high[3]>high[4] and high[4]>high[5] and high[2]<high[3] and high[1]<high[2] and volume[3]>vam[3] down = low[3]<low[4] and low[4]<low[5] and low[2]>low[3] and low[1]>low[2] and volume[3]>vam[3] fractalup = up ? high[3] : fractalup[1] fractaldown = down ? low[3] : fractaldown[1]
fuptf = security(tickerid,tf == "current" ? period : tf, fractalup) fdowntf = security(tickerid,tf == "current" ? period : tf, fractaldown)