I’m after some help with a simple scanner using Ichimoku
I’m looking for when price on daily charts first crosses above the Kijun (21 period not 26) when price has been trending below(ie below the cloud) and then opposite for when price has been trending above the cloud.
The second part of the scanner is to look for when those prices meeting condition 1 above first break and close above/below the cloud
My basic code is such, but it’s not showing up all the pairs that meet the conditions when eyeballing the chart?
//c5=close[0] crosses under spana and close[0] crosses under spanb
//c6=close[0]crosses under kijun and close[0]<open[0]
y=close[0]<kijun
y1=close[0]crosses overSpanA
finalcondition1=xandx1
finalcondition2=yandy1
screener[finalcondition1andfinalcondition2]
Edited by moderator to make code appear with PRT format. Please use the “<>” button (insert PRT code) at the right end of the text editor toolbar when adding code inside your message next time, thanks.
>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
Your conditions named “finalcondition1” and “finalcondition2” will never be met at the same time and that’s what you want to be found by ProScreener because you used “and” in the screener instruction. You should have used “OR”:
1
screener[finalcondition1ORfinalcondition2]
There are maybe other errors, this is only the first thing I saw.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue