Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Indicators

MetaTrader Indicators Post and discuss the MetaTrader indicators here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 3rd July 2009, 09:50
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default ZigZag on Parabolic SAR

Discuss ZigZagOnParabolic MT4 indicator in this thread. You can ask any questions about this indicator here.
Reply With Quote
  #2 (permalink)  
Old 29th September 2009, 10:37
Default Avatar
Member
 
Join Date: Jun 2009
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Very nice. The use of Parabolic makes the ZigZag to redraw less and make it more reliable for trading.
Reply With Quote
  #3 (permalink)  
Old 24th July 2010, 06:34
Default Avatar
Junior Member
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default value of peak and troughs from zigzag parabolic

I am wondering what code i would need to write in order to be able to call up the value of the last peak and 2nd last peak in the zigzag parabolic SAR indicator, and the same for the troughs. i want to be able to compare the two price values to determine trend. any help appreciated.
Reply With Quote
  #4 (permalink)  
Old 24th July 2010, 08:55
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,445
Thanks: 6
Thanked 8 Times in 7 Posts
Default

The following buffers store the peak & trough values:
MQL5 Code:
Peak[]
Trough[]
You can call Peak[0] for the current peak, Trough[1] for the previous trough and so on.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #5 (permalink)  
Old 24th July 2010, 12:59
Default Avatar
Junior Member
 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for that i am just starting out in progamming and so need some more advice, i am basically wanting to determine trend from the zigzag parabolic SAR indicator i.e. have another line or separate indicator whichever is easier, that is 1 if last peak is higher than the 2nd last peak or -1 if last trough is lower than 2nd lowest trough.
Reply With Quote
Reply

Bookmarks

Tags
indicator, mt4, parabolic sar, zigzag


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Trade Parabolic SAR Indicator ChartSecret Forex Education 2 8th September 2010 04:06
Parabolic Indicator Question JXBlack MetaTrader Indicators 2 9th October 2009 09:04
Parabolic SAR Strategy Enivid Trading Systems and Strategies 0 8th October 2009 13:45


All times are GMT. The time now is 17:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2