Hi,
I am relatively new to coding and need some help please.
I want to code the following sell signal (the buy signal will be the opposite):
1. Current Candle Close must be below Ma value;
2. The current Candle's Open minus Close must be a set minimum pips;
3. The current Candle Close must be significantly (in set pips) lower than a set number (say z) of previous candle closings.
I am uncertain how to code step 3 (the bold, italic and underlined part in the code below). Can any coder please help! Thank you!!
if (Close[0] < MaVal)
if (Open[0] - Close[0] >= x Pips)
if (Close[0] < y Pips + z Candles previous Closings)
SellSignal = true;
I am relatively new to coding and need some help please.
I want to code the following sell signal (the buy signal will be the opposite):
1. Current Candle Close must be below Ma value;
2. The current Candle's Open minus Close must be a set minimum pips;
3. The current Candle Close must be significantly (in set pips) lower than a set number (say z) of previous candle closings.
I am uncertain how to code step 3 (the bold, italic and underlined part in the code below). Can any coder please help! Thank you!!
if (Close[0] < MaVal)
if (Open[0] - Close[0] >= x Pips)
if (Close[0] < y Pips + z Candles previous Closings)
SellSignal = true;