Quote:
Originally Posted by DREWP
I'm having a coding problem, perhaps someone can point me in the right direction. What I'm trying to do is close an order after two consecutive bars go against your trade. For instance you are in a buy position and the previous bar is bearish and the current bar closes bearish, then you close at the opening of the next bar. I have searched through the mql4 documentation and I can't figure it out for the life of me  . Any thoughts?
|
Well, I finally figured out the code

. Let the testing begin...
-DREWP