Trade arrows when EA executes a trade. Color parameter not available in MQL5?

 

Hey all!

I've been trying to find some information about this but haven't had any luck. The OrderSend() function in MQL4 allows us to pass an argument to set the color of an arrow when a trade is executed. I find that very useful to diagnose bugs on live tests. I'm translating some code to MQL5 but can't seem to find a way to achieve the same result, since by even using CTrade, there's no such parameter when using PositionOpen().

Any help is appreciated :).

-Fernando

 
Hello! Same doubt here :D
 
Fernando Jose Velasco Borea:

Hey all!

I've been trying to find some information about this but haven't had any luck. The OrderSend() function in MQL4 allows us to pass an argument to set the color of an arrow when a trade is executed. I find that very useful to diagnose bugs on live tests. I'm translating some code to MQL5 but can't seem to find a way to achieve the same result, since by even using CTrade, there's no such parameter when using PositionOpen().

Any help is appreciated :).

-Fernando

This is not available with MT5/mql5. It's done automatically by the platform.

What you can do is to hide or delete the ones from the platform and code your own arrows, lines and colors.