stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Support/Resistance Indicator
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=514
Page 21 of 23
Author:  mejayusa [ Thu Nov 02, 2017 3:49 pm ]
Post subject:  Support/Resistance Indicator

Hey, just one question. When using the library, isn't the SSSR_GetZoneType(zone) supposed to return "1" if the price is in a support zone, and "2" if the price is in a resistance zone? I seem to be getting the opposite results on H4 chart. Is anyone else facing the same?

For ex. GBPJPY is now in support zone now. But I'am getting "2" for zone_type. Code extract below.

sup_zone = SSSR_FindZoneV2(SSSR_DN, true, bid, sup_hi, sup_lo, sup_strength);
zone_type = SSSR_GetZoneType(sup_zone);

Any pointers, guidance or support is greatly appreciated.
Author:  mejayusa [ Fri Nov 10, 2017 12:17 am ]
Post subject:  Support/Resistance Indicator

mejayusa » Thu Nov 02, 2017 3:49 pm wrote:Hey, just one question. When using the library, isn't the SSSR_GetZoneType(zone) supposed to return "1" if the price is in a support zone, and "2" if the price is in a resistance zone? I seem to be getting the opposite results on H4 chart. Is anyone else facing the same?

For ex. GBPJPY is now in support zone now. But I'am getting "2" for zone_type. Code extract below.

sup_zone = SSSR_FindZoneV2(SSSR_DN, true, bid, sup_hi, sup_lo, sup_strength);
zone_type = SSSR_GetZoneType(sup_zone);

Any pointers, guidance or support is greatly appreciated.
Found the bug. At line 767 and 771 of LibSSRv4.mq4, Close[4] function is used which led to inconsistent results due to wrong values returned by the Close[] function. My multipair EA operates on multiple timeframes and looks it was messing the results of the Close[] function. So in-case anyone else is facing the issues I faced w.r.t incorrect zone identification when using the library to get the zone types of other pairs, then change the code as below.

Change:
if (SSSR_zone_hi[SSSR_zone_count] < Close[4]) -- line 767
if (SSSR_zone_lo[SSSR_zone_count] > Close[4])-- line 771
To:
if (SSSR_zone_hi[SSSR_zone_count] < iClose(SSSR_sym, SSSR_TF, 4))
if (SSSR_zone_lo[SSSR_zone_count] > iClose(SSSR_sym, SSSR_TF, 4))
Author:  SteveHopwood [ Thu Sep 06, 2018 2:20 pm ]
Post subject:  Support/Resistance Indicator

This post is attempting to attract further interest to what looks like a most helpful indi. SHF member Ehernmat brought it to my attention.

Thanks for coding it all those years ago, Andrew. Sorry I either never noticed or, more likely, failed to see its significance at the time.

:xm: :rocket:
Author:  slipshod [ Sun Sep 09, 2018 12:56 pm ]
Post subject:  Support/Resistance Indicator

SteveHopwood » Fri Sep 07, 2018 12:20 am wrote:This post is attempting to attract further interest to what looks like a most helpful indi. SHF member Ehernmat brought it to my attention.

Thanks for coding it all those years ago, Andrew. Sorry I either never noticed or, more likely, failed to see its significance at the time.

:xm: :rocket:
Hey Steve, I'm just glad it's finally proving useful :good: Mat messaged me about the EA yesterday, and I'll definitely be testing and helping out if I see any way of making a contribution.

For anyone who reads this & isn't aware of the "Holy Graily Candle Bob" EA which incorporates this indicator, the EA can be found here: http://www.stevehopwoodforex.com/phpBB3 ... =87&t=5517

EDIT: I've just uploaded version 5 of the LIBSSSR to the first post in this thread - this incorporates mejayusa's bugfix in his post from November 17. Thanks mejay, and sorry I wasn't around to notice your fix earlier.
Author:  heart1010 [ Wed Sep 12, 2018 9:08 am ]
Post subject:  Support/Resistance Indicator

Thanks for the update!

P.S.: In file LibSSSR_EA_Sample.mq4 (from LibSSSRv5.zip) the line

Code: Select all

#include <LibSSSRv4.mqh>
should also be changed to

Code: Select all

#include <LibSSSRv5.mqh>
, shouldn't it?
Author:  slipshod [ Wed Sep 12, 2018 10:42 am ]
Post subject:  Support/Resistance Indicator

Hi heart - yes it should, thanks for letting me know. I've updated the contents of the zip file :good:
Author:  traderpositivo [ Mon Jul 08, 2019 7:21 pm ]
Post subject:  Support/Resistance Indicator

Hi guys

What would be the most recent version of this indicator?
Author:  Yannis [ Tue Jul 09, 2019 5:09 am ]
Post subject:  Support/Resistance Indicator

@traderpositivo
In most threads if not all, you will always find everything in the 1st couple of posts.
Author:  awakefrontiers [ Fri Mar 27, 2020 4:07 pm ]
Post subject:  Support/Resistance Indicator

Hi new here awesome forum I'm glad I found this comunity! :D

Well my question, I use the indicator settings of 30mins timeframe on the 5min chart and keeps displaying me the 5mins zones.
On the 5min chart I can put the 15mins, 1hour, 4hour settings and I can see their zones but not the 30mins zones.

There's a way I can fix that?
Author:  boyoforex [ Wed Apr 29, 2020 9:03 am ]
Post subject:  Support/Resistance Indicator

Please I will like to know if the MT5 version of the indicator and library exists. Thanks
All times are UTC Page 21 of 23