| 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 |
|
|||
|
EMA Cross Price[URGENT]
Hi,
i am writing a EA to calculate the cross price for EMA. How can i determine at what price the crossover has taken place??? Basially, how does one track if the 5 EMA has crossed over the 20 EMA...??? 1.Ema period=5 with shift of -1 >>> 2.Ema period= 20 (no shift) Open -Close-Open (reverse position) Open- Close- New order...could be several orders inside a bar If Requote, always a YES Last edited by rajatnaik; 05-31-2007 at 09:27 AM. |
|
|||
|
Quote:
If ma with other mode (not close price mode) so it is 1 and 2. - (minus) 1 bar is the future. "Future is not set". We have a thread with this "Future is not set" indicator (based on tartan's indicator for Goldwarrior EA). There are a lot of EAs developed on this forum concerning MA crossing. As I remember Codersguru developed some EMA crossing EAs - look here http://www.forex-tsd.com/ema-cross/ Besides there is thread with 3 EMA crossing EA here. You may take it from this examples (attached): 1. MA_ExpertProfit.mq4: it is the same EA but it will close the orders in s/l or t/p only. 2. MA_ExpertProfit_all.mq4: it will close the order on s/l or t/p, or on the other crossing signal. This EA should work on particular account only. Just change the line "int Account = 111111;" to your account number inside the code. For example your account is 1235463. So this line should be like this: int Account = 1235463; 3. MA_ExpertProfit_noacc.mq4: it is the same with item # 2. But without any account and it may work in any account (i mean account in Metatrader). And check this very good thread as well Universal MA Cross EA Last edited by newdigital; 05-31-2007 at 04:37 PM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MA cross/Price cross MA EA | Pipsta_UK | Expert Advisors - Metatrader 4 | 5 | 05-10-2007 08:50 PM |
| Price Line MA Cross | Money Duck | Expert Advisors - Metatrader 4 | 3 | 04-12-2007 08:36 AM |
| Urgent !!! | junglelion | Expert Advisors - Metatrader 4 | 10 | 02-15-2007 03:37 PM |
| MA cross PRICE level ... EA | mistrz-swiata | Expert Advisors - Metatrader 4 | 26 | 01-16-2007 05:47 PM |
| urgent plz | waleed9091 | Expert Advisors - Metatrader 4 | 5 | 05-14-2006 09:45 PM |