how to add spread on EA

 

hi how to add spread on my current EA.

any help

thank you. 

 
muruez:

hi how to add spread on my current EA.

any help

thank you. 

Meaningless question, sorry.
 
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.   

 
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));
 
Alain Verleyen:

thank you