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.

Execution Speed
 Post subject: Execution Speed Post rating: 0   New post Posted: Sat 11 Feb, 2017, 17:37 

User rating: 0
Joined: Fri 31 May, 2013, 21:20
Posts: 14
Location: Syrian Arab RepublicSyrian Arab Republic
HI

I want to ask for how much can I insert calculation Lines, I did some Visual Jforex strategies and add some codes manually. The Code now Contain arround ten Thousand line and will reach the hundred soon :shock:
so will that affect the processing speed ?


 
 Post subject: Re: Execution Speed Post rating: 0   New post Posted: Mon 13 Feb, 2017, 09:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is a code sample to measure execution time of code fragment:
        long start = System.currentTimeMillis();
        // do the work
        long end = System.currentTimeMillis();
        console.getOut().println("execution time:"+ (end - start));


In general, operations with history and indicators tend to require more time than the others. Therefore, they could be optimized first.
Also, for performance it is better to do heavy work in onBar() method rather than onTick().


 
 Post subject: Re: Execution Speed Post rating: 0   New post Posted: Mon 13 Feb, 2017, 15:41 

User rating: 0
Joined: Fri 31 May, 2013, 21:20
Posts: 14
Location: Syrian Arab RepublicSyrian Arab Republic
Thanks

I already put it on test .. and here is what I got from the strategy report
so what should I do ?


INFO
13.02.2017 10:46:34 Stopping "Test" strategy at 2017-02-13 10:46:34.299 GMT on the remote server
INFO
13.02.2017 10:46:33 Strategy is going to be stopped - Process already marked as terminated
INFO
13.02.2017 10:38:59 Strategy is going to be stopped - Out of memory


 
 Post subject: Re: Execution Speed Post rating: 0   New post Posted: Mon 20 Feb, 2017, 09:50 

User rating: 0
Joined: Fri 31 May, 2013, 21:20
Posts: 14
Location: Syrian Arab RepublicSyrian Arab Republic
So .. ??


 

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