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.

How to get strategy name?
 Post subject: How to get strategy name? Post rating: 0   New post Posted: Mon 11 Feb, 2013, 20:47 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Is it possible to get the strategy name with a strategy?
I want to create some logfiles from the strategy, an the name of the logfile should contain the strategy name.


 
The Best Answer  Post subject: Re: How to get strategy name? Post rating: 0   New post Posted: Tue 12 Feb, 2013, 08:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
tcsabina wrote:
Is it possible to get the strategy name with a strategy?
Try
this.getClass().getSimpleName()


 
 Post subject: Re: How to get strategy name? Post rating: 0   New post Posted: Wed 20 Feb, 2013, 13:18 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Thanks!


 

Jump to:  

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