wizard module from code base works only on long positions

 

Dear all,

I have downloaded a trailing module (here attached) from code base. after I have tested and used it I have notice that  only works on long positions and do not work on  shorts ones.

can anyone help me fix the bug in?

Thanks

Files:
 
Rosiman:

Dear all,

I have downloaded a trailing module (here attached) from code base. after I have tested and used it I have notice that  only works on long positions and do not work on  shorts ones.

can anyone help me fix the bug in?

Thanks

Can you provide the EA code created with this module ?
 
angevoyageur :
Can you provide the EA code created with this module ?

Hi Alain,

Thanks for availability. Attached EA .

Files:
 
Rosiman:

Hi Alain,

Thanks for availability. Attached EA .

Here is the trailing module with the correction.
Files:
 
angevoyageur:
Here is the trailing module with the correction.
Alain,thank you so much.