Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Recording P/L in pips correctly when running multiple concurrent strategies http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=77&t=53662 |
Page 1 of 1 |
Author: | us_copiosus [ Sun 14 Feb, 2016, 03:19 ] |
Post subject: | Recording P/L in pips correctly when running multiple concurrent strategies |
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 |
Author: | Moggy [ Wed 19 Oct, 2016, 13:44 ] |
Post subject: | Re: Recording P/L in pips correctly when running multiple concurrent strategies |
Hi,you could assign each strategy(currency pair) with a label as ID |
Author: | Illya [ Fri 21 Oct, 2016, 17:41 ] |
Post subject: | Re: Recording P/L in pips correctly when running multiple concurrent strategies |
You tried this if(instrument = this.instrument);? |
Page 1 of 1 |