The 3 Logics
|
|||
|
Scorpion, thank you this is a great program and has helped me alot, especially since I am just now beginning to teaching myself to write code. Before using this program I tried to write an EA for MT4 using the EA wizard in MT4 but when I would compile could not fix the error I was getting. After a few days I just gave up. Now, I have made several versions of EAs which I hope to improve upon by systematically playing with them.
I have a suggestion. What I have done is keep track of the 3 Logics: 1. BUY Logics, 2. SELL Logics, and 3. CLOSE Logics in seperate folders so that I can test what works best. For the most part SELL Logics are just the opposite of the BUY Logics. However, CLOSE Logics are different. I would love to see two threads added to this site: BUY/SELL Logics and CLOSE Logics because this is where I would like to post. And it seems this is what we are all working on improving, at least to start. Also, my current FXFisherman EA I have applied to the four majors but it seems to only be in only one trade at a time. Is this part of the code that allows only one position to be held at a time. Thanks again, freshfx |
Limit on open positions
|
|||
|
Scorpion, I found the line of code that limited the number of open positions to 1 and change it to 4 as I am trading the four majors and wanted to see how the EA would work on multiple currencies. However, what happened was I was filled 3 times in USDCHF and once in USDJPY. That is not what I wanted. I need to add a line of code something like:
if Symbol > 1 then { DeleteOrder(OrderValue(1,VAL_TICKET),Red); }; Does this sound right? Thanks in advance for your help, freshfx |
|
||||
|
No, freshfx. Don't change If TotalTrades<1 then. This statement should protect you from many risks like the duplicated trades you encountered. If you like to run your expert in 4 majors then open 4 demo accounts, open 4 instances of MetaTrader, and then run 1 major in 1 account. That will solve your problem without hacking the code.
![]() |
Now testing EA in multiple accounts
|
|||
|
I opened new demo accounts to test an FXFisherman EA in EURUSD, GBPUSD, USDCAD, and USDJPY individually in each account. Now just waiting for the results, freshfx :whistling
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ZeroCode Beta 2 Status | scorpion | MetaTrader and ZeroCode | 85 | 06-21-2008 04:11 PM |
| ZeroCode Expert Running 3 Majors (?) | Scicronys | MetaTrader and ZeroCode | 8 | 12-12-2007 08:58 AM |
| RE: RSI in ZeroCode ????? | TurboTrader24 | MetaTrader and ZeroCode | 9 | 08-04-2005 03:28 AM |
| Important: ZeroCode Header in Compiled MQL files | scorpion | MetaTrader and ZeroCode | 0 | 06-09-2005 08:59 AM |
All times are GMT. The time now is 05:17 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


