EMA CROSS

Discussion in 'MetaTrader Indicators' started by mjackson, Jun 3, 2015.

  1. mjackson

    mjackson Guest

    Enivid,

    I did not know if there is already similar thread..Anyway...need time frame in alert...currently does not show.
    ----
    This is optional if you want to add alert when price bar cross EMA of choice.

    Thank you
     

    Attached Files:

  2. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    Replace current line 190 with this:
    Code (MQL5):
              message =  StringConcatenate(Symbol()," --- EMA ",FastMa," ","Cross","  --- EMA ",SlowMa," ",doWhat," TF: ",EnumToString(PERIOD_CURRENT));
     
    Last edited: Sep 28, 2015
  3. mjackson

    mjackson Guest

    Thank you. You said it is MQL5 code but I need it for MT4 in that attached indicator.
     
    Last edited by a moderator: Sep 28, 2015
  4. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    I used MQL5 code highlighter. That line of code will work in MT4 too.
     
  5. mjackson

    mjackson Guest

    Well, in alert message window says:
    TF:pERIOD_CURRENT

    It doesn't say which time frame.
     

    Attached Files:

    Last edited by a moderator: Jun 8, 2015
  6. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    Last edited: Sep 28, 2015
  7. mjackson

    mjackson Guest

    Enivid, Still doesn't show anything on chart( no arrows anymore) and not in alert message box...? picture taken after compile...
     

    Attached Files:

    Last edited by a moderator: Sep 28, 2015
  8. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    Was there some compilation error?
     
  9. mjackson

    mjackson Guest

    No. you can try. no errors , no warnings.
     
  10. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    Please attach the latest .mq4 you are trying to run.
     
  11. mjackson

    mjackson Guest

    Here...on FXCM
     

    Attached Files:

  12. Enivid

    Enivid Administrator Staff Member

    11,029
    404
    114
    Perhaps, your chart just does not have any crossovers to display? Here it shows an arrow in EUR/USD H1 chart:
     

    Attached Files:

Share This Page