I used to use Barsince & Valuewhen function from my previous trading platform - Meta Stock.
My indicator has 2 conditions
1) Close[0] > Open[0]
2) Close[0] > Close[-1]
I have 2 question here:
a) How can I write it on MRO()? I got error and don't know where is going wrong. #CS1502. I need the result as most recent when both conditions are matched. (Barsince)
private bool Con1;
private bool Con2;
private string Result;
Result = MRO (Con1 & Con2,1,CurrentBar);
Got Errors here.
b) Similar case as above but need to return as value. (Valuewhen)
Same condition as above and to return the Lowest low of recent 5 candles if condition met.
private double LLV;
LLV = MIN(Low,5)[0];
How I can do it by using MRO ? and similar formula on NT8?
Thank you very much
Comment