Dukascopy
 
 
Wiki JStore Search Login

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.

Strategy knows it's being backtested ?
 Post subject: Strategy knows it's being backtested ? Post rating: 0   New post Posted: Wed 08 Jan, 2020, 07:37 

User rating: 0
Joined: Mon 04 Nov, 2019, 03:51
Posts: 3
Location: Canada, Vancouver
Hi, is there a way for a strategy to know it's being run in the Historical Tester ? As opposed to run Live or in Demo.
Thanks.


 
The Best Answer  Post subject: Re: Strategy knows it's being backtested ? Post rating: 0   New post Posted: Sun 12 Jan, 2020, 23:13 

User rating: 15
Joined: Thu 20 Apr, 2017, 22:42
Posts: 144
Location: Russian Federation,
IContext.getEngine().getType() == IEngine.Type.TEST


 

Jump to:  

cron
  © 1998-2011 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