RSI issue or something else?
Forums › ProRealTime English forum › ProOrder support › RSI issue or something else?
- This topic has 15 replies, 3 voices, and was last updated 3 years ago by jayvee.
-
-
04/14/2020 at 8:14 PM #126154
Hi guys, hope you’re all well! I’m seeing issues when using RSI as a pullback entry e.g. if RSI[7] crosses under 70 then short. When backtesting I saw an entry even though the condition was not met. Another thing is that I’ve put in a supertrend indicator to only enter short trade if close below the supertrend [80,8] – if there was just an issue with the RSI, this should have prevented the entry but it didnt. I also removed the supertrend just to see if it made any difference, but alas, still the same issue. So I am really bamboozled – apologies in advance if this is something that is really simple and I’ve just been silly. I tested on ‘mastercard’ stock 1 hour timeframe. Can someone please help/advise. Many thanks
The code is
1234567891011atr= averagetruerange[8](close)myrsi = rsi[7](close)st= SuperTrend[80,8]Bearish0 = (myrsi crosses under 70) and close < open[1] and close<stIF Bearish0 THENSELLSHORT 1 perpoint AT MARKETset stop loss (4*atr)ENDIF04/14/2020 at 8:44 PM #12615804/14/2020 at 9:17 PM #12615904/14/2020 at 10:11 PM #126169Those RSI values do not match the ones in your image in your first post. The image shows 42.61 and you say the GRAPHed value is 36.8. So not only did it not cross but you are now also saying that the values are different.
What instrument and time frame so others can test it?
04/14/2020 at 10:42 PM #12617704/14/2020 at 11:35 PM #126189I did a quick test and it is definitely something weird on that instrument. On the DJI and DAX I get exactly the same RSI value in the strategy and in the indicator but on Mastercard it is all wrong and it opens positions when it shouldn’t. I just checked Vodafone and the RSI values are also not the same.
I’ll highlight this to Nicolas in the morning off forum and maybe he can contact PRT about it.
04/15/2020 at 8:00 AM #12620104/15/2020 at 9:05 AM #12621104/15/2020 at 11:18 AM #12625104/15/2020 at 11:59 AM #126254Here are another couple of examples
- Easyjet stock 2 hours: long entry occurs even though close below supertrend (RSI condition fine here) so maybe something to do with supertrend indicator in this case??
- Alphabet stock 4 hours: Entry should have taken place where cursor line is as meets long conditions but doesn’t
04/15/2020 at 3:56 PM #12629204/15/2020 at 6:01 PM #126321Thanks Nicolas and Vonasi. I’ll report it. I added the graphonprice for supertrend – for some reason it doesn’t track in line correctly with ‘easyjet’ 2 hour time frame – hence the entry, seems fine in some of the other cases – not sure how widespread the issue is…
04/16/2020 at 8:50 AM #126356Might be a rounding issue, as Vonasi discovered it, in this topic: https://www.prorealcode.com/topic/inconsistency-bug-between-probuilder-and-proorder-please-advise/#post-126349
I’ll try to get more infos on that problem and get back here.
1 user thanked author for this post.
05/17/2020 at 7:36 PM #132021Hi Nicolas, hope you’re well. Just wanted to find out if you did get any more information on this?
Having played around a bit more, I’ve noticed that when you change the number of units at the top from say 10000 down to 100 the supertrend becomes weird. For example ‘facebook’ stock 4 hours – the supertrend switches from being on top of the price (i.e. the stock is in downtrend when looking at 10000 units) to being underneath the price (i.e. stock is in uptrend when looking at 100 units).
This shouldn’t be the case should it? Your insight would be greatly appreciated.
05/18/2020 at 10:40 AM #132106Since the calculation of the indicator begin at first candlestick, it might be different depending of the units loaded. The Supertrend is changing its direction based only on a cross of a candlestick through its line, so it seems a normal situation for me.
As for the RSI issue, did you ever get any reply from the support? Are you with IG?
-
AuthorPosts
Find exclusive trading pro-tools on