Use a specific price for sending a market order instead of pending order
yas: Do you think my idea has any bugs? or any better idea for my case?
On every new tick Bid/Ask will change. Thus firstXXXprice will also. Your condition will never be true.
You must remember them in a static or global variables once.
Hi everybody
I want to placing an order(sell/buy) in specific exact price
I know these tips:
1. It is possible with pending orders but in my case i want to calculate order lot size in that specific price
2. its impossible to modify lot size of pending orders
3. It is possible order could not placing in that specific exact price
So
I wrote this pieces of the code:
It's okay to placing order with 1 pip teloranse.
Do you think my idea has any bugs? or any better idea for my case?
thanks a lot