Dukascopy
 
 
Wiki JStore Search Login

How to Get ZigZAG value
 Post subject: How to Get ZigZAG value Post rating: 0   New post Posted: Sat 04 Jul, 2015, 09:45 
User avatar

User rating: 0
Joined: Tue 27 Dec, 2011, 13:36
Posts: 16
Location: India, Coimbatore
hi,

For calculation purpose how to get ZIGZAG indicator low and high price...

pls help....


 
 Post subject: Re: How to Get ZigZAG value Post rating: 0   New post Posted: Sat 04 Jul, 2015, 16:34 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi

ZigZag indicator only outputs values when it is draw (ticks) or on the bar where it is draw and the ones with greater or lower values after first draw depending on the direction. All other situations we get a NaN if i'm not in mistake.
You need two variables, one for low and one for high... if you get a zigzag value greater than the high, change it to this value... otherwise change the low saying it in a simple way. Also you need to check if it is a new leg of zigzag.

Regards

JL


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com