Zig high-low

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Zig high-low

Postby Apprentice » Thu Oct 29, 2020 12:38 pm

EURUSD D1 (10-29-2020 1837).png

Based on request.
viewtopic.php?f=27&t=70569
Zig high-low.lua
(6.65 KiB) Downloaded 60 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27951
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zig high-low

Postby SANTOSH » Sat Oct 31, 2020 3:41 am

Dear Apprentice ,
Thanks for working on my request .

I checked the code , seems something is not correct here .
Last zig high /low which contains inside all the next zig high low was =
Last zig high - 1.12538
Last zig low - 1.11677

But as per the image its printing -
1.11933 (zig high) and 1.11713( zig low )


The print should be this as the request was :
Condition -
The zig highlow values should only update when
1. The new zig high is above the old zig high .
2. The new zig low is below the old zig low .
Otherwise it should not update .

Kindly check if anything is bugged .

Regards ,
Santosh .
Attachments
Zig high low error.png
SANTOSH
FXCodeBase: Initiate
 
Posts: 186
Joined: Tue Apr 21, 2015 12:21 am

Re: Zig high-low

Postby Apprentice » Tue Nov 03, 2020 6:15 am

Zig high-low.lua
(6.91 KiB) Downloaded 38 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27951
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zig high-low

Postby SANTOSH » Wed Nov 04, 2020 4:53 am

Dear Team ,
Good work as always , working as expected .

Request for two updates :

Update # 1 :
Remove the lookback setting which is used in the menu as PERIOD , instead do the following :
a. Whenever there is a new zig low , the high print should be previous zig high .
b. Whenever there is a new zig high, the low print should be previous zig low .
Attached image .


Update# 2:
a. Count the number of bars after the new zig high or new zig low .
b. Reset the count at new zig high/low .
Attached image .
Attachments
Updates.png
SANTOSH
FXCodeBase: Initiate
 
Posts: 186
Joined: Tue Apr 21, 2015 12:21 am

Re: Zig high-low

Postby Apprentice » Thu Nov 05, 2020 3:38 am

Your request is added to the development list.
Development reference 2253.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27951
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zig high-low

Postby SANTOSH » Fri Nov 06, 2020 1:36 pm

Apprentice wrote:Your request is added to the development list.
Development reference 2253.

.
Updates?
SANTOSH
FXCodeBase: Initiate
 
Posts: 186
Joined: Tue Apr 21, 2015 12:21 am

Re: Zig high-low

Postby Apprentice » Thu Nov 12, 2020 5:46 am

BABA.us H1 (11-12-2020 1143).png

You have changed the definition a few times, will need clear specifications to continue.
Or this is an alternative version?
What will be high/low in a situation when the current zig-zag is lower than the previous zig-zag low.
The first zig zag lower than current?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27951
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zig high-low

Postby SANTOSH » Thu Nov 12, 2020 8:08 am

Apprentice wrote:
The attachment BABA.us H1 (11-12-2020 1143).png is no longer available

You have changed the definition a few times, will need clear specifications to continue.
Or this is an alternative version?
What will be high/low in a situation when the current zig-zag is lower than the previous zig-zag low.
The first zig zag lower than current?



1. When the current zig low is lower than the previous zig low do below ; otherwise dont do anything. Attached pic from your example .

High - Current Zig high
Low -Current Zig low
Count = No of bars after the confirmed Zig low .Reset the count whenever there is a change in the above High/ Low value .
Width = High - low
Ratio = Width/Count

Hope its clear now .
Attachments
BABA.us H1 (11-12-2020 1143)_ZIGHIGHLOW DEF.png
SANTOSH
FXCodeBase: Initiate
 
Posts: 186
Joined: Tue Apr 21, 2015 12:21 am

Re: Zig high-low

Postby Apprentice » Fri Nov 13, 2020 3:29 am

Zig high-low.lua
(6.85 KiB) Downloaded 22 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27951
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Zig high-low

Postby SANTOSH » Fri Nov 13, 2020 4:09 am

Apprentice wrote:
The attachment Zig high-low.lua is no longer available

Try this version.



BUG
Attachments
Bug.png
SANTOSH
FXCodeBase: Initiate
 
Posts: 186
Joined: Tue Apr 21, 2015 12:21 am

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 9 guests