AJAX view to handle just the vote response

GET /stories/api/51/vote/edit/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "title": "How to Manage Risk in a Forex Trade",
    "status": 2,
    "publication_date": "2017-11-27T23:46:40",
    "lead": "How do we manage a Forex trade so that the risk is fixed and we know the risk-reward of the trade in advance?",
    "excerpt": "How to manage a Forex trade so that the risk is fixed and you know the risk-reward of the trade in advance. Trading AUDJPY in a Heikin Ashi Forex System.",
    "poster": 773,
    "content": "---\r\n\r\nForex trading is only a little different to trading any other type of security. In this story I show you the main differences so you can apply a systems method to trading currencies. To illustrate, in the next story I will apply the method described below to <small><strong>AUD.JPY</strong></small>, the cross between the Australian Dollar and the Japanese Yen.\r\n\r\nForex trading is conducted in the relatively unregulated interbank market where individual banks conduct foreign currency business over the phone or via networked quote entry systems. These quotes are accumulated by several vendors and distributed back to the banks as well as via trading systems to worldwide forex traders. A very common platform for individual traders is Metatrader which is widely available for free once you've opened a trading or a demo account.\r\n\r\nIn an earlier story on [how to set up a trade in the futures market](/stories/41/2017/10/24/the-basic-setup-part-4-risky-contracts/), I showed the [different sizes for various futures contracts](/stories/41/2017/10/24/the-basic-setup-part-4-risky-contracts/#common-contract-sizes). To recap, forex contracts are typically 100,000 units of the base currency and the price for each unit of the base is displayed in units of the quote currency. Currencies are displayed here in the format:\r\n\r\n    BaseFX.QuoteFX\t\t\t\t\r\n    where:\r\n       BaseFX is the currency which is being bought or sold.\r\n       QuoteFX is the currency the contract is priced or quoted in.\r\n       The Quote currency is also called the Counter currency.\r\n\r\nFor example, we write <small><strong>AUD.JPY</strong></small> for the purchase of contracts of AUD valued in JPY or Japanese Yen. Other common ways you will see <small><strong>BaseFX.QuoteFX</strong></small> pairs displayed are <small><strong>AUDJPY</strong></small> and <small><strong>AUD/JPY</strong></small>.\r\n\r\nOften the joining dot or period is replaced with a division symbol or omitted altogether. In the text below I use a period to help make the relation clearer.\r\n\r\n<a id=\"common-contract-sizes\"></a>\r\n\r\nBASE.QUOTE   |   Contract Size   |   Priced In\r\n-------------|:-----------------:|---------------------\r\n   <small><strong>AUD.JPY</strong></small>   |   100K Australian Dollars   |   Japanese Yen\r\n   <small><strong>AUD.USD</strong></small>   |   100K Australian Dollars   |   US Dollars\r\n   <small><strong>USD.CAD</strong></small>   |   100K US Dollars |   Canadian Dollars\r\n   <small><strong>USD.JPY</strong></small>   |   100K US Dollars |   Japanese Yen\r\n   <small><strong>EUR.USD</strong></small>   |   100K Euros      |   US Dollars\r\n\r\nAlthough the *normal* contract size is 100,000 units (100K), many brokers allow fractional quantities served up in mini sized contracts of 10K or even 1K units.\r\n\r\n<a id=\"<a id=\"how-do-base-and-quote-currencies-work\"></a>\r\n#### How do Base and Quote Currencies Work\r\n\r\nWhat makes Forex a little confusing is that there are at least two currencies involved, and often a third - your **account currency**. Let's walk through them one at a time.\r\n\r\nThe **base currency** sounds like a price but it is actually a commodity you can buy or sell, like an apple. And just like an apple, this commodity has a price quoted, but in another currency called, naturally enough, the **quote currency**. Just as an apple costs, say $0.50c, a unit of AUD costs a given amount determined by the current market. For the <small><strong>AUD.JPY</strong></small> contract, at the time of writing, one AUD costs 84.50 Japanese Yen. It is priced in Yen because Yen is the *quote* currency that follows after the period.\r\n\r\nIf you have a trading account, it will be set up in at least one currency called the account currency. When you make a trade, your profits and losses usually accumulate in the quote currency and are converted via a separate transaction to your account currency.\r\n\r\nThat's different to the case where you set out to buy or sell a foreign currency for its own sake, either to purchase from or sell an item to a foreign entity. In this latter case you would take delivery of the foreign currency, the AUD. Your trading account may or may not allow delivery. In the same way, trading futures usually resolves as a cash transfer, not the delivery of wheat or pork bellies.\r\n\r\nSince your trading account is probably a margin account, to open a long position in <small><strong>AUD.JPY</strong></small>, you will be borrowing the Yen to sell in order to buy the AUD. You will pay interest on the Yen and receive interest on the AUD until you close the long position.\r\n\r\nThe <small><strong>AUD.USD</strong></small> contract, on the other hand, quotes the price of one unit of AUD in US Dollars. The current price of one AUD is US$0.7602. Notice the extra decimal places after the usual cents ($0.76**02**)? Each currency has a standard number of decimal places for every market price quote. These are called pips, from *Point In Percentage*. For the AUD four decimal places are displayed in every price quote. If the AUD increases from US$0.7600 to 0.7602 we say that it increased by two pips. That is, the AUD has become slightly more expensive to a US buyer, just as an increase in the price of an apple makes it more costly.\r\n\r\nQuote currencies that do not trade in the street with decimals, such as the Yen and formerly the Italian Lira, will probably only have two decimals places reserved to display pips. For example, the <small><strong>AUD.JPY</strong></small> is quoted as 84.50.\r\n\r\nDepending on your quote platform, you will probably see an extra 5th (and 3rd for Yen) decimal place quoted along with the above four because many vendors provide half pips and smaller. These are sometimes called *pipettes*, or more commonly just \"half a pip\", and written as 0.7602**5**.\r\n\r\nWe will need to go through these numbers in depth so that we can place a trade, but first let's look at the obvious question here:\r\n\r\n<a id=\"which-currency-is-the-quote\">\r\n##### **What Determines Which Currency is the Base and Which is the Quote?**\r\n\r\nWhy is the AUD contract expressed as <small><strong>AUD.USD</strong></small> but the Japanese and Canadian contracts written in terms of the non USA currency, <small><strong>USD.CAD</strong></small> and <small><strong>USD.JPY</strong></small>? Why is the Euro written as <small><strong>EUR.USD</strong></small> and not <small><strong>USD.EUR</strong></small>? Well the short answer is that you can write them any way you like providing there is a market and your broker supports those reverse contracts. However, most if not all quote vendors express the contracts in the same ratios I use here.\r\n\r\nBASE.QUOTE   |  Quoted in\r\n-------------|-------------\r\n   <small><strong>AUD.JPY</strong></small>   | Yen\r\n   <small><strong>AUD.USD</strong></small>   | US$\r\n   <small><strong>USD.CAD</strong></small>   | Canadian $\r\n   <small><strong>USD.JPY</strong></small>   | Yen\r\n   <small><strong>EUR.USD</strong></small>   | US$\r\n   <small><strong>EUR.CHF</strong></small>   | Swiss Francs\r\n   <small><strong>USD.CHF</strong></small>   | Swiss Francs\r\n   <small><strong>USD.MXN</strong></small>   | Mexican pesos\r\n   <small><strong>USD.CNH</strong></small>   | Chinese Renminbi or Yuan (offshore)\r\n\r\nThe long answer is murkier and almost lost in the history of forex markets. Given my four decades or more working with Forex, I describe my own beliefs on the origin of the currency ratios [here](/stories/56/2017/11/29/what-determines-which-currency-is-the-base-and-which-is-the-quote/), but I am by no means 100% certain. TL;DR I suggest it's because of the ratio of one currency to the other. If a currency back in the 1970s traded consistently under one US$, especially the Italian Lira or the Yen, it was designated the quote currency and vice versa. Today we just keep using the established contract tickers for historical reasons.\r\n\r\n\r\n<a id=\"significance-of-the-quote-currency\">\r\n#### **The Significance of the Quote Currency**\r\n\r\nThe quote currency is the currency of the trade. It is the amount paid or received for buying or selling one unit of the base currency. If you are based in the USA and the quote currency is also the USD, such as <small><strong>AUD.USD</strong></small>, then you can value the contract in the same way as any US futures or equity position. You will receive USD if a long postion rises in value or pay out USD from your account if the position falls.\r\n\r\nYou are simply buying or selling units of AUD like any other commodity. In the special case of USD as the quote currency for US accounts, currencies do not really enter into the calculations!\r\n\r\nYour local currency is your account currency, the currency in which you add up your profits and losses. It might or might not be the quote currency.\r\n\r\nNone of this matters if you are simply looking for signals on the chart because then you are only concerned with the open, stop and target prices and the RR multiplier between risk (OP - SL) and reward (TP - OP). However as soon as you want to open a position, you will need to know the number of contracts. That's when the calculations below come in handy.\r\n\r\nIf the quote currency is not your account currency then the trade will lead to a certain amount of foreign currency flowing into or leaving your account each day as the position is marked to market. Your broker may automatically convert those winnings or losses into your account currency for a fee, but the mechanism remains the same.\r\n\r\nWhen you calculate the trade setup, you must take into account the conversion of the amount at risk to your account currency so that you can compute the number of contracts to open. You will remember from the first series on [The Basic Setup](/stories/41/2017/10/24/the-basic-setup-part-4-risky-contracts/) that the value of the risk per contract is divided into funds at risk in order to calculate the position size:\r\n\r\n    Number of contracts = ($Funds at risk) / ($risk per contract)\r\n\r\nThe funds at risk are normally 1% to 2% of your risk capital.\r\n\r\nSince the funds at risk are in your account currency, you must convert the amount at risk in the trade into that same currency. This step was not required when you were [buying futures](/stories/41/2017/10/24/the-basic-setup-part-4-risky-contracts/#Dollar-risk-of-one-contract) because there I only discussed futures priced in your local currency. Here we have to convert the risk value back to your local currency. None of this arithmetic is hard but because of the multiple currencies it is no doubt tricky to get your head around. To help, I will do a couple of examples below.\r\n\r\nKeep in mind what I wrote above about how the currencies are quoted - we need to know which currency is used to value the contract whenever we discuss a forex pair. It is always the quote currency on the right hand side.\r\n\r\nI will take the example of <small><strong>AUD.JPY</strong></small> and consider our account currency to be the USD. This works just as well for anyone whose account currency is not JPY. Just replace the conversion from Yen to US$ with your Yen/local rate. I will show you how to do that below. For JPY account holders, this position is just like any other domestic Japanese security priced in Yen except it has a contract size of 100K. Yen account holders should refer below to the <small><strong>AUD.USD</strong></small> example 2.\r\n\r\nAUD account holders could take a short cut and use the inverse of the market price of <small><strong>AUD.JPY</strong></small> at OP and SL to calculate the risk in AUD.\r\n\r\n\r\nLet's look at those examples now in our next story [Examples of how to Manage Risk in a Forex Trade](/stories/57/2017/11/27/examples-of-how-to-manage-risk-in-a-forex-trade/).\r\n\r\n\r\n\r\nCopyright (C) PagooLABS 2017. All Rights Reserved.",
    "vote": 0,
    "upvotes_hidden": 1,
    "downvotes_hidden": 0,
    "pin": false,
    "report": false
}