Prorealtime - help with programming indicator

DaxTrader

Active member
Messages
229
Likes
2
Hi, I've been trying to programme a simple Inside bar indicator, which highlights inside bars on whatever time frame you are looking at.

So far, I can't make the programme accept the code when I validate it.

c1= high(1) < high(2)

c2= low(1) > low(2)

screener ( c1 and c2)

thanks in advance for any help

:confused:
 
DaxTrader said:
Hi, I've been trying to programme a simple Inside bar indicator, which highlights inside bars on whatever time frame you are looking at.

So far, I can't make the programme accept the code when I validate it.

c1= high(1) < high(2)

c2= low(1) > low(2)

screener ( c1 and c2)

thanks in advance for any help

:confused:
DT I havn't used the screener but I think the condition needs to be in [ ] the () is for a an indicator value or sort criteria like the current RSI value or something... i.e a magnitude. and is optional....
Also the low/high need [ ] brackets not ( ) ..... have fun(Not tested)

Code:
c1= high[1] < high[2]
 
c2= low[1] > low[2]
 
screener[c1 and c2]( RSI[14](close) )


best check though
Sven
 
Last edited:
thanks, got it working with a couple of alterations

REM inside bar

c1= high[1] < high [2]

c2= low[1] > low[2]

insidebar= c1 and c2

return insidebar
 
DaxTrader said:
thanks, got it working with a couple of alterations

REM inside bar

c1= high[1] < high [2]

c2= low[1] > low[2]

insidebar= c1 and c2

return insidebar
doh!! I should have read your post closer you did say Indicator, it was the screener cmd that threw me.

hope it makes you money.
 
c1= high[1] < high[2]

c2= low[1] > low[2]

screener[c1 and c2]


works as in doesnt give an error, but its showing me those pairs for which there was an inside bar on the candle before and how been broken on the latest candle.

If you change 1s to 0, and 2s to 1, then it will show if current bar is an inside bar.
 
Top