lundi 13 avril 2015
Help with using iHighest in an indicator
Posted on 08:06 by nice news
Hi All,
I'm trying to write a basic indicator that puts an arrow on the chart when
(i) the last completed candle has a high which is lower than the previous candle's high and a low which is higher than the previous candle's low, and
(ii) the previous candle has a high which is the highest high over the last 10 candles (counting back from the last completed candle). I can do the first bit easily enough and it works but I'm stuck on the second bit.
The extracted code I have is:
[i]High[i]<High[i+1]&&Low>Low[i+1] && iHighest(Symbol(),0,MODE_HIGH,i+10, i+1)==1
This bit works fine...
[i]High[i]<High[i+1]&&Low>Low[i+1]
However, this bit below doesn't seem to work and when I include it on the chart no arrows appear even though there are definitely patterns on the chart which satisfy both my conditions i & ii.
iHighest(Symbol(),0,MODE_HIGH,i+10, i)==1
Any ideas??
I'm trying to write a basic indicator that puts an arrow on the chart when
(i) the last completed candle has a high which is lower than the previous candle's high and a low which is higher than the previous candle's low, and
(ii) the previous candle has a high which is the highest high over the last 10 candles (counting back from the last completed candle). I can do the first bit easily enough and it works but I'm stuck on the second bit.
The extracted code I have is:
[i]High[i]<High[i+1]&&Low>Low[i+1] && iHighest(Symbol(),0,MODE_HIGH,i+10, i+1)==1
This bit works fine...
[i]High[i]<High[i+1]&&Low>Low[i+1]
However, this bit below doesn't seem to work and when I include it on the chart no arrows appear even though there are definitely patterns on the chart which satisfy both my conditions i & ii.
iHighest(Symbol(),0,MODE_HIGH,i+10, i)==1
Any ideas??
Help with using iHighest in an indicator
Categories: Help with using iHighest in an indicator
Inscription à :
Publier les commentaires (Atom)
0 commentaires:
Enregistrer un commentaire