|
How to Get ZigZAG value |
tdurai84
|
Post subject: How to Get ZigZAG value |
Post rating: 0
|
Posted: Sat 04 Jul, 2015, 09:45
|
|
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....
|
|
|
|
 |
jlongo
|
Post subject: Re: How to Get ZigZAG value |
Post rating: 0
|
Posted: Sat 04 Jul, 2015, 16:34
|
|
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
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|