Support/Resistance Indicator

Post Reply
hannele
Trader
Posts: 137
Joined: Wed Sep 19, 2012 2:31 am

Support/Resistance Indicator

Post by hannele »

michaeldz » Thu Jul 23, 2015 6:45 am wrote:Big thanks to Slipshod for this great indicator :clap: I have rewritten it a bit to allow visual "backtesting". Set Testing to true (or click the "Testing" button) and scroll the chart back. Zones will be recalculated and displayed like during live trading in the past.
And I have found one bug (I think) - in FastFractals and SlowFractals

Code: Select all

if (counted > 0) 
  limit = MathMin(BackLimit, MathMax(P, Bars - counted));
else
  limit = MathMin(BackLimit, Bars-1);
should be

Code: Select all

limit = MathMin(BackLimit, Bars-1)
Try SS_SupportResistance_v06 on M1 chart - leave it for some time. And then open a new M1 chart with the same pair and apply SS_SupportResistance_v06. It will show different zones.
Best regards :-)
Love it Michaeldz :clap: :clap:
Thank you :smile:
cheers
hannele
Lowphat
Trader
Posts: 121
Joined: Fri Jun 27, 2014 12:20 am

Support/Resistance Indicator

Post by Lowphat »

michaeldz » Wed Jul 22, 2015 3:45 pm wrote:Big thanks to Slipshod for this great indicator :clap: I have rewritten it a bit to allow visual "backtesting".
really nice!
User avatar
slipshod
Trader
Posts: 404
Joined: Tue Dec 27, 2011 9:14 am
Location: Australia

Support/Resistance Indicator

Post by slipshod »

I've added v07 to the first page of the thread including Michael's changes - and a huge thanks to Michael for his development work!

The zones the indicator creates aren't quite the same as they were in previous versions. They're a little larger but also don't merge the same way either. I thought it was due to the potential bugfix Michael mentioned (which I included, though I don't know whether or not its a bugfix either) but when I reverted that part of the code the zones were still different, so I'm not sure what exactly caused this change. As its only subtle I'm not going to worry about it for now.

In v07 I've also renamed "Weak" zones to "Possible", and "Proven" zones are now "Weak", as discussed back on page 15. The only changes I've made to Michael's code are to set the test button to invisible by default (for me it added to chart clutter) and the label text color to Grey instead of White - it was Grey previously so I thought the default color should be the same. Thanks Michael for adding the color/font options for the labels as well, much appreciated.
phoenicia7
Posts: 1
Joined: Wed Jul 29, 2015 12:56 pm

Support/Resistance Indicator

Post by phoenicia7 »

the v 07 is really good.
it would be very profitable, if someone can develop the indi to reduce the detected zones to only zones with a:
big breakout
<6 base candles

if this is possible, then it would be the best indi :)
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Support/Resistance Indicator

Post by Baluda »

Here is a conversion of SS_SupportResistance into classes.

Classes are:
  • CFractal - Tells us if a candle has a Fractal.
  • CSRZone - A Support/Resistance zone
  • CSR - The workhorse, finds zones.
Usage is fairly simple. Just check the test indicator 'SandR'.

If you don't get OOP, this is not for you.

Just let me know what you think.

Paul
You do not have the required permissions to view the files attached to this post.
Check the MQL4 Market for my best EA's and Indicators.
gararda
Posts: 3
Joined: Tue Apr 10, 2012 7:53 pm

Support/Resistance Indicator

Post by gararda »

Hi Baluda,

I have the following error in the "Experts" log:
"invalid pointer access in SandR.mq4 (86.71).

I copied the mqh files in the following path:
XXXXX\MQL4\Include\Deltabron\

is correct?

Best regards
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Support/Resistance Indicator

Post by Baluda »

gararda » Wed Aug 05, 2015 1:38 pm wrote:"invalid pointer access in SandR.mq4 (86.71).
Could be a history issue. Do you have enough candles?
Check the MQL4 Market for my best EA's and Indicators.
gararda
Posts: 3
Joined: Tue Apr 10, 2012 7:53 pm

Support/Resistance Indicator

Post by gararda »

Hi Baluda,

I have configured my charts for 10000000 bars and I have donwloaded the history of the pair I was testing with the Empty4 tool, so I think that the number of candles is not the problem.

The exact path I copied the files is:
"C:\Users\XXXX\AppData\Roaming\MetaQuotes\Terminal\CBAD7D1B35A2FBD485DA10342CF7119A\MQL4\Include\Deltabron"

Any other idea?.

Thank you so much¡¡¡
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Support/Resistance Indicator

Post by Baluda »

Could you possibly debug yourself and me know what line it throws the exception?
Check the MQL4 Market for my best EA's and Indicators.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Support/Resistance Indicator

Post by renexxxx »

I have made a quick fix to avoid the error, but I guess Paul needs to decide what to do if in line 75 of SandR.mq4, SRZones.FindZone() returns NULL.

Also, I noticed that some memory of the heap wasn't freed, so I added an extra line in OnDeinit().
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Indicators”