Harmonic Shark
The indicator detects and displays Shark harmonic pattern (see the screenshot). The pattern is plotted by the extreme values of the ZigZag indicator (included in the resources, no need to install). After detecting the pattern, the indicator notifies of that by a pop-up window, a mobile notification and an email. The indicator highlights the process of the pattern formation and not just the complete pattern. In the former case, it is displayed in the contour triangles. After the pattern is complete, a potential reversal zone appears on the chart.
Parameters
- zzDepth, zzDev, zzBack - ZigZag parameters
- AB_min (ab/ax), AB_max (ab/ax) - minimum and maximum ratio of AB and AX levels
- BC_min (bc/ab), BC_max (bc/ab) - minimum and maximum ratio of BC and AB levels
- OC_min (bc/ob), OC_max (bc/ob) - minimum and maximum ratio of BC and OB levels
- bearColor - bearish pattern color
- bullColor - bullish pattern color
- CountBars - limit the amount of bars to be processed by the indicator (reduces the initial download time)
- Usealert - enable pop-up messages
- UseNotification - enable push notifications
- UseMail - enable email notifications
- prefix - text label for indicator objects on a chart (enter various values for these parameters when applying several indicators to the chart)
- MessageAdd - text line added to the notifications sent to indicators
- ShowPreset - allow the pattern display during its formation
- CustomEventBuy,CustomEventSell - chart events
Sample to use signals in EA:
void OnTick() { double x; x = iCustom(Symbol(),PERIOD_CURRENT,"Harmonic-Shark",0,1); if (x != 0 && x != EMPTY_VALUE) goBuy(); x = iCustom(Symbol(),PERIOD_CURRENT,"Harmonic-Shark",2,1); if (x != 0 && x != EMPTY_VALUE) goSell(); } void goBuy() { // function for open BUY } void goSell() { // function for open SELL }
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam) { switch (id) { case CHARTEVENT_CUSTOM+100: goBuy(); break; case CHARTEVENT_CUSTOM+101: goSell(); break; } } void goBuy() { // function for open BUY } void goSell() { // function for open SELL }
联系方式
公司:顺水的鱼外汇EA
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com
状态:离线 发送信件 在线交谈
姓名:顺水的鱼(先生)
职位:投机客
电话:18391752892
手机:18391752892
地区:默认地区
地址:西安市高新区软件园
邮件:3313198376@qq.com
QQ:3313198376
微信:18391752892
阿里旺旺:顺水的鱼waterfish
Skype:3313198376@qq.com

