difference between close price on tick and buy price
- happylulux: Every time I want to make buy order with the last close price in the function "ontick", I see the price bought in my order several pip higher than what I want, and I don't understand why.You can't buy at the close price (Bid) you buy at the Ask.
-
Your posted code does not contain any open order code.
Hi, I'm trying to make an automated trading bot.
Every time I want to make buy order with the last close price in the function "ontick", I see the price bought in my order several pip higher than what I want, and I don't understand why. Somebody can help me?
I'm in a demo account with swissquote as broker.
Here is an example:
here is the code:
Hi, I'm trying to make an automated trading bot.
Every time I want to make buy order with the last close price in the function "ontick", I see the price bought in my order several pip higher than what I want, and I don't understand why. Somebody can help me?
I'm in a demo account with swissquote as broker.
Here is an example:
here is the code: