Skip to content
S&P 5007,818.93up +0.58%Nasdaq27,599.89up +0.45%Dow51,521.28up +0.49%DAX25,449.19up +0.77%GBP/USD1.3261down −0.11%EUR/GBP0.8479down −0.01%Brent101.74up +1.15%Gold4,180.5down −0.16%Bitcoin85,321down −0.26%Prices at 02:26
ChartsView

Scan for the stocks near 38.2, 50 and 61.8 fibs P

More
13 years 11 months ago - 13 years 11 months ago #508 by remo
REM Percentage proximity within which the closing price is with respect to the fib level
REM Change this parameter to desired percentage e.g. change it to 1 if you want results where the
REM closing price is within 1% of the fib level
proximity = 0.5
REM The highest price of the last 70 days roughly taking us to the highs of late april/early may
REM Change 70 to a different number of days as required
h = DHigh(70)
REM The Lowest price of the last 70 days rougly taking us into the lows of june
REM Change 70 to a different number of days as required
l = DLow(70)
diff = h - l
fib2 =h - diff*0.382
fib3 =h - diff*0.618
fib4 =h - diff*0.5
REM Closing price within the 'proximity' of 38.2 fib
diff2 = abs(close-fib2)
pdiff2 = diff2/close*100
c2 = pdiff2 <= proximity
REM Closing price within the 'proximity' of 68.2 fib
diff3 = abs(close-fib3)
pdiff3 = diff3/close*100
c3 = pdiff3 <= proximity
REM Closing price within the 'proximity' of 50 fib
diff4 = abs(close-fib4)
pdiff4 = diff4/close*100
c4 = pdiff4 <= proximity
REM Scanning criteria is satisfied if any of the above 4 conditions are met
c5 = c2 Or c3 Or c4
REM sort the results by decending RSI
criteria = RSI[14](close)
SCREENER[c5] (criteria AS "RSI")
Last edit: 13 years 11 months ago by remo.
The following user(s) said Thank You: diver993, SeaBass916, Libero

Please Log in or Create an account to join the conversation.

Moderators: remo
Powered by Kunena Forum
Use the arrow keys to move and Enter to openSearch every page

Share tips