logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
crossover  
#1 Posted : Friday, December 13, 2013 3:22:42 AM(UTC)
crossover

Rank: Member

Groups: Registered, Registered Users
You have been a member since:: 11/13/2012(UTC)
Posts: 19

Hello everyone,
I have been trying for a while to find a way to write an indicator that identifies peaks and troughs however I don't find the zig-zag function very useful.
However I think that if there was a way to compute angles then it would be possible to define what is a peak/trough and what is not e.g. when angle < 30 degrees then consider this as a peak/trough.
I played a little with the math&trig functions but didn't manage to find a way for this.
Do you guys have any ideas that could be useful ? Thanks
John S  
#2 Posted : Friday, December 13, 2013 12:04:32 PM(UTC)
John S

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/9/2012(UTC)
Posts: 169

There are built-in functions called Peak() and Trough() but these are based on ZigZag and percent change. Doing this by angle is not easy and I'm not sure how it could be effectively done at all. The angle will be dependent on the amount of data loaded (x-axis) and the range of prices (y-axis). Its a Rise over Run deal. Angle is important for Gann enthusiasts. The 45 degree Gann line requirs a perfect 1x1 rise/run.


MS Support  
#3 Posted : Monday, December 16, 2013 12:31:47 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
crossover wrote:
Hello everyone,
I have been trying for a while to find a way to write an indicator that identifies peaks and troughs however I don't find the zig-zag function very useful.
However I think that if there was a way to compute angles then it would be possible to define what is a peak/trough and what is not e.g. when angle < 30 degrees then consider this as a peak/trough.
I played a little with the math&trig functions but didn't manage to find a way for this.
Do you guys have any ideas that could be useful ? Thanks

You may also want to check out the Help File on: Linear Regression Slope: Overview

We also have a couple custom formulas on our support page you want to check out regarding the slope:

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.