ingvar_e:
A bit confused.
I want to scale out from a position
So I place a Buy order for 0.4 lots with SL set but no TP. No problem there
Then I want to take half off after 300 pips.
trade.OrderOpen("EURUSD",ORDER_TYPE_SELL_LIMIT,0.2,limit_price,price,sl,tp,ORDER_TIME_GTC,0,NULL)
Assume I got filled at 1.33000. and want to get out with half 1.33300
sl and tp is not of interest so I put them as zero. So I have two price parameters "price" and "limit_price"
Made a few tries but I always get back "invalid price".
And sometimes I read that the limit out price should be a distance and other it is the actual limit out price.
Please enlighten me.
- It's 30 pips or 300 points, not 300 pips.
- Why not use SellLimit() method ?
- You don't have to specify 2 prices for a sell limit, only 1. limit_price is only for use with stoplimit orders.
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
A bit confused.
I want to scale out from a position
So I place a Buy order for 0.4 lots with SL set but no TP. No problem there
Then I want to take half off after 300 pips.
trade.OrderOpen("EURUSD",ORDER_TYPE_SELL_LIMIT,0.2,limit_price,price,sl,tp,ORDER_TIME_GTC,0,NULL)
Assume I got filled at 1.33000. and want to get out with half 1.33300
sl and tp is not of interest so I put them as zero. So I have two price parameters "price" and "limit_price"
Made a few tries but I always get back "invalid price".
And sometimes I read that the limit out price should be a distance and other it is the actual limit out price.
Please enlighten me.