timeframe(4 hours)
mm7h4=average[7]
mm20h4=average[20]
mm50h4=average[50]
boluph4=BollingerUp[20](close)
boldnh4=BollingerDown[20](close)
timeframe(1 hour)
mm7h1=average[7]
mm20h1=average[20]
mm50h1=average[50]
boluph1=BollingerUp[20](close)
boldnh1=BollingerDown[20](close)
timeframe(default)
a = 0
if a>0 then
buy at market
endif
// --- PLOT MTF INDICATORS ON PRICE CHART
//4 hours indis
graphonprice mm7h4 coloured(200,200,0)
graphonprice mm20h4 coloured(200,200,0)
graphonprice mm50h4 coloured(200,200,0)
graphonprice boluph4 coloured(200,200,0)
graphonprice boldnh4 coloured(200,200,0)
//1 hour indis
graphonprice mm7h1 coloured(0,200,0)
graphonprice mm20h1 coloured(0,200,0)
graphonprice mm50h1 coloured(0,200,0)
graphonprice boluph1 coloured(0,200,0)
graphonprice boldnh1 coloured(0,200,0)
//etc.