one to one coaching

(Help) Help with this Potential EW3

I'm trying to write 2 indicators in mq4, can anyone help me with this?

1. Green Candle Low:
Data Field 1: The current day low must be lower or equal (<=) to the lowest low of the preceding 20 trading periods
AND
Data Field 2: The current day close must be greater than (>) the low 1 day ago
AND
Data Field 3: The current day close must be greater than (>) the current day open

2. Red Candle High:
Data Field 4: The current day high must be greater or equal (>=) to the highest high of the preceding 10 trading periods
AND
Data Field 5: The current day close must be less than (<) the high 1 day ago
AND
Data Field 6: The current day close must be less than (<) the current day open

I've seen this in Think Or Swim written as:.

Green CANDLE LOW
low<=lowest(low,20) and close>low[1] and close>open

RED CANDLE HIGH
high>=highest(high,10) and close<high[1] and close<open
 
Last edited:
one to one coaching
Top