Einzelnen Beitrag anzeigen
  #3 (permalink)  
Alt 05.02.20
MA-EA MA-EA ist offline
Elite Mitglied
 
Registriert seit: Sep 2015
Beiträge: 1.178
MA-EA befindet sich auf einem aufstrebenden Ast
Standard

Anscheinend macht er das nur ein mal. Und öffnet Trades, obwohl die Kerzen was Anderes sagen.
Code:
  int RSI_p_Bar = 2;
  double RSI_p = iRSI(Symbol(),Timeframe,RSI_Period,RSI_Price,RSI_p_Bar);


  if(open_Buy==true){
  
    if( RSI>RSI_IL_1 && RVI_Ma>RVI_Si ){


      while( RSI_p > RSI_IL_1 ){
    
        RSI_p_Bar++;
        
        Print( "-RSI Past=",RSI_p , "-RSI Past Bar=",RSI_p_Bar );
        
        return(RSI_p);}
        

        if( RSI_p < RSI_IL_1 ){
Code:
    
 
if( RSI<RSI_IL_2 && RVI_Ma<RVI_Si ){
    
      
      while(RSI_p < RSI_IL_2 ){
    
        RSI_p_Bar++;
      
        Print( "-RSI Past=",RSI_p , "-RSI Past Bar=",RSI_p_Bar );

        return(RSI_p);}


        if( RSI_p > RSI_IL_2 ){
Wie bekommt man das hin, dass er eine vorige RSI-Kerze nach der Anderen prüft, ob sie zuletzt über oder unter IL 1 / IL 2 waren?
Angehängte Dateien
Dateityp: mq4 RSI(past)_RVI_EA.mq4 (37,7 KB, 0x aufgerufen)