Support Resistance

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

Re: Support Resistance

Postby Apprentice » Wed Aug 19, 2020 3:36 am

Tolerance defines how many candles are allowed within the S / R zone.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27498
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support Resistance

Postby speakinmymind » Sun Aug 30, 2020 3:45 pm

Can you make an option for the zone to be the wick of the candle instead of a number of pips?
speakinmymind
FXCodeBase: Graduate
 
Posts: 317
Joined: Thu Feb 28, 2013 8:18 am

Re: Support Resistance

Postby Apprentice » Mon Aug 31, 2020 8:03 am

You mean "Tolerance"?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27498
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support Resistance

Postby speakinmymind » Tue Sep 01, 2020 1:31 am

Well both, right now the indicator is designed to make the zone a certain number of pips above and below the High or Low. Then tolerance makes them go away on a number of touches.

I would like the same feature, but the zone would just be the wick of the candle and tolerance would still make them go away on a number of touches.

Thanks
speakinmymind
FXCodeBase: Graduate
 
Posts: 317
Joined: Thu Feb 28, 2013 8:18 am

Re: Support Resistance

Postby Apprentice » Tue Sep 01, 2020 2:27 am

Line 138
Value=math.max(source.close[up[i]], source.open[up[i]]);
For resistance, zone is defiend by max of two, close and open.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27498
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support Resistance

Postby speakinmymind » Wed Sep 02, 2020 9:52 pm

Apprentice wrote:Line 138
Value=math.max(source.close[up[i]], source.open[up[i]]);
For resistance, zone is defiend by max of two, close and open.


I honestly don't know what to do with this line of code. I'm lost :?:
speakinmymind
FXCodeBase: Graduate
 
Posts: 317
Joined: Thu Feb 28, 2013 8:18 am

Re: Support Resistance

Postby speakinmymind » Tue Sep 15, 2020 5:45 pm

Please help. I put that code on that line in the indicator but it won't work.
speakinmymind
FXCodeBase: Graduate
 
Posts: 317
Joined: Thu Feb 28, 2013 8:18 am

Re: Support Resistance

Postby Apprentice » Wed Sep 16, 2020 10:57 am

The problem is, I don't understand you,
and how to implement it.
Can you provide a chart example?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27498
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Support Resistance

Postby speakinmymind » Mon Sep 21, 2020 1:38 pm

It is the original support resistance indicator. It used any candle wick as a support or resistance "zone". The entire wick is the "zone".

When the advanced version of this indicator was created, it uses pips to define a "zone".

I was hoping to have the functionality of the advanced version (tolerance, filters, alerts,) but using the original concepts for zones (any wick that price hasn't closed above or below) (see pic).

Alternatively if you could add these to the original support resistance indicator it would accomplish the same thing:

"touch tolerance",
"up/down candle filter"
"support/resistence filter"
Attachments
Support Resistance.png
speakinmymind
FXCodeBase: Graduate
 
Posts: 317
Joined: Thu Feb 28, 2013 8:18 am

Re: Support Resistance

Postby Apprentice » Tue Sep 22, 2020 5:21 am

Advanced Support Resistance 2.lua
(15.29 KiB) Downloaded 55 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27498
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], wuhuilin11 and 5 guests