This forum is now read-only. You can discuss you questions on Forums of MQL4.community and MQL5.community
avatar
3
maestrade 2005.05.29 00:54 
Suppose an event like : RSI crossed over 70.
You want to know what the High was at that time.

In Metastock, you would just write :
ValueWhen(1,Cross(RSI,70),High)

where 1 is the first occurence in the past

The graphic representation of this indicator is :
looping from i=0 to i=Bars
if Cross(RSI,70) True Then Buffer = High
Else Buffer[i] = Buffer[i+1]

very easy to do in Excel

just hell in metaquotes

it's too unfortunate. who has a clue about this indicator ValueWhen ?

Thanks
Back to topics list