Forum

Delay in decision process?

Hello guys, I have the following code. Which works great and does what I want it to - sort of. I am using an indicator that repaints, and as such I want to be able to make it wait 2-3 bars and then recheck the logic to see if cnb < 100 or > 0. If after X amt of bars the logic is still true I would

My Trailing Stop Won`t Work

Hello everyone, Have been trying to develop a trailing stop and it does not seem to want to work with SELLS. It adds a stop loss , but does not trail it afterwards. Appreciate the help. if (TrailingStopEnabled = True && OrdersTotal () > 0 ) { double pipvalue; for ( int i= 1 ; i<=

Help with coding

Hello, I currently have an EA that opens a max of 1 buy and 1 sell. It currently opens trades on bar-open only, however, at the moment it closes intrabar by using a set TP and SL. I am looking at converting the system to a 100% bar open only system yet and confused about how to go about it. I

Problem with buy and sell orders?

Hello, I should start off and say I am new to mql4. I am attempting to make a simple grid trader to start off with. Piecing it together slowly. I am currently struggling with getting my EA to trade both buy and sell orders . Currently it seems to only want to trade sell orders. I currently am using