Hi..
I hope you all have a great weekend..
I have 2 request here regarding a standard ZigZag Metratrader 4 indicator
1. ZigZag EA
I found a code at mql4 forum, http://forum.mql4.com/29344. It use the standard ZigZag indicator. I manage to remove the error. But when I test using strategy tester, I got this error
"SetIndexBuffer function must be called from custom indicator only"
Below is the functions line..
I really don't know how to change it.. If you guys can just tell me what to do, I will really appreciate it..
2. ZigZag Indicator with sound/alert
I've search the Internet for this but found no solution. Most of the available 'ZigZag with alarm' is not using the standard ZigZag.
Here is what I want - I want the standard ZigZag indicator to make a sound whenever a new line appear.. I really doesn't matter if the line will change again later.
I just want the first appearance of line to have a sound(or whenever the line appear/change). Whichever is easy to make.
MQL4 have a function called PlaySound() for that purpose.. I hope you guys can guide me at which line to put the function as I really don't understand the ZigZag coding that will make the new line appear.
This ZigZag indicator with sound will really help for early indication of trend change. I will confirm it with other indicator of course..
I prefer the standard ZigZag Indicator over other similar type.
I've attached the ZigZagsEA and the standard ZigZag Indicator.
Thanks for the help...
I hope you all have a great weekend..
I have 2 request here regarding a standard ZigZag Metratrader 4 indicator
1. ZigZag EA
I found a code at mql4 forum, http://forum.mql4.com/29344. It use the standard ZigZag indicator. I manage to remove the error. But when I test using strategy tester, I got this error
"SetIndexBuffer function must be called from custom indicator only"
Below is the functions line..
Inserted Code
//---- indicator buffers mapping SetIndexBuffer(0,ZigzagBuffer); SetIndexBuffer(1,HighMapBuffer); SetIndexBuffer(2,LowMapBuffer);
2. ZigZag Indicator with sound/alert
I've search the Internet for this but found no solution. Most of the available 'ZigZag with alarm' is not using the standard ZigZag.
Here is what I want - I want the standard ZigZag indicator to make a sound whenever a new line appear.. I really doesn't matter if the line will change again later.
I just want the first appearance of line to have a sound(or whenever the line appear/change). Whichever is easy to make.
MQL4 have a function called PlaySound() for that purpose.. I hope you guys can guide me at which line to put the function as I really don't understand the ZigZag coding that will make the new line appear.
This ZigZag indicator with sound will really help for early indication of trend change. I will confirm it with other indicator of course..
I prefer the standard ZigZag Indicator over other similar type.
I've attached the ZigZagsEA and the standard ZigZag Indicator.
Thanks for the help...
Attached File(s)
ZigZag.mq4
6 KB
|
1,605 downloads
ZigZagsEA.mq4
14 KB
|
2,635 downloads
Trading is a lifestyle...