ZigZag Trend Lines

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

ZigZag Trend Lines

Postby Apprentice » Tue Jan 19, 2021 7:14 am

EURUSD m5 (01-19-2021 1314).png

Based on the request.
viewtopic.php?f=27&t=70832
ZigZag Trend Lines.lua
(7.17 KiB) Downloaded 353 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Trend Lines

Postby arfs9090 » Wed Jan 20, 2021 9:48 am

Hi Apprentice,
Great Job and thanks for the quick turnaround found a few issues if this can be looked into

1. Seems to not taking data from the request points as stated in the request on the this task
Point A is the 2nd candle b4 the high /low, and B &C is the 1st candle to closed past A
The downswings have not been taken from the ASK price or upswings from the BID price

For new up zigzag printed use BID price
A= the close 2nd seller’s candle b4 zigzag on BID price
B= the open 1st buyer’s after zigzag closed above point A
C= the close 1st buyer’s after zigzag closed above point A


For new down zigzag printed use ASK price
A= the close of 2nd buyer’s candle b4 zigzag on ASK price
B= the open of 1st seller’s after zigzag closed below point A
C= the close 1st seller’s after zigzag closed below point A


2. Like the idea :P you have incorporated when structure is broken then that candle data is used,
The breakout data to be on end of turn
3. Still need to show the historical data as well please as in the original request
4. Need colour and line option for the upswing and downswings Breakout and historical.
The line extension to continue with the line not change back to dash as can get confusing
5. When use the number if that can use number of last swings when put on 4 would expect to show last 4 swing this is not what it shows
6. Show the last would have option to show 4 upswings /downswings show last 2 breakouts and show last 4 historical have individual show last
7. The lower time frames seem to work ok but seems to be a glitch when changing from bid to ask and also randomly will delete indicator data, have to go into indicator setting and apply again tends to happen on 1min wen new patterns happening quickly

Thanks
Arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: ZigZag Trend Lines

Postby Apprentice » Thu Jan 21, 2021 3:05 pm

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

Re: ZigZag Trend Lines

Postby Apprentice » Mon Jan 25, 2021 4:54 am

Can you show the difference between 2nd seller’s candle and 2nd buyer’s candle on example?
Now it is coded as 2nd candle before zig zag.
All these addons complicate coding.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Trend Lines

Postby arfs9090 » Tue Jan 26, 2021 8:51 am

Hi Apprentice & Team
The conditions were outlined in the first post request my bad for not showing the upswing and downswing screenshots. It is still the 2nd candle b4 the swing high or low just depends if zigzag is printed upswing or downswing and the sorry forgot to add line and colour options to define if historical current or the new breakout what you have incorporated, below are the conditions for both upswing and downswings have attached both upswing and downswing screenshot

For new up zigzag printed use BID price
A= the close 2nd seller’s candle b4 zigzag on BID price
B= the open 1st buyer’s after zigzag closed above point A
C= the close 1st buyer’s after zigzag closed above point A


For new down zigzag printed use ASK price
A= the close of 2nd buyer’s candle b4 zigzag on ASK price
B= the open of 1st seller’s after zigzag closed below point A
C= the close 1st seller’s after zigzag closed below point A

Thanks in adavance
Arfs



ASK ZZ trend lines.jpeg
BID ZZ trendline.jpeg
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: ZigZag Trend Lines

Postby Apprentice » Wed Jan 27, 2021 3:23 am

seller’s candle is down candle?
2nd seller’s candle is the second down candle before the zigzag top.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Trend Lines

Postby arfs9090 » Wed Jan 27, 2021 7:05 am

Apprentice wrote:seller’s candle is down candle?
2nd seller’s candle is the second down candle before the zigzag top.


Hi Apprentice
The screenshot of the historical light line not the best example as only a 3 candle swing,

On downswing A = buyers candle close B & C = sellers candle open /close
On upswing A = sellers candle close B & C = buyers candle open /close

For new printed upswing use BID price A is 2nd Sellers candle b4 the low of zigzag B is the open of 1st buyers candle to close above A and C is the close of the1st candle that closed above A

For new printed downswing use ASK price A is 2nd Buyers candle b4 the high of zigzag B is the open of 1st sellers candle to close below A and C is the close of the 1st candle that closed below A

Thanks hope this clarifies
Arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: ZigZag Trend Lines

Postby arfs9090 » Tue Feb 16, 2021 3:40 am

HI Apprentice,
Has there been any update on the task?
Arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: ZigZag Trend Lines

Postby Apprentice » Fri May 07, 2021 4:35 am

I don't understand how it is related to ZigZag Trend Lines.lua
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Trend Lines

Postby arfs9090 » Thu May 27, 2021 5:53 am

Apprentice wrote:I don't understand how it is related to ZigZag Trend Lines.lua


Hi Apprentice ,
The references of A,B and C is to show where the data is taken from to draw the Zigzag trend lines as they vary from the upswing to the down swings and uses the buyers and sellers candles vary if the start of a potential reversal
On downswing A = buyers candle close B & C = sellers candle open /close
On upswing A = sellers candle close B & C = buyers candle open /close

For new printed upswing use BID price A is 2nd Sellers candle b4 the low of zigzag B is the open of 1st buyers candle to close above A and C is the close of the1st candle that closed above A

For new printed downswing use ASK price A is 2nd Buyers candle b4 the high of zigzag B is the open of 1st sellers candle to close below A and C is the close of the 1st candle that closed below A
hope you understand the request
Arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 58 guests