Got rid of the syntax errors but this part of the loop is not being respected for some reason. I want to sell only if the sell price is at least 10 pips above the buy price. Yet the formula is ignoring this condition, whether I write it as originally in my code or as an array:
AND (SellPrice > (PriceAtBuy + 0.0010)) AND (SellPrice[ i ] > (PriceAtBuy[i] + 0.0010)) What am I doing wrong in the above code? I don't get any syntax errors but it does not function as intended. The sell price is very often below the buy price. Thanks for any further input. --- In [email protected], "ozzyapeman" <[EMAIL PROTECTED]> wrote: > > Thanks Graham. That was it. > > > --- In [email protected], Graham <kavemanperth@> wrote: > > > > from quick look the variables in your loop should be arrays > > myMA1[i] < MyMA2[i] > > > > -- > > Cheers > > Graham Kav > > AFL Writing Service > > http://www.aflwriting.com >
