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

Support/Resistance Indicator
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=514
Page 18 of 23
Author:  hannele [ Wed Jul 22, 2015 10:00 pm ]
Post subject:  Support/Resistance Indicator

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
Author:  Lowphat [ Wed Jul 22, 2015 11:59 pm ]
Post subject:  Support/Resistance Indicator

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!
Author:  slipshod [ Thu Jul 23, 2015 2:57 am ]
Post subject:  Support/Resistance Indicator

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.
Author:  phoenicia7 [ Tue Aug 04, 2015 11:50 am ]
Post subject:  Support/Resistance Indicator

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 :)
Author:  Baluda [ Wed Aug 05, 2015 12:27 pm ]
Post subject:  Support/Resistance Indicator

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
Author:  gararda [ Wed Aug 05, 2015 12:38 pm ]
Post subject:  Support/Resistance Indicator

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
Author:  Baluda [ Wed Aug 05, 2015 12:42 pm ]
Post subject:  Support/Resistance Indicator

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?
Author:  gararda [ Wed Aug 05, 2015 2:10 pm ]
Post subject:  Support/Resistance Indicator

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¡¡¡
Author:  Baluda [ Wed Aug 05, 2015 3:13 pm ]
Post subject:  Support/Resistance Indicator

Could you possibly debug yourself and me know what line it throws the exception?
Author:  renexxxx [ Wed Aug 05, 2015 11:38 pm ]
Post subject:  Support/Resistance Indicator

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().
All times are UTC Page 18 of 23