log in     sign up for free
 
You can't make money if you're not willing to lose. It's like breathing in, but not being willing to breathe out. Various types of exits will help you do this (i.e., breathe fully), including trailing stops and the percent retracement stop.
Van K. Tharp
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Break Above Last Peak

Formula for: MetaStock

indicator


 

 

Views:  1685

Added: March 12, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: MetaStock, indicator
 
Your Ad Here


Code:

WS_Peaks

{shows all Peaks}
m:= Input("PercentChange" ,0 ,100 ,3 ) ;
If(0=PeakBars(1,C ,m) ,1 ,0 )



WS_Troughs

{shows all Troughs}
m:= Input("PercentChange" ,0 ,100 ,3 ) ;
If(0=TroughBars(1,C ,m) ,1 ,0 )

Break Above Last Peak

m:=Input("ZigZag Mindestveränderung in Prozent", 0.1, 99, 3);

cond1:=TroughBars(1 ,C,m) <PeakBars(1,C,m) AND C>Peak(1,C,m);
pc:=(Peak(1,C,m)-C)*100/Peak(1,C,m);
cond3:= TroughBars(1 ,C,m) >PeakBars(1,C,m) AND pc<m AND C>Peak(2,C,m) AND BarsSince( pc>m) >=PeakBars(1,C,m);
If( cond1 OR cond3, 1, 0)


 





Source: http://www.chartbuch.de/cgi-bin/index.pl?ST=3943&CP=7&F=IIJKJ

 

View similar (indicator for MetaStock):

Stochastic - Triple
Trend Analysis Index
Market Thrust Oscillator
2-point Plot
Ken Roberts' Formulas
Chande's Momentum Oscillator II
High Low Wave - Daily
Relative Strength Index (RSI) Custom V
RVI Refined
Point of Balance Oscillator and Mov. Averages
...
 
 
all formulas for MetaStock
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012