Dukascopy
 
 
Wiki JStore Search Login

Recording P/L in pips correctly when running multiple concurrent strategies
 Post subject: Recording P/L in pips correctly when running multiple concurrent strategies Post rating: 0   New post Posted: Sun 14 Feb, 2016, 03:19 
User avatar

User rating: 2
Joined: Fri 02 Mar, 2012, 22:08
Posts: 200
Location: New Zealand, Dunedin
Hi

Currently I am running six strategies at the same time - each trading a different currency pair

I am trying to record P/L (in pips) for each trade that each different strategy does.

My Question:-

If I am using onMessage to record P/L for closed trades, how do I ensure that each strategy only updates its own currency pair P/L figures ?

Bob M


 
 Post subject: Re: Recording P/L in pips correctly when running multiple concurrent strategies Post rating: 0   New post Posted: Wed 19 Oct, 2016, 13:44 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
Hi,you could assign each strategy(currency pair) with a label as ID


 
 Post subject: Re: Recording P/L in pips correctly when running multiple concurrent strategies Post rating: 0   New post Posted: Fri 21 Oct, 2016, 17:41 
User avatar

User rating: 6
Joined: Wed 05 Mar, 2014, 12:00
Posts: 116
Location: Ukraine, Odessa
You tried this
if(instrument = this.instrument);
?


 

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