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: 1
Joined: Mon 04 Nov, 2019, 03:51
Posts: 8
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: 18
Joined: Thu 20 Apr, 2017, 22:42
Posts: 165
Location: Russian Federation,
IContext.getEngine().getType() == IEngine.Type.TEST


 

Jump to:  

  © 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