|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
trades close almost immediately with stoploss and takeprofit |
[wello]
|
Post subject: trades close almost immediately with stoploss and takeprofit |
Post rating: 0
|
Posted: Wed 08 Dec, 2010, 19:45
|
|
User rating: 0
Joined: Wed 08 Dec, 2010, 19:34 Posts: 3
|
Label Amount Direction Open price Close price Profit/Loss Profit/Loss in pips Open date Close date T29112010084500 0.1 BUY 1.32057 1.3205 -7.0 -0.7 2010-11-29 00:48:04 2010-11-29 00:48:04 T29112010223500 0.1 BUY 1.30923 1.30919 -4.0 -0.4 2010-11-29 14:35:00 2010-11-29 14:35:00 T29112010230500 0.1 BUY 1.30692 1.30688 -4.0 -0.4 2010-11-29 15:05:31 2010-11-29 15:05:31 T30112010080500 0.1 BUY 1.31057 1.31049 -8.0 -0.8 2010-11-30 00:05:41 2010-11-30 00:05:41 T30112010171500 0.1 BUY 1.3029 1.30278 -12.0 -1.2 2010-11-30 10:35:19 2010-11-30 10:35:19 T02122010081005 0.1 BUY 1.31149 1.31137 -12.0 -1.2 2010-12-02 00:15:11 2010-12-02 00:15:11 T06122010060000 0.1 SELL 1.33755 1.33785 -30.0 -3.0 2010-12-05 22:00:00 2010-12-05 22:00:00
Time Event type Event text 2010-11-29 00:45:00 Order submitted Order [T29112010084500, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.32043] submitted by the strategy 2010-11-29 00:48:04 Order filled Order [T29112010084500, EUR/USD, BUY, 100000.0 at 1.32057] filled 2010-11-29 00:48:04 Order closed Order [T29112010084500, EUR/USD, BUY, 100000.0 at 1.32057] closed by take profit event, amount 100000.0 at 1.3205 2010-11-29 14:35:00 Order submitted Order [T29112010223500, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.30919] submitted by the strategy 2010-11-29 14:35:00 Order filled Order [T29112010223500, EUR/USD, BUY, 100000.0 at 1.30923] filled 2010-11-29 14:35:00 Order closed Order [T29112010223500, EUR/USD, BUY, 100000.0 at 1.30923] closed by stop loss event, amount 100000.0 at 1.30919 2010-11-29 15:05:00 Order submitted Order [T29112010230500, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.30685] submitted by the strategy 2010-11-29 15:05:31 Order filled Order [T29112010230500, EUR/USD, BUY, 100000.0 at 1.30692] filled 2010-11-29 15:05:31 Order closed Order [T29112010230500, EUR/USD, BUY, 100000.0 at 1.30692] closed by take profit event, amount 100000.0 at 1.30688 2010-11-29 21:00:00 Commissions Commissions [14.17] 2010-11-30 00:05:00 Order submitted Order [T30112010080500, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.31049] submitted by the strategy 2010-11-30 00:05:41 Order filled Order [T30112010080500, EUR/USD, BUY, 100000.0 at 1.31057] filled 2010-11-30 00:05:41 Order closed Order [T30112010080500, EUR/USD, BUY, 100000.0 at 1.31057] closed by stop loss event, amount 100000.0 at 1.31049 2010-11-30 09:05:03 Order canceled Order [T30112010170503, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.304175] canceled because of failed validation 2010-11-30 09:05:03 Order submitted Order [T30112010170503, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.304175] submitted by the strategy 2010-11-30 09:15:00 Order submitted Order [T30112010171500, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.30278] submitted by the strategy 2010-11-30 10:35:19 Order filled Order [T30112010171500, EUR/USD, BUY, 100000.0 at 1.3029] filled 2010-11-30 10:35:19 Order closed Order [T30112010171500, EUR/USD, BUY, 100000.0 at 1.3029] closed by stop loss event, amount 100000.0 at 1.30278 2010-11-30 13:40:00 Order canceled Order [T30112010214000, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.297965] canceled because of failed validation 2010-11-30 13:40:00 Order submitted Order [T30112010214000, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.297965] submitted by the strategy 2010-11-30 21:00:00 Commissions Commissions [13.07] 2010-12-01 21:00:00 Commissions Commissions [0.0] 2010-12-02 00:10:05 Order submitted Order [T02122010081005, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.31136] submitted by the strategy 2010-12-02 00:15:11 Order filled Order [T02122010081005, EUR/USD, BUY, 100000.0 at 1.31149] filled 2010-12-02 00:15:11 Order closed Order [T02122010081005, EUR/USD, BUY, 100000.0 at 1.31149] closed by take profit event, amount 100000.0 at 1.31137 2010-12-02 14:00:00 Order canceled Order [T02122010220000, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.308075] canceled because of failed validation 2010-12-02 14:00:00 Order submitted Order [T02122010220000, EUR/USD, BUYSTOP_BYBID, 100000.0 at 1.308075] submitted by the strategy 2010-12-02 21:00:00 Commissions Commissions [6.56] 2010-12-03 21:00:00 Commissions Commissions [0.0] 2010-12-05 22:00:00 Order submitted Order [T06122010060000, EUR/USD, SELLSTOP_BYASK, 100000.0 at 1.34088] submitted by the strategy 2010-12-05 22:00:00 Order filled Order [T06122010060000, EUR/USD, SELL, 100000.0 at 1.33755] filled 2010-12-05 22:00:00 Order closed Order [T06122010060000, EUR/USD, SELL, 100000.0 at 1.33755] closed by take profit event, amount 100000.0 at 1.33785
Period is Period.FIVE_MINS. It seems that the stoploss or takeprofit was met within a second, how to give it more time to let it grow?
|
|
|
|
 |
Contest Support
|
Post subject: Re: trades close almost immediately with stoploss and takepr |
Post rating: 0
|
Posted: Wed 08 Dec, 2010, 20:47
|
|
User rating: 8
Joined: Wed 21 Apr, 2010, 10:42 Posts: 1167
|
You can extend the visual graphical view by narrowing your time frame to a lower level.
|
|
|
|
 |
Cashbone
|
Post subject: Re: trades close almost immediately with stoploss and takepr |
Post rating: 0
|
Posted: Wed 08 Dec, 2010, 22:41
|
|
User rating: 3
Joined: Tue 17 May, 2011, 16:51 Posts: 38 Location: Sweden, Jonkoping
|
You should post the code you use for SL/TP and I'm pretty sure someone can figure out what's wrong.
|
|
|
|
 |
[wello]
|
Post subject: Re: trades close almost immediately with stoploss and takepr |
Post rating: 0
|
Posted: Thu 09 Dec, 2010, 02:21
|
|
User rating: 0
Joined: Wed 08 Dec, 2010, 19:34 Posts: 3
|
for short, basically stoploss at entryprice+3pips and takeprofit at entryprice-3pips engine.submitOrder(orderlabelsell, instrument, IEngine.OrderCommand.SELLSTOP_BYASK, 0.1,entryPriceask,0.0,entryPriceask+(3/10000),entryPriceask-(3/10000)); for long, basically stoploss at entryprice-3pips and takeprofit at entryprice+3pips engine.submitOrder(orderlabelbuy, instrument, IEngine.OrderCommand.BUYSTOP_BYBID, 0.1,entryPricebid,0.0,entryPricebid-(3/10000),entryPricebid+(3/10000));
|
|
|
|
 |
[wello]
|
Post subject: Re: trades close almost immediately with stoploss and takepr |
Post rating: 0
|
Posted: Thu 09 Dec, 2010, 02:29
|
|
User rating: 0
Joined: Wed 08 Dec, 2010, 19:34 Posts: 3
|
Contest Support wrote: You can extend the visual graphical view by narrowing your time frame to a lower level. Support, mind elaborating?
|
|
|
|
 |
buyandhold
|
Post subject: Re: trades close almost immediately with stoploss and takepr |
Post rating: 0
|
Posted: Thu 09 Dec, 2010, 05:10
|
|
User rating: 0
Joined: Wed 18 May, 2011, 23:26 Posts: 40 Location: Switzerland,
|
3/10000 is 0.3 pips (for most pairs). Check out instrument.getPipValue()
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|