Ea code for mt4

Does anyone here know how to add slippage to buystop and sellstop ea?what is the code for it…all i know is “extern int slippage=3;” what about the code at the ordersend line? Please help, thanks

The only places I’ve come across the use of slippage are as parameters in the OrderClose() and OrderSend() functions. Not to say there aren’t more places, but I haven’t ventured far enough to find out.

OrderClose( int ticket, double lots, double price, [B]int slippage[/B], color Color=CLR_NONE)

OrderSend( string symbol, int cmd, double volume, double price,[B] int slippage[/B], double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)

Remember, you will have to convert your slippage integer to MODE_POINTS.

Ive tried that…but failedto compile…do you email? Let me send you the code