Long time programmer, but mostly in VB type languages. I dont think thats the problem here though.
Tried a bunch of styles before I realized that you need to use == for testing (again, not needed in VB). But now the complier is complaining that >>> if (TestVolume == False) PassTest = False; is using an array. Whats up with that? Testvolume is either true or false , so I dont know what an array has to do with it, other than the Volume array that its testing. I'm sure its an easy fix ;-). Days=Param("Days To Test",1,1,15,1); PassTest=True; for(i=Days; i>0 ; i--) { TestVolume = (Ref(Volume ,-i+1)> Ref(Volume ,-i)); if (TestVolume == False) PassTest = False; FL1=PassTest; FL2=Close >Param("ClosingPrice",5,0,999999,1); Filter = FL1 AND FL2; AddColumn(Close,"Close",1.4); AddColumn(Volume,"Volume",1.0); AddTextColumn( FullName(), "Full name", 77); AddColumn(Ref(Volume,-1),"Volume -1",1.0); AddColumn(Ref(Volume,-2),"Volume -2",1.0); AddColumn(Ref(Volume,-3),"Volume -3",1.0);