Can someone help me to make alert on my indicator when breakhi and breaklow??

 

1

//+------------------------------------------------------------------+

2

//| fmcbr_v1.1.mq4 |

3

//| Mohd Syawal Sakawi |

4

//| |

5

//+------------------------------------------------------------------+

6

#property copyright "BlackzGunz"

7

#property description ""

8

#property link ""

9

#property version "1.10"

10

#property strict

11

#property indicator_chart_window

12

#property indicator_buffers 6

13

14

extern color BLUE= clrAqua;

15

extern color RED = clrRed;

16

extern int inDepth=50;

17

extern int Limit=240;

18

extern string Fibo_Level="Klik false untuk tutup level";

19

extern bool Base=true;

20

extern bool Entry1 = true;

21

extern bool Entry2 = true;

22

extern bool Premature_Entry_1 = true;

23

extern bool Premature_Entry_2 = true;

24

extern bool Pullback = true;

25

extern bool BreakOut = true;

26

extern bool TP1=true;

27

extern bool Ext_TP1_1 = true;

28

extern bool Ext_TP1_2 = true;

29

extern bool Premature_TP_1 = true;

30

extern bool Premature_TP_2 = true;

31

extern bool TP2=true;

32

extern bool Ext_TP2_1 = true;

33

extern bool Ext_TP2_2 = true;

34

extern bool Compelete_Cycle=true;

35

extern bool Ext_Compelete_Cycle_1 = true;

36

extern bool Ext_Compelete_Cycle_2 = true;

37

38

39

40

41

//+----- Global variable --------

42

double cbHi[],cbLow[],hi[],low[],breakHi[],breakLow[];

43

int fiboCount;

44

//+------------------------------------------------------------------+

45

//| Custom indicator initialization function |

46

//+------------------------------------------------------------------+

47

int OnInit()

48

{

49

//--- indicator buffers mapping

50

ObjectsDeleteAll(0,OBJ_FIBO);

51

SetIndexBuffer(0,hi); SetIndexStyle(0,DRAW_ARROW,0,2,clrRed); SetIndexArrow(0,242);

52

SetIndexBuffer(1,low); SetIndexStyle(1,DRAW_ARROW,0,2,clrBlue); SetIndexArrow(1,241);

53

SetIndexBuffer(2,cbHi); SetIndexStyle(2,DRAW_ARROW,0,2,clrBlue); //SetIndexArrow(2,140);

54

SetIndexBuffer(3,cbLow); SetIndexStyle(3,DRAW_ARROW,0,2,clrRed); //SetIndexArrow(3,140);

55

SetIndexBuffer(4,breakHi); SetIndexStyle(4,DRAW_ARROW,0,1,clrBlue);// SetIndexArrow(4,140);

56

SetIndexBuffer(5,breakLow); SetIndexStyle(5,DRAW_ARROW,0,1,clrRed);// SetIndexArrow(5,140);

57

//---

58

return(INIT_SUCCEEDED);

59

}

Files:
fmcbr_v1.1.mq4  16 kb
 

When you post code please use the CODE button (Alt-S)!

Use the CODE button

 
  1. Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
              Messages Editor

  2. BlackzGunz92: Can someone help me to make alert on my indicator when breakhi and breaklow??

    Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help (2017)

  3. English only on this forum. “breakhi” and “breaklow” are not words. Until you can state your requirements in concrete terms, it can not be coded.