{ 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( "" ) ;