Hi
I am trying to convert this line of code into ProReal Time
The code finds the Highest High Value for the past 15 weeks or days has a moving Av of 90 Exp. and a close greater than open with a big white candle.
set_up:= C>Ref (HHV(C, 15), -1 AND C> Mov( C, 90 E) AND C>O AND C-O > 1.2*Mov (ref(ABS(C-O),-1). 10 S);
set_up
Thanks for any help
Neville
There you go, you can chenge all constants to whatever suits you best:
HighestValue = (high = highest[15](high))
AverageCondition = close > average[90,1](close) //0=sma, 1=ema, 2=wma,....)
Bullish = close > open
Body = abs(close - open)
BigCandle = Body >= (50 * pipsize) //Big Candle is when its body is >= 50 (or whatever else) pips
//BigCandle = Body >= (range * 0.8) //Big Candle is when its body is >= 80% (or whatever else) of its range
Result = HighestValue AND AverageCondition AND Bullish AND BigCandle
RETURN Result
line 6 is an alternative to line 5, in case you want to define a big candle not compared to the number of pips it has moved, but to its range (in such a case even a small candle can appear as a big one if it has short wicks).