- Joined
- 30 June 2007
- Posts
- 7,200
- Reactions
- 1,226
GB - use a nested loop. In the first loop which triggers a Buy = true, store the low L[j]. Then in the sub loop keep iterating and checking if the current close C[k] < L[j]. If yes, Sell = true.
See how you go!
Thanks rb. I understand what you're saying, but it's a bit beyond my ability unfortunately.