Open up your PowerEditor... File>New Study Type> Indicator copy and paste the code into the new indicator, click Compile.
Here is a Take Off on the DMI. Takes the net directional movement, double smooths it and presents signal line. John Code: [color=blue] [SameTickOpt = True]; [LegacyColorValue = true]; inputs: Length( 26), Smooth(5), DSmooth(5), Overbought(.1), Oversold(-.1); variables: oDMIPlus( 0 ), oDMIMinus( 0 ), oDMI( 0 ), oADX( 0 ), oADXR( 0 ), oVolty( 0 ) ; Value1 = DirMovement( H, L, C, Length, oDMIPlus, oDMIMinus, oDMI, oADX, oADXR, oVolty ) ; value2= xaverage((oDMIPlus-oDMIMinus)/(oDMIMinus+oDMIPlus) ,smooth); Plot1( value2, "SRatio" ) ; Plot2(xaverage(plot1,dsmooth), "A"); Plot3(Overbought,"OB"); Plot4(oversold,"OS"); If Plot1 > overbought then setplotcolor(1,darkgreen); if plot1 < oversold then setplotcolor(1,darkred); [/color]
Awesome Oscillator Bill Williams note: see updated version here http://www.elitetrader.com/vb/showthread.php?s=&postid=2284264#post2284264 <img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2261364> code in next post
Hi Tums, This is an excellent thread for those who use MC and TS. I have MC but find it cumbersome as I only want it for stocks. Keep up the fine work I'm sure many people find it extremely helpful...well done. Tim
Hi Tim: I am glad you found this useful. A number of programs can read EasyLanguage now; Open E Cry and TraderStudio are the first ones come to my mind. There are a few more. Enjoy.
High/Low Bracket This program marks the Highest High and the Lowest Low of N bars back. Useful for scalping, setting breakout stops, etc. <img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2263291>
I like H line instead HH LL, is it possible for you to write code for horizontal lens to be drawn at HH LL. thanks