Dukascopy
 
 
Wiki JStore Search Login

请教一个关于时间的问题。。。
 Post subject: 请教一个关于时间的问题。。。 Post rating: 0   New post Posted: Wed 06 Jan, 2016, 14:22 
User avatar

User rating: 0
Joined: Thu 24 Dec, 2015, 07:30
Posts: 8
Location: China, Kunming
Mark Li 您好,想请教一个自动交易里面时间的问题,比如我想在一个仓位开仓之后的10分钟,自动平仓,无论盈亏。
万分感谢!!! :P


 
 Post subject: Re: 请教一个关于时间的问题。。。 Post rating: 0   New post Posted: Wed 20 Jan, 2016, 16:07 
Visual JForex expert at Dukascopy
User avatar

User rating: 1
Joined: Thu 29 Aug, 2013, 13:07
Posts: 88
Location: Ukraine, Kiev
您好,

开仓后10分钟关仓需要使用LastTradeEvent.Trade Message Type和Position Fill比较,如果相等下一步是计算关仓时间CloseTime,LastTradeEvent.Trade Message Position.Fill Time加上600,000(代表10分钟:用后秒计算),然后用OnTick来分析tick时间,如果tick时间达到CloseTime就关仓。
Image

DDKSBYY wrote:
Mark Li 您好,想请教一个自动交易里面时间的问题,比如我想在一个仓位开仓之后的10分钟,自动平仓,无论盈亏。
万分感谢!!! :P


Attachments:
screenshot.JPG [83.92 KiB]
Downloaded 407 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com