Download MetaTrader 5

how to add spread on EA

To add comments, please log in or register
Do you know that MQL5 has structures?
muruez
61
muruez 2015.08.12 15:32 

hi how to add spread on my current EA.

any help

thank you. 

Alain Verleyen
Moderator
30721
Alain Verleyen 2015.08.12 15:44  
muruez:

hi how to add spread on my current EA.

any help

thank you. 

Meaningless question, sorry.
muruez
61
muruez 2015.08.13 07:43  
Alain Verleyen:
Meaningless question, sorry.

hi when my EA run i just what my EA print the current spread on chart.

i have some indicator to do that now but i prefer to put this function in to my EA so all will in one program and it will help me to monitor the spread when the market so volatile.

because when market so volatile the spread go crazy.

thank you.   

Alain Verleyen
Moderator
30721
Alain Verleyen 2015.08.13 08:43  
muruez:

hi when my EA run i just what my EA print the current spread on chart.

i have some indicator to do that now but i prefer to put this function in to my EA so all will in one program and it will help me to monitor the spread when the market so volatile.

because when market so volatile the spread go crazy.

thank you.   

   Comment(StringFormat("Spread = %f",Ask-Bid));
muruez
61
muruez 2017.03.17 14:19  
Alain Verleyen:

thank you
To add comments, please log in or register