|
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.
Commission based orders |
Jaface
|
Post subject: Commission based orders |
Post rating: 0
|
Posted: Sat 02 Nov, 2013, 08:14
|
|
User rating: 0
Joined: Mon 19 Mar, 2012, 17:15 Posts: 10
|
Hi I have a calculation issue. Hopefully someone can help. Here's the issue: If I had a profit target of $10 and a target pips of 5 pips, what would be the amount I have to place to hit my target profit after the commissions are deducted? I would like a formula for reuse over different profit targets and different risked pips.
i.e. What is the amount that I need to place to make $10 after commissions are taken out over 5 pips on an account with less than $5000
Thanks in advance
|
|
|
|
 |
hebasto
|
Post subject: Re: Commission based orders |
Post rating: 1
|
Posted: Sat 02 Nov, 2013, 12:37
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
|
|
|
 |
Jaface
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Sat 02 Nov, 2013, 14:30
|
|
User rating: 0
Joined: Mon 19 Mar, 2012, 17:15 Posts: 10
|
Thanks for you reply but I am not having overnight swaps added to the order. My initial balance is < 5000. Lets say the instrument is EURUSD. My order will be placed for the most a couple of hours during with no orders on for overnight. So here are the numbers:
Initial deposit < 5000 Instrument = EURUSD Target = 10 Risked pips = 5
The question was how much amount do I place on the order so that when the target of 4 pips is made I will have approx 10 profit from the order after the commissions are deducted on that order?
Thanks
|
|
|
|
 |
hebasto
|
Post subject: Re: Commission based orders |
Post rating: 2
|
Posted: Sat 02 Nov, 2013, 17:45
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
Assume that volume commission equals 35 USD per 1 million USD traded. Then amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD) If targetProfitInUSD = 10.00 USD, targetInPips = 5 pips, and EUR/USD = 1.348 then amount = 0.024652 mio EUR = 24652 EUR
|
|
|
|
 |
Jaface
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Thu 07 Nov, 2013, 01:30
|
|
User rating: 0
Joined: Mon 19 Mar, 2012, 17:15 Posts: 10
|
|
|
|
 |
forexegyptian
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Tue 19 Nov, 2013, 02:48
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
hebasto wrote: Assume that volume commission equals 35 USD per 1 million USD traded. Then amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD) If targetProfitInUSD = 10.00 USD, targetInPips = 5 pips, and EUR/USD = 1.348 then amount = 0.024652 mio EUR = 24652 EUR what is rateEURUSD ? can you explain numbers in equation [100 and 2], i know 35 is related to commission, but what about other numbers ?
|
|
|
|
 |
forexegyptian
|
Post subject: i want formula calculate commission ? |
Post rating: 0
|
Posted: Tue 19 Nov, 2013, 03:14
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
First: i want formula that calculate commission in USD before make position ?
Second: i want formula that calculate amount that require to take profit 10.00$ in 10 Pips without commission ?
I want this equations is valid for each currency
Thanks
|
|
|
|
 |
hebasto
|
Post subject: Re: Commission based orders |
Post rating: 1
|
Posted: Tue 19 Nov, 2013, 08:01
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
Quote: what is rateEURUSD ? It is a current price of the EURUSD instrument. Quote: can you explain numbers in equation [100 and 2] 100 is a profit/loss in USD if price moves for a PIP for position size in 1 mio. To close position one must make a reverse trade with the same amount which position is opened, so the turnover is doubled: 2 = BUY + SELL or SELL + BUY.
|
|
|
|
 |
forexegyptian
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Wed 20 Nov, 2013, 06:48
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
hebasto wrote: Quote: what is rateEURUSD ? It is a current price of the EURUSD instrument. Quote: can you explain numbers in equation [100 and 2] 100 is a profit/loss in USD if price moves for a PIP for position size in 1 mio. To close position one must make a reverse trade with the same amount which position is opened, so the turnover is doubled: 2 = BUY + SELL or SELL + BUY. First:it' means that 100 is constant for each instruments(usd quote, usd base, cross, etc) and any amount(millions) ? please explain more(because it doesn't work with me when i trade AUD/JPY instrument) i replace rateEURUSD to rateAUDJPY please write equations is valid for each situations ? Second: past equation calculate amount, i want equation calculate commissions just ? Thanks you very mush
|
|
|
|
 |
hebasto
|
Post subject: Re: i want formula calculate commission ? |
Post rating: 0
|
Posted: Wed 20 Nov, 2013, 08:02
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
forexegyptian wrote: i want formula that calculate commission in USD before make position ? I want this equations is valid for each currency There is no a single formula for EACH instrument because some instruments have direct quotes to USD and other ones have indirect quotes. So, let's assume the volume commission is 35 USD per 1 mio USD traded: a) if one has an instrument XXXYYY and a quote XXXUSD the volume commission for a single trade in USD is commissionInUSD = 35 * amountXxxInMio * XXXUSD;b) if one has a quote USDXXX the commission is commissionInUSD = 35 * amountXxxInMio / USDXXX.
|
|
|
|
 |
hebasto
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Wed 20 Nov, 2013, 08:06
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
forexegyptian wrote: it doesn't work with me when i trade AUD/JPY instrument It must be so because the original idea was: Jaface wrote: Lets say the instrument is EURUSD.
|
|
|
|
 |
forexegyptian
|
Post subject: Re: i want formula calculate commission ? |
Post rating: 0
|
Posted: Sat 23 Nov, 2013, 09:32
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
hebasto wrote: forexegyptian wrote: i want formula that calculate commission in USD before make position ? I want this equations is valid for each currency There is no a single formula for EACH instrument because some instruments have direct quotes to USD and other ones have indirect quotes. So, let's assume the volume commission is 35 USD per 1 mio USD traded: a) if one has an instrument XXXYYY and a quote XXXUSD the volume commission for a single trade in USD is commissionInUSD = 35 * amountXxxInMio * XXXUSD;b) if one has a quote USDXXX the commission is commissionInUSD = 35 * amountXxxInMio / USDXXX.In this equiation [amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD)], how can i calculate amount when i trading AUD/JPY(Cross instrument).please write an example for instruments XXXUSD, USDXXX, XXXYYY(cross) can you provide on example about how calculate commissionInUSD in instruments have direct quotes to USD and other ones have indirect quotes and cross instrument,because i don't understand what amountXxxInMio means,when you provide an example with numbers will be helpful Thanks
|
|
|
|
 |
hebasto
|
Post subject: Re: i want formula calculate commission ? |
Post rating: 0
|
Posted: Mon 25 Nov, 2013, 00:49
|
|
User rating: 96
Joined: Mon 09 Sep, 2013, 07:09 Posts: 287 Location: Ukraine, SHostka
|
forexegyptian wrote: can you provide on example about how calculate commissionInUSD in instruments have direct quotes to USD and other ones have indirect quotes and cross instrument,because i don't understand what amountXxxInMio means,when you provide an example with numbers will be helpful Instrument = AUD/JPY, so XXX = AUD; quote of the base currency vs USD = AUDUSD (use (a) formula); amount XxxInMio = amount of AUD in millions, i.e. amount 1 = AUD 1000000; commissionInUSD = 35 * (amount of AUD in millions) * AUDUSD
|
|
|
|
 |
forexegyptian
|
Post subject: Re: i want formula calculate commission ? |
Post rating: 0
|
Posted: Tue 26 Nov, 2013, 05:53
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
hebasto wrote: forexegyptian wrote: can you provide on example about how calculate commissionInUSD in instruments have direct quotes to USD and other ones have indirect quotes and cross instrument,because i don't understand what amountXxxInMio means,when you provide an example with numbers will be helpful Instrument = AUD/JPY, so XXX = AUD; quote of the base currency vs USD = AUDUSD (use (a) formula); amount XxxInMio = amount of AUD in millions, i.e. amount 1 = AUD 1000000; commissionInUSD = 35 * (amount of AUD in millions) * AUDUSDit's like that : commissionInUSD = 35 * (1000000) * 0.91919commissionInUSD = 32171.65 ?! or what in this equation [amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD)] how will equation become if i replace rateEURUSD with AUDJPY, USDJPY and EURAUD ? please provide example with numbers. Thanks you
|
|
|
|
 |
forexegyptian
|
Post subject: Re: i want formula calculate commission ? |
Post rating: 0
|
Posted: Tue 26 Nov, 2013, 06:05
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
forexegyptian wrote: hebasto wrote: forexegyptian wrote: can you provide on example about how calculate commissionInUSD in instruments have direct quotes to USD and other ones have indirect quotes and cross instrument,because i don't understand what amountXxxInMio means,when you provide an example with numbers will be helpful Instrument = AUD/JPY, so XXX = AUD; quote of the base currency vs USD = AUDUSD (use (a) formula); amount XxxInMio = amount of AUD in millions, i.e. amount 1 = AUD 1000000; commissionInUSD = 35 * (amount of AUD in millions) * AUDUSDit's like that : commissionInUSD = 35 * (1000000) * 0.91919commissionInUSD = 32171.65 ?! or what In this equation [amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD)] how will equation become if i replace rateEURUSD with AUDJPY, USDJPY and CHFJPY ? [amount[AUDJPY] = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateAUDUSD)] ?! [amount[USDJPY ] = targetProfitInUSD / (100 * targetInPips - 2 * 35 / rateUSDJPY)] ?! [amount[CHFJPY ] = targetProfitInUSD / (100 * targetInPips - 2 * 35 / rateUSDCHF)] ?! Thanks you
|
|
|
|
 |
forexegyptian
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Tue 26 Nov, 2013, 06:12
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
on other hand dukascopy applies the lowest of commission of Net Deposit, Equity and Traded Volume
how can i calculate commission of Net Deposit and Equity ?
|
|
|
|
 |
API Support
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Tue 26 Nov, 2013, 10:22
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
For amount conversions consider using the conversion utils which are included in the JForex-API, see: https://www.dukascopy.com/wiki/#JForex_utilsforexegyptian wrote: on other hand dukascopy applies the lowest of commission of Net Deposit, Equity and Traded Volume
how can i calculate commission of Net Deposit and Equity ? The algorithm does not depend on the source of the commission rate.
|
|
|
|
 |
forexegyptian
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Thu 05 Dec, 2013, 11:46
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
API Support wrote: For amount conversions consider using the conversion utils which are included in the JForex-API, see: https://www.dukascopy.com/wiki/#JForex_utilsforexegyptian wrote: on other hand dukascopy applies the lowest of commission of Net Deposit, Equity and Traded Volume
how can i calculate commission of Net Deposit and Equity ? The algorithm does not depend on the source of the commission rate. First: i read about Trading commissions that dukascopy applies the lowest commissions of (Net Deposit or Equity or Traded Volume ) i want before open position calculate commission, i know now how calculate commission based on trade volume but what about other commissions of Net Deposit or Equity that may be applied ? i want to calculate them to determine the lowest commission will apply in my account and open position with amount including this commission you understand me ? Second: thanks to hebasto, he write this equation to calculate amount including commission but ask you if is it right to write price of instument in this equation (rateEURUSD) or just remove it,if you have another equation or suggest in this equation tell me amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD) Thanks
|
|
|
|
 |
API Support
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Thu 05 Dec, 2013, 13:50
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
forexegyptian wrote: First: i read about Trading commissions that dukascopy applies the lowest commissions of (Net Deposit or Equity or Traded Volume ) i want before open position calculate commission, i know now how calculate commission based on trade volume but what about other commissions of Net Deposit or Equity that may be applied ? i want to calculate them to determine the lowest commission will apply in my account and open position with amount including this commission you understand me ? You can't detect this from a strategy, since there is no deposit/withdrawl data available from the JForex-API.
|
|
|
|
 |
forexegyptian
|
Post subject: Re: Commission based orders |
Post rating: 0
|
Posted: Fri 06 Dec, 2013, 13:33
|
|
User rating: 9
Joined: Sun 18 Dec, 2011, 03:31 Posts: 160 Location: Egypt, Cairo
|
API Support wrote: forexegyptian wrote: First: i read about Trading commissions that dukascopy applies the lowest commissions of (Net Deposit or Equity or Traded Volume ) i want before open position calculate commission, i know now how calculate commission based on trade volume but what about other commissions of Net Deposit or Equity that may be applied ? i want to calculate them to determine the lowest commission will apply in my account and open position with amount including this commission you understand me ? You can't detect this from a strategy, since there is no deposit/withdrawl data available from the JForex-API. so how can i calculate commissions of Net Deposit and Equity, have you solution for this issue please? how can i calculate commissions of Net Deposit and Equity outside Strategy, can you provide equation to calculate them with example ? in the last post of me, i asked you about this equation amount = targetProfitInUSD / (100 * targetInPips - 2 * 35 * rateEURUSD) that calculate amount including commission but if is it right to write price of instument in this equation ( rateEURUSD) or just remove it,if you have another equation or suggest in this equation tell me amount = targetProfitInUSD / (100 * targetInPips - 2 * 35) Thanks you
|
|
|
|
 |
|
Pages: [
1, 2
»
]
|
|
|
|
|