Einzelnen Beitrag anzeigen
  #3 (permalink)  
Alt 12.03.14
antikythera antikythera ist offline
Neues Mitglied
 
Registriert seit: Feb 2014
Ort: Schöneck
Beiträge: 18
antikythera befindet sich auf einem aufstrebenden Ast
Standard

Hallo,
probiers mal hiermit:
Code:
int start() 
  { 

   double Ma1 = iMA(NULL,0,MA_Periode1,Ma1Shift,Ma1Method,Ma1AppliedTo,1); 
   double Ma2 = iMA(NULL,0,MA_Periode2,Ma2Shift,Ma2Method,Ma2AppliedTo,1); 
   double Ma3 = iMA(NULL,0,MA_Periode3,Ma3Shift,Ma3Method,Ma3AppliedTo,1); 
   double Ma11 = iMA(NULL,0,MA_Periode11,Ma1Shift,Ma1Method,Ma1AppliedTo,2); 
   double Ma21 = iMA(NULL,0,MA_Periode21,Ma2Shift,Ma2Method,Ma2AppliedTo,2); 
    
   if(Ma1>Ma2 && Ma1>Ma3 && Ma2>Ma3 && Ma11<Ma21 && OrdersTotal()==0) OrderSend(Symbol(),OP_BUY,LotSize,Ask,3,Ask-(StopLoss*pips),Ask+(TakeProfit*pips),NULL,MagicNumber,0,Green);
habs jetzt nicht überprüft - müsste aber so stimmen.

Gruß
antikythera