Wiki
JStore
Search
Login
Dukascopy Support Board
Automated Trading
Knowledge Base
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
.
Pages: [ 1 ]
Print view
Delay in sec after order is closed
raxbat
Post subject:
Delay in sec after order is closed
Post rating:
0
Posted:
Sun 10 Aug, 2014, 22:05
User rating:
0
Joined:
Mon 16 Jun, 2014, 06:30
Posts:
18
Location:
Latvia,
Hello!
I have exception for entering market again after order is closed:
if((System.currentTimeMillis()/1000L-lastOrderTimeClose)<60) return;
It is working correct except running my strategy in history tester.
Please help me convert my code to JForex time, not system time.
Thank you
API Support
Post subject:
Re: Delay in sec after order is closed
Post rating:
0
Posted:
Mon 11 Aug, 2014, 08:15
User rating:
∞
Joined:
Fri 31 Aug, 2007, 09:17
Posts:
6139
use
IHistory.getLastTick(myInstrument).getTime()
.
raxbat
Post subject:
Re: Delay in sec after order is closed
Post rating:
0
Posted:
Mon 11 Aug, 2014, 08:22
User rating:
0
Joined:
Mon 16 Jun, 2014, 06:30
Posts:
18
Location:
Latvia,
Thank you
API Support
Post subject:
Re: Delay in sec after order is closed
Post rating:
0
Posted:
Mon 11 Aug, 2014, 08:33
User rating:
∞
Joined:
Fri 31 Aug, 2007, 09:17
Posts:
6139
You can also use
IOrder.getCloseTime()
.
Pages: [ 1 ]
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Dukascopy Support Board
Automated Trading
Knowledge Base
Jump to:
Select a forum
------------------
Visual JForex
English
Feature Requests
Report a bug
Français
Demandes de nouvelles fonctionnalités
Signaler un problème
Deutsch
Verbesserungsvorschläge
Fehlerberichte
العربية
إقتراحات جديدة
تقارير الأخطاء
Pусский
Заказ нового функционала
Репорты об ошибках
中文
功能要求
报告错误
Forex Community
Community Board
Contests
Trader Contest
Strategy Contest
Dukascopy Products and Services
Fundamental Analysis Contest
Article Contest
Trading Platforms
JForex
FAQs
Feature Requests
Bug Reports
Automated Trading
Knowledge Base
Feature Requests
Implemented Requests
Bug Reports
Fixed Bugs
Fixed Issues
Release Notes
Previos Versions
© 1998-2025 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