| / | Forum |
|
jasius
2008.04.16 06:07
I want my EA to place both EURUSD and USDCHF buy orders simultaneously, then close when it's in profit (in any way) by 10 pips and then immediately place two new buy orders and so on. However, it wouldn't do anything when I place EA on a EURUSD chart. Could anybody provide some insight? extern double TakeProfit = 10; |
|
Secrets of MetaTrader 4 Client Terminal 21 way to ease the life: Latent features in MetaTrader 4 Client Terminal. Full screen; hot keys; Fast Navigation bar; minimizing windows; favorites; traffic reduction; disabling of news; symbol sets; Market Watch; templates for testing and independent charts; profiles; crosshair; electronic ruler; barwise chart paging; account history in the chart; types of pending orders; modifying of StopLoss and TakeProfit; undo deletion; chart print. |
|
irusoh1
2008.04.16 07:38
It is a better idea to indent your brackets then you can see what's wrong. if(AccountFreeMargin()<(1000*Lots)) trying to send order when there is no money. |
|
jasius
2008.04.17 03:51
irusoh1 wrote:
It is a better idea to indent your brackets then you can see what's wrong. if(AccountFreeMargin()<(1000*Lots)) trying to send order when there is no money. Unfortunately, nothing is happening, after activation EA just sits there and laughs at me with the smiley face but does not open any trades |