{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang2057{\fonttbl{\f0\fnil\fcharset0 Calibri;}} {\*\generator Riched20 10.0.17763}\viewkind4\uc1 \pard\sa200\sl276\slmult1\f0\fs22\lang9 ADX by cobra by binarytrader666 \par study("ADX and DI")\par len = input(title="Length", type=integer, defval=3)\par len1 = input(title="Length1", type=integer, defval=1)\par th = input(title="threshold", type=integer, defval=20)\par \par TrueRange = max(max(high-low, abs(high-nz(close[1]))), abs(low-nz(close[1])))\par DirectionalMovementPlus = high-nz(high[1]) > nz(low[1])-low ? max(high-nz(high[1]), 0): 0\par DirectionalMovementMinus = nz(low[1])-low > high-nz(high[1]) ? max(nz(low[1])-low, 0): 0\par \par \par SmoothedTrueRange = nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/len) + TrueRange\par SmoothedDirectionalMovementPlus = nz(SmoothedDirectionalMovementPlus[1]) - (nz(SmoothedDirectionalMovementPlus[1])/len) + DirectionalMovementPlus\par SmoothedDirectionalMovementMinus = nz(SmoothedDirectionalMovementMinus[1]) - (nz(SmoothedDirectionalMovementMinus[1])/len) + DirectionalMovementMinus\par \par DIPlus = SmoothedDirectionalMovementPlus / SmoothedTrueRange * 100\par DIMinus = SmoothedDirectionalMovementMinus / SmoothedTrueRange * 100\par DX = abs(DIPlus-DIMinus) / (DIPlus+DIMinus)*100\par ADX = sma(DX, len)\par //Skuska\par crosscall = (DIPlus > DIMinus)\par crossput = (DIMinus > DIPlus)\par DIPcross = sma(crosscall, len1)\par DIPput = sma(crossput, len1)\par DIPOVB = (DIPlus > 60)\par DIMOVS = (DIMinus > 60)\par \par \par bgcolor(DIMOVS ? lime : na, transp=40)\par bgcolor(DIPOVB ? orange : na, transp=20)\par plot(DIPlus, color=green, linewidth=3, title="DI+")\par plot(DIMinus, color=red, linewidth=3, title="DI-")\par plot(ADX, color=white, linewidth=1, title="ADX")\par hline(th, color=white, linewidth=1, linestyle=dashed)\par bgcolor(DIPcross ? green : na, transp=60)\par bgcolor(DIPput ? red : na, transp=60)\par \par **********************************************************\par \par // AK Trend ID Version 1.00\par // This indicator simply indentifies if the market are\par // in a up or down trend.\par // For SPX or SPY ONLY, Time Frame = Monthly\par // Created by Algokid 7/23/2014 \par // Toronto, Canada\par \par study("AK_TREND ID (M)")\par input1 = 3, input2 = 8 , \par \par fastmaa = ema(close,input1)\par fastmab = ema(close,input2)\par \par bspread = (fastmaa-fastmab)*1.001\par \par adline = 0\par \par m = bspread > 0 ? lime : red\par \par plot (adline,color = white)\par plot(bspread, color = m)\par barcolor( bspread > 0 ? green :red)\par \par \par *************************************************************8\par MacD Custom Indicator-Multiple Time Frame+All Available Options! by ChrisMoody copy\par //Created by user ChrisMoody updated 4-10-2014\par //Regular MACD Indicator with Histogram that plots 4 Colors Based on Direction Above and Below the Zero Line\par //Update allows Check Box Options, Show MacD & Signal Line, Show Change In color of MacD Line based on cross of Signal Line.\par //Show Dots at Cross of MacD and Signal Line, Histogram can show 4 colors or 1, Turn on and off Histogram.\par //Special Thanks to that incredible person in Tech Support whoem I won't say you r name so you don't get bombarded with emails\par //Note the feature Tech Support showed me on how to set the default timeframe of the indicator to the chart Timeframe, but also allow you to choose a different timeframe.\par //By the way I fully disclose that I completely STOLE the Dots at the MAcd Cross from "TheLark"\par \par study(title="CM_MacD_Ult_MTF", shorttitle="CM_Ult_MacD_MTF")\par source = close\par useCurrentRes = input(true, title="Use Current Chart Resolution?")\par resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="60")\par smd = input(true, title="Show MacD & Signal Line? Also Turn Off Dots Below")\par sd = input(true, title="Show Dots When MacD Crosses Signal Line?")\par sh = input(true, title="Show Histogram?")\par macd_colorChange = input(true,title="Change MacD Line Color-Signal Line Cross?")\par hist_colorChange = input(true,title="MacD Histogram 4 Colors?")\par \par res = useCurrentRes ? period : resCustom\par \par fastLength = input(12, minval=1), slowLength=input(26,minval=1)\par signalLength=input(9,minval=1)\par \par fastMA = ema(source, fastLength)\par slowMA = ema(source, slowLength)\par \par macd = fastMA - slowMA\par signal = sma(macd, signalLength)\par hist = macd - signal\par \par outMacD = security(tickerid, res, macd)\par outSignal = security(tickerid, res, signal)\par outHist = security(tickerid, res, hist)\par \par histA_IsUp = outHist > outHist[1] and outHist > 0\par histA_IsDown = outHist < outHist[1] and outHist > 0\par histB_IsDown = outHist < outHist[1] and outHist <= 0\par histB_IsUp = outHist > outHist[1] and outHist <= 0\par \par //MacD Color Definitions\par macd_IsAbove = outMacD >= outSignal\par macd_IsBelow = outMacD < outSignal\par \par plot_color = hist_colorChange ? histA_IsUp ? aqua : histA_IsDown ? blue : histB_IsDown ? red : histB_IsUp ? maroon :yellow :gray\par macd_color = macd_colorChange ? macd_IsAbove ? lime : red : red\par signal_color = macd_colorChange ? macd_IsAbove ? yellow : yellow : lime\par \par circleYPosition = outSignal\par \par plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=4)\par plot(smd and outSignal ? outSignal : na, title="Signal Line", color=signal_color, style=line ,linewidth=2)\par plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=histogram, linewidth=4)\par plot(sd and cross(outMacD, outSignal) ? circleYPosition : na, title="Cross", style=circles, linewidth=4, color=macd_color)\par hline(0, '0 Line', linestyle=solid, linewidth=2, color=white)\par \par \par \par ************************************************************\par \par \par //@version=2\par //\par //@author SigmaDraconis\par // \par // Credits to LazyBear for his excellent OBV Oscilator indicator\par // \par study(title="On Balance Volume Oscillator + Bollinger Bands [SigmaDraconis]", shorttitle="OBVOSC_LB+BB_SD")\par \par src = input(defval=close, title="OBV Price Source")\par length = input(defval=20, minval=1, title ="Timeframe")\par usebb = input(title="Use Bollinger Bands", type=bool, defval=true)\par bbmult = input(defval=2.0, minval=0.001, maxval=50, title="BB Multiplier")\par maTrendArea = input(title="Highlight OBV above/below MA Area", type=bool, defval=true)\par obvArea = input(title="Highlight OBV Balance Area", type=bool, defval=false)\par identifyPeaksOutsideBB = input(title="Highlight OBV Line outside BB bands", type=bool, defval=true)\par \par //OBV Calculation\par obv(src) => cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)\par os=obv(src)\par obv_osc = (os - ema(os,length))\par \par //BB Calculation\par bbbasis = sma(obv_osc, length)\par bbdev = bbmult * stdev(obv_osc, length)\par bbupper = bbbasis + bbdev\par bblower = bbbasis - bbdev\par \par //Color definitions\par bbcolor = usebb ? aqua : na\par area_color = maTrendArea ? (obv_osc >= bbbasis ? green : red) : bbcolor\par bbarea_color = area_color\par \par obvLine_color = obv_osc > 0 ? (usebb and obv_osc >= bbupper and identifyPeaksOutsideBB ? yellow : lime) : (usebb and obv_osc <= bblower and identifyPeaksOutsideBB ? yellow : red)\par obvArea_color = obvArea ? silver : na \par \par // Plots\par plot(usebb ? bbbasis : na, color=white, transp=30, title="OBV/BB Period [Moving Average]")\par p1 = plot(usebb ? bbupper : na, color=bbcolor, transp=40, title="BB High band")\par p2 = plot(usebb ? bblower : na, color=bbcolor, transp=40, title="BB Low band")\par \par fill(p1, p2, color=area_color, transp=77, title="BB Background")\par \par plot(obv_osc, color=obvLine_color, transp=0, tyle=line, title="OBV Line", linewidth=2)\par plot(obv_osc, color=obvArea_color, transp=60, title="OBV Area", style=area)\par \par hline(0, title="Zero Line")\par \par \par \par *******************************************************************************\par \par \par //\par // @author LazyBear\par //\par // If you use this code in its original/modified form, do drop me a note. \par //\par study(title="WaveTrend [LazyBear]", shorttitle="WT_LB")\par n1 = input(10, "Channel Length")\par n2 = input(21, "Average Length")\par obLevel1 = input(60, "Over Bought Level 1")\par obLevel2 = input(53, "Over Bought Level 2")\par osLevel1 = input(-60, "Over Sold Level 1")\par osLevel2 = input(-53, "Over Sold Level 2")\par \par ap = hlc3 \par esa = ema(ap, n1)\par d = ema(abs(ap - esa), n1)\par ci = (ap - esa) / (0.015 * d)\par tci = ema(ci, n2)\par \par wt1 = tci\par wt2 = sma(wt1,4)\par \par plot(0, color=gray)\par plot(obLevel1, color=red)\par plot(osLevel1, color=green)\par plot(obLevel2, color=red, style=3)\par plot(osLevel2, color=green, style=3)\par \par plot(wt1, color=green)\par plot(wt2, color=red, style=3)\par plot(wt1-wt2, color=blue, style=area, transp=80)\par *********************************************************************\par \par \par so if you can please combine these all these indicators into one. \par buy signal for adx= di+ve crosses up di-ve and vice versa\par buy signal for ak trend= plot2 crosses up plot 1and vice versa. For this can you also try getting a buy signal when the colour of plot changes to green and vice versa\par buy signal for MacD Custom Indicator-Multiple Time Frame+All Available Options! by ChrisMoody= when macd crosses up signal line\par \par buy signal for obvosc= when the obv line crosses up the obv period\par buy signal for wave trend= when plot 6 crosses up plot 7 and vice versa\par \par once you have combined all these indicators can you then please convert them into a strategy with take profit, trailing and stop loss(these variables should be in pips). Also include the option for back testing with a date. Thanks man\par }