Simple/Advanced Support/Resistance Levels

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Simple/Advanced Support/Resistance Levels

Postby Apprentice » Sat Oct 22, 2011 2:36 pm

Simple SupportResistance.png


Algorithm
Define the minimum number of confirmed extremes.
Define the width of the zone, within which to seek extremes (in pips)
Find Max and Min in the defined period.

Draw the line if the confirmation number is greater than the minimum number.

This is a conceptual indicator.
The advanced version is under development.


Simple SupportResistance.lua
(4.37 KiB) Downloaded 2449 times


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Support/Resistance

Postby Apprentice » Sun Oct 23, 2011 10:55 am

Advanced Suppor Resistance.png


Parameters walk through
"Min You Qualified"
Minimum number of in Zone rejections for registration of a level

"Min Length"
Minimum Length of line

"Max Length"
Maximum Length of line

"Zone width (in Pips)"
Zone width from Fractal

"Fractal"
Number of consecutive higher highs for Down Fractal
Number of consecutive lower lows for Up Fractal

"Search for " "Both"/ "Support" / "Resistance"
Show "Support" or "Resistance" or "Both".

Advanced Support Resistance.bin
(16.82 KiB) Downloaded 2594 times


With bin file extension you can work the same way as you used to with lua.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple/Advanced Support/Resistance Levels

Postby Apprentice » Sun Oct 23, 2011 12:47 pm

Final version added.
Further Improvements are possible.
I'm thinking about some additional functionality.
Suggestions are welcome.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple/Advanced Support/Resistance Levels

Postby Apprentice » Mon Oct 24, 2011 11:30 am

Capture.PNG

Here I have indicated possible zones of resistance and support.
The zone is stronger if it is confirmed by multiple lines.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple/Advanced Support/Resistance Levels

Postby Miroslav » Sun Oct 30, 2011 11:50 am

Thank you for very useful indicator! I use S/R zones for my trading. Every weekend I draw these zones in to the graph for next week. This indicator is very helpful for me.

I think that would be interesting add sound alarm. For example if price move across the S/R line .

Thank you, Mirek
Miroslav
 
Posts: 2
Joined: Sun Oct 30, 2011 11:37 am

Re: Simple/Advanced Support/Resistance Levels

Postby Apprentice » Sun Oct 30, 2011 5:25 pm

I have added more options to the advanced version.
First, tolerance.
It allows tolerating a certain number of candles outside of area.
Second, given the choice between Body / Wick as line break triggers.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple/Advanced Support/Resistance Levels

Postby TraderKen » Mon Oct 31, 2011 2:52 am

Hi Apprentice,
Thank you for this useful indicator.
I have a small suggestion. When several support/resistance lines stay close together (in a small range like 10 pips, for example), all these lines will automatically combine to form a blurred zone on the chart. It also helps avoid a lot of lines in such a small area.

And if the current candle stays higher than that zone, the zone will have a green color. On the contrary, if the current candle stays below that area, the color of the zone will be red. If this function is too complicated to code, please feel free to dismiss.

Best regards,
Ken
TraderKen
 
Posts: 14
Joined: Sat Oct 22, 2011 3:58 pm

Re: Simple/Advanced Support/Resistance Levels

Postby Miroslav » Sun Nov 20, 2011 4:43 pm

Indicator Advanced Support Resistance.bin doesn't work in new version of platform :-(
Miroslav
 
Posts: 2
Joined: Sun Oct 30, 2011 11:37 am

Re: Simple/Advanced Support/Resistance Levels

Postby Apprentice » Sun Nov 20, 2011 5:53 pm

I am aware of that fact.
Tomorrow I will try to find time to update all .Bin indicators
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 174 guests