Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here. What's the error code. <<<< I Get Error #0
Slippage is 3, but 3 what? You are not adjusting SL, TP, and slippage; for 4/5 digit brokers and for JPY pairs. See item 3<<< is the slippage not Bid +-3 pips?
Google says FTSE100 is around 7500. What is your SL? <<<< Is stoploss not Bid +-10 pips
You buy at the Ask and sell at the Bid. Therefor your buy order stops are relative to the Bid, and sell order stops the Ask.What happens to your TP if the spread is more than your 10. <<<< I thought the spread was fixed on market (FTSE100) is it not 1 pip can it be 10 pips!!!
This is why I didn't want to supply the code, I wanted someone who has worked with IG Index or is a guru to write a sample line of code as I have managed to totally confuse myself and that line of code.
scarr: unless your going to actually help me please do not reply.
Error #0 is not an error. Don't look at _LastError unless you have an error.
Yes it "is the slippage, not Bid +- 3 pips." but you didn't answer the question. Slippage is in points. If the spread is 100 point, do you think you will get errors with a slippage of 3? You ignored the links provided.
scarr: unless your going to actually help me please do not reply.