I'm not a coder and have been learning how to use strategy builder and playing with it for a little while, but I just can't seem to get it right. What I want to do is trade based on reversals and have setup a simple strategy that I thought should be the base I could build off, but it's not quite working as it should.
I have 2 sets for entering a long position and 2 sets for entering a short position which are basically opposite. What I want it to do at this point is to enter long as soon as the price is above the high of the last bar [1] if the last bar [1] had a lower high and lower low than the prior bar [2] or if it was an inside bar of the prior [2] (lower high and higher low). I also want to be in a trade if it turns to an outside bar (breaks the high of the prior bar after having already broken the low or vice versa) and thought this would do it.
It seems to work alright sometimes, but then at other times what is happening is I will occasionally get a random entry a little while after it has already broken the prior bar high/low. I will sometimes also get a couple of separate entries at levels that make no sense back to back as soon as the first was stopped out. I noticed this happen on an ouside bar (one that broke both the high and low of the prior bar [1]. After it broke the other side it was entering a trade opposite of what I desired. For example, if it had broken the low of the prior bar, then came back up and broke the high, it sold a contract rather than buying one like I would desire.
I'm really stumped on this stuff. Any help would be greatly appreciated.
Thank you,
Lester
Comment