Sep 29 2006, 9:17
Post
|
|
|
|
Bonjour,
J'ai ce message d'erreur : 2006.09.29 09:34:43 trade EURUSD,M1: Error = trade is not allowed in the expert properties Lorsque je lance ce script : Trade.mq4 téléchargé ici : http://codebase.mql4.com/267 CODE //+------------------------------------------------------------------+ //| trade.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ #property copyright "Copyright © 2004, MetaQuotes Software Corp." #property link "http://www.metaquotes.net/" #include <stdlib.mqh> #include <WinUser32.mqh> //+------------------------------------------------------------------+ //| script "trading for all money" | //+------------------------------------------------------------------+ int start() { //---- if(MessageBox("Do you really want to BUY 1.00 "+Symbol()+" at ASK price? ", "Script",MB_YESNO|MB_ICONQUESTION)!=IDYES) return(1); //---- int ticket=OrderSend(Symbol(),OP_BUY,1.0,Ask,3,0,0,"expert comment",255,0,CLR_NONE); if(ticket<1) { int error=GetLastError(); Print("Error = ",ErrorDescription(error)); return; } //---- if(OrderSelect(ticket,SELECT_BY_TICKET)) OrderPrint(); //---- return(0); } //+------------------------------------------------------------------+ Ou est mon erreur ? Merci, Tintin92 |
Sep 29 2006, 9:23
Post
|
|
|
|
J'ai eu la réponse sur un autre forum.
Il faut cocher l'option : "Allow live trading" dans Tools / Options / Experts tab Tintin92 |
|
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
10 | cjacques | 9,075 | 26th December 2005 - 17:24 Last post by: rem |
|||
![]() |
0 | Charly | 2,540 | 1st December 2005 - 12:02 Last post by: Charly |
|||
![]() |
11 | Maxime | 6,741 | 5th January 2006 - 13:33 Last post by: Maxime |
|||
![]() |
12 | fetha | 5,226 | 25th March 2008 - 12:01 Last post by: Arnaud |
|||
![]() |
2 | lolo | 1,851 | 19th February 2007 - 9:38 Last post by: lolo |
|||
| Lo-Fi Version: J'ai Une Erreur Lorsque Je Lance Trade.mq4 - Forex Forum |



Sep 29 2006, 9:17
