| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Need some simple help with an EA...
Hello all-
I'm new to programming and this forum, and yesterday I wrote a simple EA based on the Parabolic SAR (Buy when it's below current price, sell when it's above). I have already written trailing stops into the program, but currently it initiates a new order in the same direction that I just closed something with the trailing stop (since the SAR hasn't switched over yet). I don't want this; if the last closed trade was a sell, I want the program to wait for appropriate conditions (SAR below price) to initiate a buy, and vice versa. I'm sure there's a simple way to do this, but I can't figure it out .Thanks a bunch in advance, Gavner |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SIMPLE-MACD-EA : An extremely simple EA based on 2 channels of MACD. Try it! | investor_me | Expert Advisors - Metatrader 4 | 31 | 07-30-2008 09:59 AM |
| My Simple EA | Pepbullish | Expert Advisors - Metatrader 4 | 5 | 02-10-2007 05:11 AM |
| Simple V2 | polosaty | Metatrader 4 | 2 | 10-17-2006 04:44 PM |