Hallo zusammen,
ich versuche 3 Kerzen zu finden, die tiefere Hochs haben und wo jede Kerze einen Körper hat, der maximal 49% der Gesamtkerze ausmacht.
Die 3 tieferen Hochs scheinen zu klappen, aber die Körpergröße passt oft nicht.
Das ist mein Ansatz:
 
 
		
		
			
			
			
			
				
					
				
					
				 
						Body  =   49   //in Prozent 
a= 0 
cond1  =   high [ 3 ]   >   high [ 2 ] 
cond2  =   high [ 2 ]   >   high [ 1 ] 
cond3  =   (((close [ 3 ]   -   open [ 3 ] )  /   (high [ 3 ] -   low [ 3 ] ))  <   (Body  /   100 ))
cond4  =   (((close [ 2 ]   -   open [ 2 ] )  /   (high [ 2 ] -   low [ 2 ] ))  <   (Body  /   100 ))
cond5  =   (((close [ 1 ]   -   open [ 1 ] )  /   (high [ 1 ] -   low [ 1 ] ))  <   (Body  /   100 ))
 
If   cond1  AND   cond2  AND   cond3  AND   cond4  AND   cond5  THEN 
a= 1 
ELSE 
a= 0 
ENDIF 
 
RETURN   a
 
					 
				
			 
		 
Was mache ich falsch?
Danke und Gruß
Armin