Page 1 of 1

ZigZag Oscillator

PostPosted: Fri Apr 28, 2017 3:36 am
by Apprentice
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 1252 times

Re: ZigZag Oscillator

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

Re: ZigZag Oscillator

PostPosted: Mon May 29, 2017 8:28 am
by Apprentice
Try it now.

Re: ZigZag Oscillator

PostPosted: Mon May 29, 2017 3:33 pm
by kolikol
Thanks for error fixing, but when trying to paste it into a chart, mt still freezing :(

Re: ZigZag Oscillator

PostPosted: Wed Jun 14, 2017 7:43 am
by Apprentice
Try it now.

Re: ZigZag Oscillator

PostPosted: Fri Jul 07, 2017 6:13 pm
by kolikol
Perfect sir :) Many thanks.