Par Sar EA Help
![]() |
|
||||
|
I don't why my post wasn't posted correctly in this thread in the last two days.
Anyway, it's a limitation of zerocode actually. The produced experts can run only one pair. And to make matter worse, there's no easy workaround to this, sorry. When i finish ZeroCode for MetaTrader 4, everything will be much, MUCH, better. This limitation would be lifted. Quote:
AND Hour >= 0 AND Hour < 12 If chart time is not GMT then you have to add/substract the numbers. E.g. Chart time is GMT+2, the logics would be Hour >= 2 AND Hour < 14. |
|
||||
|
Hello Scorpion,
that logic works quite alright, but i noticed that after the specified time it just does not open a new trade neither does it close the current one. So my question now is what do I need to do for it to close the trade at the specified time. Example: EA logic is AND Hour >= 0, AND Hour < 12 I want it to close of any current trade at exactly 12 GMT, what logic should I apply? Thanks for all your help on this forum. |
|
||||
|
Hi Scorpion,
Everything working so far so good as I have requested and you have helped with the modifications. However, I am thinking of a scenerio whereby I want the expert advisor to trade only ONCE and as soon as it hits TP or SL it no longer trades unless it is manually activated again, what code should I add. Thanks |
|
||||
|
Ok, i'm back.
Ok first, add below to buy logics: AND bIsBuying = False Add to sell logics: AND bIsSelling = False Compile to mql and open it. Find line: var: cnt(0),IsBuying(False),IsSelling(False),IsClosing( False) Below that, add var: bIsBuying(False), bIsSelling(False); Find line: IsClosing = .... Below that, add if IsBuying then bIsBuying = true; if IsSelling then bIsSelling = true; That's it for the dirty hack. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fisher Transform | Dick | Trading Systems | 85 | 11-11-2008 09:48 AM |
| Super Ea | AQUILEZ | Trading Systems | 142 | 09-24-2008 02:25 PM |
| Ea | swirly | MetaTrader and ZeroCode | 3 | 08-29-2008 02:39 PM |
| Have indicator running, need EA help | Bill R | System Coding | 3 | 10-08-2007 06:36 PM |
| Scorpion Need Help Convert EA Please | txsundevil | Trading Systems | 2 | 09-28-2006 08:18 PM |
All times are GMT. The time now is 07:36 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now











Linear Mode

