If slaughterhouses had glass walls, everyone would be a vegetarian!
Basic Alt Key/Entry Script - Simplest Script Ever 1 reply
Right Wrong Right Wrong Right Wrong 13 replies
i like to add an indicator script into my own script. what would be the best idea? 3 replies
Is there anything wrong with this script? 0 replies
What's wrong with this IBFX script code? 6 replies
DislikedHighlight OrderSend and hit F1.
1) note the function returns an integer -
that is an important number - use it
2) tp and sl are in price, not pips
3) use GetLastErrorIgnored
Dislikedinsert this after your print statement:
Print("err msg: " + ErrorDescription(GetLastError()));
ps: also, if you are on a 5-digit broker your points will not work.Ignored
Dislikedticket=OrderSend(MarketInfo("GBPUSD",MODE_ASK),OP_BUY,0.1,Ask,3,Ask-20*Point,Ask+22*Point);
ticket=OrderSend("GBPUSD",MarketInfo("GBPUSD",MODE_ASK),OP_BUY,0.1,Ask,3,Ask-20*Point,Ask+22*Point);Ignored