View Single Post
  #1 (permalink)  
Old 12-12-2006, 06:05 PM
mikep's Avatar
mikep mikep is offline
Member
 
Join Date: Jun 2006
Posts: 87
mikep is on a distinguished road
Need help with simple EA problem - newbie

Hello Everyone!

I'm trying to hobble together an EA from a template program and am running into a few problems with the code and was hoping that someone could help (it's probably riduculously easy but I'm still lost).

The theory is simple:
- enter and go short if the RSI crosses up over 50
- enter and go long if the RSI crosses down 50

The exists are strictly based on TP and SL.

With this strategy, multiple open orders can accumulate. The problem is that the EA seems to only open a new order if the previous one has closed.

Can anyone please help and show me how the code needs to be modified to allow multiple open positions at the same time each time a new entry signal is given and exit only if a TP or SL has been reached.

Thanks in advance!



...first learning to crawl...then one day run...
Attached Files
File Type: mq4 RSI_Cross Market Orders.mq4 (4.7 KB, 18 views)

Last edited by mikep; 12-12-2006 at 06:08 PM.
Reply With Quote