Problem with code-wont work in an EA - page 2

 
1mathboy1:


why? I thought whenever v[i]=something I am assigning a value to the ith element of the array. I used code from the support and resistance indicator, which runs fine.

The Strategy Tester is for testing strategies, EAs, not Indicators . . .
Reason: