Need help to modify EMA crossover indicator

 

Hi,

Can anyone please modify this EMA crossover indicator as below,

Currently whenever there is an EMA cross occurs it triggers an email with text "EMA (6) crosses UP SMA (50)".

Is it possible to add price at which the EMA crosses along with the text as below

Eg: "EMA (6) crosses UP SMA (50) at 1.3365"

Thanks,

srtrader

Files:
 
srtrader:
Hi,

Can anyone please modify this EMA crossover indicator as below,

Currently whenever there is an EMA cross occurs it triggers an email with text "EMA (6) crosses UP SMA (50)".

Is it possible to add price at which the EMA crosses along with the text as below

Eg: "EMA (6) crosses UP SMA (50) at 1.3365"

Thanks,

srtrader

srtrader

You can not calculate exactly at what price one ma is crossing another ma (it can be between two bars, and, due to the nature of time series, you actually can not tell at what exact price and time did two ma cross each other). All that can be told is an approximation, but in cases of big changes those prices can differ very much from what you see on chart

 

Thanks mladen. As per the indicator rules, it displays the buy (up) and sell (down) arrow mark only when the candle closes above or below the EMA cross. So in that case is it good to take the close price of this candle?

 
srtrader:
Thanks mladen. As per the indicator rules, it displays the buy (up) and sell (down) arrow mark only when the candle closes above or below the EMA cross. So in that case is it good to take the close price of this candle?

If it is the close price of the current bar when the cross is confirmed, then there is n problem

 

Mladen,

Is it possible to modify the indicator to include the price when the arrow displays in the chart? ( Not exactly when the EMA crosses but when arrow displays on chart. I don't have any coding knowledge so just explained in simple)

 
srtrader:
Mladen, Is it possible to modify the indicator to include the price when the arrow displays in the chart? ( Not exactly when the EMA crosses but when arrow displays on chart. I don't have any coding knowledge so just explained in simple)

Here you go : 2ma_crossover_1.01.mq4

PS: be advised that that indicator is using one future value for crosses. Draw your own conclusions from that

Files:
 

mladen,

Thank you very much. Really nice to see a person like you.

Reason: