Well I've written it, so yeah I know how it works...
By "fixing" I didn't mean changing the basic logic...
I've attached a newer version below, what needs to be done is - opening one order at a time (and not many in close proximity), closing orders and adding a trend that would tell should it only buy or sell...
But I'm gonna work on it and report back...still the logic is simple and fixing the bugs should not be time-consuming...
PS Since it's a "beta-testing-only-version" the attached file has no tp, sl, and ts, and is only for SELLING, but buying is done opposite...
regards,
John