Reply

Highest(highest) & Lowest(lowest)

2 replies

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #115335

I was trying “Highest(highest) & Lowest(lowest)” functions for signal indicator, I realised that only my manual settings are appearing. 

 

in my sqw config,

I have Highest(highest) vs manual  and Lowest(lowest) vs manual. When I ran them on the MT4, only the manual signals were triggered. Being the same conditions, shouldn’t both be triggered?  

 

I have attached my sqw files and the “Highest(highest) & Lowest(lowest)” screen shots.

 

Note: I am using it in the signal indicator mode

 

 

The conditions are as such,

 

// Highest(high)
 
IF ((High[1] > Highest( 8 )[1]))
THEN
      Draw Up Arrow;
END IF;
 
//——————————————————————–
// Manual
 
IF (((High[1] > High[2]) 
      And ((High[1] > High[3]) 
      And ((High[1] > High[4]) 
      And ((High[1] > High[5]) 
      And ((High[1] > High[6]) 
      And ((High[1] > High[7]) 
      And (High[1] > High[8]))))))))
THEN
      Draw Up Arrow;
END IF;
 
 
===============================================
===============================================
 
// Lowest(low)
 
IF ((Low[1] < Lowest( 8 )[1]))
THEN
      Draw Up Arrow;
END IF;
 
//——————————————————————–
// Manual
 
IF (((Low[1] < Low[2]) 
      And ((Low[1] < Low[3]) 
      And ((Low[1] < Low[4]) 
      And ((Low[1] < Low[5]) 
      And ((Low[1] < Low[6]) 
      And ((Low[1] < Low[7]) 
      And (Low[1] < Low[8]))))))))
THEN
      Draw Up Arrow;
END IF;
 

 

File: high.pnghigh.png
File: Low.pngLow.png

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

7 years ago #138271

Its your steps.

 

IF ((High[1] > Highest( 8 )[1]))

 

High 1 and highest 1 are same steps meaning its the same candle.

You must compare High[step1] to Highest[step2].

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #138300

Thank you.

 

Works well.. 🙂

0

Viewing 2 replies - 1 through 2 (of 2 total)