int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
Change the 0's after the 3

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need a script w/ a built in SL. Here's the base code for the script I have now. All it needs is a built in SL. Should be pretty simple, but I'm not a coder by any means...
Buy 1 Lot=$10 Auto Script
#include
#include
//+------------------------------------------------------------------+
int start()
{
//----
int ticket=OrderSend(Symbol(),OP_BUY,1.00,Ask,3,0,0,"e xpert comment",255,0,CLR_NONE);
}
//----
OrderPrint();
return(0);
//+------------------------------------------------------------------+
Thanks.
EWB
wadeboxjr@marten-enterprises.com