ZigZag Oscillator

Custom MT4 expert advisors published here.

Moderator: admin

ZigZag Oscillator

Postby Apprentice » Fri Apr 28, 2017 3:36 am

ZigZag_Oscillator.png

LUA Original: viewtopic.php?f=17&t=10714

Description:

This indicator calculates the ZigZag values but the result is displayed in a subwindow as an oscillator, having the difference between price and the last ZZ point.

Formula goes as follows:

ZigZag_osc=100*(Price-Base)/Base, where
Base - the starting price of the current branches zigzag indicator.
ZigZag_Oscillator.mq4
(14.4 KiB) Downloaded 218 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17537
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Oscillator

Postby kolikol » Sun May 28, 2017 4:47 pm

Error in code: "not all control paths return a value" and mt freezing when trying to paste it into a chart :(
kolikol
 
Posts: 5
Joined: Sun May 28, 2017 4:42 pm

Re: ZigZag Oscillator

Postby Apprentice » Mon May 29, 2017 8:28 am

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17537
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Oscillator

Postby kolikol » Mon May 29, 2017 3:33 pm

Thanks for error fixing, but when trying to paste it into a chart, mt still freezing :(
kolikol
 
Posts: 5
Joined: Sun May 28, 2017 4:42 pm

Re: ZigZag Oscillator

Postby Apprentice » Wed Jun 14, 2017 7:43 am

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17537
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ZigZag Oscillator

Postby kolikol » Fri Jul 07, 2017 6:13 pm

Perfect sir :) Many thanks.
kolikol
 
Posts: 5
Joined: Sun May 28, 2017 4:42 pm


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 3 guests