Easy Language code used in Mickylee's tutorial: http://tcnet.tcnet.info/TCNetFiles/2220/21185.txt [12/30/2008 4:36:08 PM] To use this code--- open up a desktop in ts, then click on the easylanguage icon in the toolsbar(left side of your desktop"- a little menu comes up- select create new easylanguage document-- now you will get another menu to choose from-- select indicator-- enter a name ie fwtut2-- hit tab-- type it again fwtut2-- click ok--- now go into your upper menu bar and select edit- select all-- paste--- now go up and verify (icon in menu bar icon of a check mark). Now close the EL document hit the X in the upper rt hand corner of the workspace, not the desktop. Now you can open a chart and insert the technique. { Helpful instructions on the use of EasyLanguage, such as this, appear below and are contained within French curly braces {}. There is no need to erase these instructions when using EasyLanguage in order for it to function properly, because this text will be ignored. } { STEP 1: Replace with the formula you wish to plot. Note that Value1 is a numeric variable, a temporary holding place for the result of your numeric formula. To assign a non-generic name to your plot, you may replace "Plot1" (leaving the quotes) with a name you choose. The specified name will appear in the chart analysis data window. } Inputs:Line1(0),Line2(20),PPVSADJ(2),PPVSAVG1(1),PPVSAVG2(2),PPVSAVG3(3); VARIABLE:PPVS1(0),PPVS2(0),PPVS3(0); PPVS1 = AVERAGEFC(PPVS(PPVSADJ),PPVSAVG1)*1000; PPVS2 = AVERAGEFC(PPVS(PPVSADJ),PPVSAVG2)*1000; PPVS3 = AVERAGEFC(PPVS(PPVSADJ),PPVSAVG3)*1000; Plot1( LINE1, "LINE1" ) ; Plot2( PPVS1, "PPVS1" ) ; Plot3( PPVS2, "PPVS2" ) ; Plot4( PPVS3, "PPVS3" ) ; Plot5( LINE2, "LINE2" ) ; SETPLOTCOLOR(1,YELLOW); SETPLOTCOLOR(2,GREEN); SETPLOTCOLOR(3,MAGENTA); SETPLOTCOLOR(4,WHITE); SETPLOTCOLOR(5,YELLOW); SETPLOTWIDTH(1,4); SETPLOTWIDTH(2,3); SETPLOTWIDTH(3,2); SETPLOTWIDTH(4,2); SETPLOTWIDTH(5,4); if PPVS1 > PPVS2 then begin SETPLOTCOLOR( 1, DARKGREEN ) ; Alert( "FASTAVG above SlowAvg" ) ; end else if PPVS1 < PPVS2 then begin SETPLOTCOLOR( 1,DARKRED ) ; Alert( "FastAvg below SlowAvg" ) ; end else NoPlot( 1 ) ; { unpaint the bar } if PPVS1 > LINE1 THEN BEGIN SETPLOTCOLOR(5,CYAN); ALERT("PPVS GREATER THAN ZEROLINE"); END else if PPVS1 < LINE1 THEN BEGIN SETPLOTCOLOR(5,MAGENTA); ALERT("PPVS LESS THAN ZEROLINE"); END else NoPlot( 1 ) ; { unpaint the bar } Condition1 = FALSE ; if Condition1 then Alert( "" ) ;