View Single Post
  #523 (permalink)  
Old 01-07-2009, 01:50 AM
DREWP's Avatar
DREWP DREWP is offline
Member
 
Join Date: Oct 2008
Location: Gatlinburg TN, Mary Esther FL.
Posts: 97
DREWP is on a distinguished road
Quote:
Originally Posted by DREWP View Post
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
Reply With Quote