TradingView
DS24
6 de Jul de 2019 12:19

Support and Resistance lines - version 2 

AUD/CADOANDA

Descrição

I created a new version of the Support and Resistance lines script. Compared to the original script this version
1. works with a lot more currency pairs
2. SR line width can be set in the indicator settings window
3. the vertical lines, arrows and the SR lines can be turned off in the indicator settings window
4. the indicator settings window can be opened by clicking on a star symbol that is placed in the upper right corner of the graph window
Comentários
DS24
Replacing code lines 11 to 117 with a code as conceptually outlined below will enable the editing of the SR line values via the indicator settings window.

AUDCADSR1 = input(title="1. AUDCAD SR1", type=float, defval=0.936, step=0.00001)
AUDCADSR2 = input(title="1. AUDCAD SR2", type=float, defval=0.922, step=0.00001)
AUDCADSR3 = input(title="1. AUDCAD SR3", type=float, defval=0.913, step=0.00001)
AUDCADSR4 = input(title="1. AUDCAD SR4", type=float, defval=0.901, step=0.00001)
AUDCADSR5 = input(title="1. AUDCAD SR5", type=float, defval=0.892, step=0.00001)

AUDJPYSR1 = input(title="2. AUDJPY SR1", type=float, defval=77.8, step=0.001)
AUDJPYSR2 = input(title="2. AUDJPY SR2", type=float, defval=76.1, step=0.001)
AUDJPYSR3 = input(title="2. AUDJPY SR3", type=float, defval=75.4, step=0.001)
AUDJPYSR4 = input(title="2. AUDJPY SR4", type=float, defval=74.2, step=0.001)
AUDJPYSR5 = input(title="2. AUDJPY SR5", type=float, defval=72.5, step=0.001)
krishnakrishna39928
DS24
Hi there. Sorry about not responding. My life moved on. I have not looked at my old work in years. I will respond soon.
krishnakrishna39928
update the support and resistance lines v2
pramaniksumit1
Hi, could you please update it for all pairs,Like Equity(Tesla,Amazon), cash, Future market. You have done an amazing job.
fuhuiceo
Please update, it is not available now (cannot be displayed)
harmeet9000
I want to use this fro scrips and not currency.

What changes do I need to make to the code please ?

Thanks
DS24
@harmeet9000, what do you mean by "scrips". Please give an example.
Nobmix2013
hi...is it possible to make it an indicator for mt4?thanks
DS24
@Nobmix2013, sorry for the late reply. I wasn't notified about your post. I am sure it is possible to create the same program in mt4. Problem is, I have never programmed anything in mt4 and don't have the time to venture into it.
Mais