|
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...
Last edited by mikep; 12-12-2006 at 06:08 PM.
|