Posso sapere a cosa serve lo script EA?
il file mqt.
posso aggiungere la linea di resistenza al supporto all'EA?
così il trade aprirà solo sulla linea di supporto/resistenza e uscirà quando raggiunge la linea di supporto/resistenza?
posso usare questo codice per rilevare l'alto basso della candela?
if(High[1]<High[2] && Low[1]>Low[2]
E questo?
if(High[1]<High[2] { int OrderSend (string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) return(0)
Sto cercando di creare un altro potente EA... ^^
per favore aiutatemi,
c'è qualcuno qui?
può usare questi () {} così tanto ??
guarda a errormessages quando modifie
posso sapere a cosa serve lo script EA?
Uno script si ferma quando il suo lavoro è finito
posso aggiungere la linea di resistenza di supporto all'EA?
Perché no? Non ci provi?
come scrivere il codice se voglio disegnare una linea sul grafico quando l'EA è in esecuzione?
linea di tendenza, linea di resistenza supporto e ecc.
utilizzare un indicatore sullo stesso grafico
fare una linea nel tuo EA
Print("high1 = ",High[1]); o Comment("high1 = ",High[1]) ;
===========================================
che dire di questo ??
if(High[1]<High[2] { int OrderSend (string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) return(0)
questo non funziona in questo modo scritto nel tuo programma leggi la pratica inizia con la creazione di programmi semplici e testalo su conti demo
non hai idea di cosa stai facendo come potrai mai creare un altro EA potente... ^^ se non cominci con le basi
Ok,
lo imparerò di nuovo.
dall'inizio...
- App di trading gratuite
- Oltre 8.000 segnali per il copy trading
- Notizie economiche per esplorare i mercati finanziari
Accetti la politica del sito e le condizioni d’uso
//+------------------------------------------------------------------+ //| xxxxx.mq4 | //| Copyright 2012 xxxxx| //| | //+------------------------------------------------------------------+ extern string xxxxx extern double xxxxx extern double xxxxx extern double xxxxx extern double xxxxx extern int xxxxx extern int xxxxx extern double xxxxx extern double xxxxx extern double xxxxx extern int xxxxx extern bool xxxxx void deinit() { Comment(""); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { if(xxxxx) { Print("xxxxx"); return(0); } if(xxxxx) { Print("xxxxx"); return(0); } if(xxxxx) { Print("xxxxx"); return(0); } datetime start = StrToTime("00:00"); datetime end = StrToTime("23:59"); if(TimeCurrent() >= StartTrade && TimeCurrent() < EndTrade) { Print("TRADING"); } else { Print("NOT TRADING"); return(0); } double xxxxx; double xxxxx; double xxxxx; double xxxxx; if((xxxxx)) { Print("xxxxx); return(0); } if(xxxxx) { Print("xxxxx); return(0); } if(xxxxx) { Print("xxxxx"); return(0); } if(xxxxx) { Print("xxxxx"); return(0); } if (!xxxxx) { if ((xxxxx)) { OpenBuy(); return(0); } if ((xxxxx)) { OpenSell(); return(0); } } } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ bool ExistPositions() { for (int i=100; i<xxxxx; i++) { if (xxxxx(i, SELECT_BY_POS, MODE_TRADES)) { if (xxxxx()==Symbol()) { return(True); } } } return(false); } void OpenBuy() { double ldLot, ldStop, ldTake; string lsComm; ldLot = GetSizeLot(); ldStop = GetStopLossBuy(); ldTake = GetTakeProfitBuy(); lsComm = GetCommentForOrder(); OrderSend(Symbol(),OP_BUY,ldLot,Ask,Slippage,ldStop,ldTake,lsComm,0,0); } void OpenSell() { double ldLot, ldStop, ldTake; string lsComm; ldLot = GetSizeLot(); ldStop = GetStopLossSell(); ldTake = GetTakeProfitSell(); lsComm = GetCommentForOrder(); OrderSend(Symbol(),OP_SELL,ldLot,Bid,Slippage,ldStop,ldTake,lsComm,0,0); } string GetCommentForOrder() { return(xxxxx); } double xxxxx() { return(LotSize); } double Getxxxxx() { return(Ask+xxxxx*Point); } double Getxxxxx() { return(Bid-xxxxx*Point); } double Getxxxxx() { return(Bid-xxxxx*Point); } double Getxxxxx() { return(Ask+xxxxx*Point); return(0); }