| 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 |
|
|||
|
Quote:
|
|
|||
|
To bdht
bdht
Your understanding of ticks is correct. Regarding iIND2_line1, if it is a custom indicator, you must use iCustom(). else an MA- 'iMA' or other built in can be used. Period must be at least 1, I believe. TP is specified at order open or modify, and is automatic. You can limit to one trade with: if OrdersTotal() ==0 Good luck. Big Be |
|
|||
|
EA to open order on multiple pairs
Hi guys, i was trying to use this EA to open orders on multiple pairs, but i get no luck, the Alert keeps saying that the other pairs cannot open the order because the price is invalid?
I used all search and knowledgement i have about mql4 but no luck to fix yet, can anybody give me a light? Here is the code of start() function: OrderSend("EURUSD",OP_SELL,0.1,MarketInfo("EURUSD" ,MODE_BID),5,0,MarketInfo("EURUSD",MODE_BID)-100*MarketInfo("EURUSD",MODE_POINT),"Hedge demo",MagicNumber,Red); OrderSend("GBPUSD",OP_SELL,0.1,MarketInfo("GBPUSD" ,MODE_BID),5,0,MarketInfo("GBPUSD",MODE_BID)-100*MarketInfo("GBPUSD",MODE_POINT),"Hedge demo",MagicNumber,Red); OrderSend("USDJPY",OP_SELL,0.1,MarketInfo("USDJPY" ,MODE_BID),5,0,MarketInfo("USDJPY",MODE_BID)-100*MarketInfo("USDJPY",MODE_POINT),"Hedge demo",MagicNumber,Red); OrderSend("GBPJPY",OP_SELL,0.1,MarketInfo("GBPJPY" ,MODE_BID),5,0,MarketInfo("GBPJPY",MODE_BID)-100*MarketInfo("GBPJPY",MODE_POINT),"Hedge demo",MagicNumber,Red); Let's say, i put the ea on EUR/USD, it open a sell only for EUR/USD, the other pairs alert me with "invalid price" error. Thanks, Thomas |
|
|||
|
How to halt other EAs when one is running in the same account?
Say I want to maximize my capital & time in the same account by having more than one EA attached but I do not want more than one to run which might blow up my account, is there a way to do it? Otherwise the account is just sitting there, waiting for only one EA signal to occur.
Once that EA has finished it's run(taken profit or stoploss), all attached EAs becomes eligible again. I know this is in the Magic Number Thread but besides Magic Number approach(which requires EA code modification), there could be other approaches to do this. So, moderator, please do not move my post. Last edited by scalpmaster; 04-11-2008 at 01:30 PM. |
|
|||
|
Some decision can be found on this thread by coding: one order per Metatrader (per all the symbols) and so on.
Read this thread from the beginning. As to separated tool for that so I remember one on some russian website but could find it now. If I find so I will post of course. |
|
||||
|
If free margin is not equal to balance itīs because some trade is running.Just write something like: if balance=free margin open order if not do nothing.
This is a condition, the EA will check this before open any trades.
__________________
|
|
|||
|
Good Idea. What is mq4 statement for do nothing?
|
![]() |
| Bookmarks |
| Tags |
| forex, trendenvelopes_v3 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MT4 (Basic) Questions | stepwise | Metatrader 4 | 6 | 09-22-2008 03:22 AM |
| Basic Indicator Question | waaustin | Metatrader Programming | 8 | 04-02-2008 03:54 PM |
| Need Help Understanding Basic MQL logic | Emerald King | Expert Advisors - Metatrader 4 | 7 | 02-27-2007 10:59 AM |
| Very basic coding help needed | camisa | Questions | 1 | 05-08-2006 06:36 PM |