#
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Home
Forex Forum
+ Add Script
Metastock
Expert Advisors
Explorations
Indicators
Trading Systems
Metatrader
MQL Experts
MQL Indicators
MQ4 Experts
MQ4 Indicators
MQ4 Scripts
Tradestation
Functions
Indicators
PaintBars
ShowMe
Trading Systems
Amibroker
Commentaries
Explorations
Functions
Indicators
Trading Systems
Contact us
Newsletter
Group: Metastock Indicators
Title: Support & Resistance - Peaks/Troughs by Jose Silva
Description:
Support & Resistance - Peaks/Troughs by Jose Silva
Support & Resistance - Peaks/Troughs { Support & Resistance v2.0 } { Plots support/resistance levels based on normal or hindsight peaks/troughs } { ©Copyright 2004 Jose Silva } { http://www.metastocktools.com } { User inputs } plot:=Input("[1]Support, [2]Resistance, [3]Both, [4]Combination",1,4,3); x:=Input("use [1]High/Low, [2]Close",1,2,1); type:=Input("Type: [1]Normal, [2]Hindsight", 1,2,1); depth:=Input("Peak/Trough minimum depth (0~50%)",0,50,5); pds:=Input("Peak/Trough period base (3~252)", 3,252,5); { Price field } xHi:=If(x=1,H,C); xLo:=If(x=1,L,C); { Non-hindsight Support/Resistance } Hi:= (HHV(xHi,pds-1)>xHi)>Ref(HHV(xHi,pds-1)>xHi,-1); HiVal1:=ValueWhen(1,Hi,Ref(xHi,-1)); Lo:= (LLV(xLo,pds-1)
Ref(LLV(xLo,pds-1)
LoVal1*(1+depth/100); Lo:=Lo AND LoVal1
Author/Source:
http://www.metastocktools.com
Forex Directory
|
Free Forex Strategies
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact