Hi guys, I’ve a problem with testing MGC Trend Chaser in demo. This is the code I am using: /// Definition of code parameters DEFPARAM CumulateOrders = false // Cumulating positions deactivated COI= CALL "MGC-Coppock"[14, 11, 10](close) MAC= MACDline[12,26,9](close) STO = Stochastic[14,5](close) ST = supertrend[a,b] // Conditions to enter long positions c1 = (COI > COI[1]) c2 = (MAC > MAC[1]) c3 = (STO > 20) c4 = (STO < 40) c5 = (STO > STO[1]) IF HIGHEST[5](c1)=1 AND HIGHEST[5](c2)=1 AND HIGHEST[5](c3)=1 AND HIGHEST[5](c4)=1 AND HIGHEST[5](c5)=1 AND NOT ONMARKET THEN BUY 1 CONTRACT AT MARKET ENDIF //SET STOP %Trailing 10 // Conditions to exit long positions //c6 = (COI< COI[1]) //c7 = (MAC< MAC[1]) //c8 = (STO < 80) //c9 = (STO > 60) //c10 = (STO < STO[1]) //IF HIGHEST[5](c6)=1 AND HIGHEST[5](c7)=1 AND HIGHEST[5](c8)=1 AND HIGHEST[5](c9)=1 AND HIGHEST[5](c10)=1 THEN IF Close CROSSES UNDER ST THEN SELL AT MARKET ENDIF // Conditions to enter short positions c11 = (COI< COI[1]) c12 = (MAC< MAC[1]) c13 = (STO < 80) c14 = (STO > 60) c15 = (STO < STO[1]) IF HIGHEST[5](c11)=1 AND HIGHEST[5](c12)=1 AND HIGHEST[5](c13)=1 AND HIGHEST[5](c14)=1 AND HIGHEST[5](c15)=1 AND NOT ONMARKET THEN SELLSHORT 1 CONTRACT AT MARKET ENDIF //SET STOP %Trailing 10 // Conditions to exit short positions //c16 = (COI> COI[1]) //c17 = (MAC> MAC[1]) //c18 = (STO > 20) //c19 = (STO < 40) //c20 = (STO > STO[1]) //IF HIGHEST[5](c16)=1 AND HIGHEST[5](c17)=1 AND HIGHEST[5](c18)=1 AND HIGHEST[5](c19)=1 AND HIGHEST[5](c20)=1 THEN IF close CROSSES OVER ST THEN EXITSHORT AT MARKET ENDIF I’m getting the following error (see yellow triangle in pdf). I do not understand what to change in the code. Could someone help me? Thanks, Alco