I am trying to substract from a list in a series of number.
for (int i = 0; i <= barIndex; i++)
{
if(average < highPrice && average > lowPrice)
{
barminus -- barIndex;
Print(barminus);
}
}
barIndex stay underline in red, i cant use -= it cumulate the substraction. I want to substract barminus from each number singly in the list. Any idea how to do that?
I tried this but its not working
char[] myArray = {barIndex};
foreach(char ch in myArray)
barminus -- myArray;
Print(barminus);
thank you
Comment