How To Code Stoploss Into A Moving average EA

Jixo man

Jul 26, 2020
Good day forex trader's. I modified a Moving average EA which it's take profit and stop loss is coded to take profit when the averages cross. And also stop loss is also hit when the moving averages cross. Please and please I need an idea on how I can code to Stoploss to be 50pips loss. I know I need to use orderclose function but I just can't get it . An example will help please.