Hello!
I have been working on a new expert and have been learning a lot and making pretty good progress with what I am trying to accomplish but have been stuck with this one major problem for the last few days and can not for the life of me get it right. I know you all get a lot of requests and do your best to help people out and I can not tell you how much I appreciate this!
Anyway, none of the EA's that I program using the Expert Advisor Builder (not to the point where I can write the code myself..) seem to want to open a reverse position after closing another on the same candle even when all conditions are met. I made a simple MA cross EA just to make sure this problem was not with my Buy or Sell conditions for my expert but was the default setting for the coding program. I do not want to add a stop and revese function because the Close (buy) and Close (sell) conditions are not exactly the same as the Sell or Buy, though they are very similar.
For simplicity sake I have attached a simple MA cross EA here that is written using the same source and has the same basic template as the one I am actually trying to fix but is less cluttered and an easier read. If there is anybody who could give me a hand or point me in the right direction by fixing this to be able to open a new trade immediately after closing the prior trade I can not describe how thankful I would be!!
Thanks!!