AJAX view to handle just the vote response

GET /stories/api/57/vote/edit/
Content-Type: application/json
Vary: Accept

    "title": "Examples of how to Manage Risk in a Forex Trade Using AUD.JPY and AUD.USD",
    "status": 2,
    "publication_date": "2017-11-27T23:56:40",
    "lead": "How to manage a forex trade so that the risk and the risk-reward of the trade is set in advance, using the examples of AUD.JPY and AUD.USD.",
    "excerpt": "Managing a Forex trade using the examples of AUD.JPY and AUD.USD that set the risk and the risk-reward of the trade in advance.",
    "poster": 773,
    "content": "---\r\nOur [previous story](/stories/51/2017/11/27/trading-audjpy-in-a-heikin-ashi-forex-system/) on risk in forex markets went over the definitions of the <small><strong>base.quote</strong></small> currency ticker format and how the quote defines the currency the contract is valued in. In this story I will go through a couple of specific examples to show how to correctly value any forex contract and have it priced in the same currency you use for your accounts.\r\n\r\nTo begin, imagine you are a United States Dollar (USD) account holder and you want to value a contract to sell <small><strong>AUD.JPY</strong></small>. I am extending the work we went through in an earlier story on the [dollar risk of one futures contract](/stories/41/2017/10/24/the-basic-setup-part-4-risky-contracts/#Dollar-risk-of-one-contract) by adding the currency conversion rate and converting the quoted currency back to the account currency.\r\n\r\nWe will use the trade data indicated in the following H4 chart of the AUDJPY:\r\n![AUDJPY H4](/media/uploads/2017/Forex_Setups/2017-11-27_AUDJPY_H4_HA_zoom1.jpg \"AUDJPY 4H\"):C90\r\n\r\nHere is the trade from the highlighted setup, with the actual open price and stop loss:\r\n\r\n<a id=\"basic-setup-for-audjpy\">\r\n#### **Example 1. The Basic Setup for AUD.JPY**\r\n\r\n    Risk per AUD.JPY Contract for a Sample Trade\r\n        OP = 87.605                    Open Price in Yen\r\n        SL = 88.115                    Stop Loss in Yen\r\n        CS = 100,000                   Contract Size\r\n        CR = |OP - SL| x CS            &#165;Contract Risk (absolute value)\r\n           = |87.605 - 88.115| x 100K\r\n       &#165;CR = &#165;51,000                   Risk in Yen\r\n       $CR = &#165;51,000 x JPY.USD         Risk in USD\r\n\r\nThis last statement says that the risk in dollar terms is equal to the risk in yen multiplied by the cost of each yen. Because there is normally no traded <small><strong>JPY.USD</strong></small>, we have to *synthesize* it from:\r\n\r\n    JPY.USD = 1 / USD.JPY\r\n\r\nThis simply says if the market for <small><strong>USD.JPY</strong></small> is currently trading at 100 then 1000 Yen is worth exactly $10 when valued in US$:\r\n\r\n        $value = &#165;1,000 x (1 / 100)    Where 100 is the USD.JPY rate.\r\n               = $10                   In USD\r\n\r\nThese calculations are good enough here, but programmers will have to adjust the equations further by swapping the bid/ask rates:\r\n\r\n    JPY.USD(bid) = 1 / USD.JPY(ask)\r\n    JPY.USD(ask) = 1 / USD.JPY(bid)\r\n\r\nand applying each one correctly depending on whether the adjustment is for a buy (use the ask) or a sell (use the bid). That's a little too much detail for a non-programming article like this so let's just abstract away from the bid/ask for now to stay focused on the general idea.\r\n\r\nAt the time of the trade above from 2017-11-03 00:00 (written in [24 hour time](/stories/50/2017/11/09/where-does-the-day-begin-in-24-hour-trading/), the <small><strong>USD.JPY</strong></small> mid close price was 113.95. Using this to value the contract in US$, gives us:\r\n\r\n    JPY.USD = 1 / 113.95\r\n            = 0.0088\r\n        $CR = &#165;CR x JPY.USD             Risk in USD\r\n            = &#165;51,000 x 0.0088\r\n            = US$448.80                 Risk per contract in US$\r\n\r\nWhat if your account is based in a currency other than US$? In this example so far we have used the inverse of <small><strong>USD.JPY</strong></small> to convert the Yen profits and losses to US$. If you are in another currency, say <small><strong>XYZ</strong></small>, you have two choices. The simple method is to find a direct currency pair from Yen to your currency, such as <small><strong>EUR.JPY</strong></small>, and replace the <small><strong>JPY.USD</strong></small> in the formula above with 1/<small><strong>EUR.JPY</strong></small>. In general you are looking for either <small><strong>XYZ.JPY</strong></small> or <small><strong>JPY.XYZ</strong></small>. In the case of the latter, there is no need to invert it beforehand.\r\n\r\nThe second method, useful when no direct cross exists between Yen and your account currency XYZ, is to add an extra step above after calculating the US$ contract risk. This step converts the US$ amount into your local currency. Every currency in the world should have a forex pair linking its currency to the USD, either <small><strong>XYZ.USD</strong></small> or <small><strong>USD.XYZ</strong></small>. If it is the former than invert it to arrive at the rate that converts US$ values into your account currency: <small><strong>USD.XYZ</strong></small>.\r\n\r\n       &#165;CR = &#165;51,000                        Risk in Yen\r\n       $CR = &#165;51,000 x JPY.USD              Risk in USD\r\n        CR = $CR x USD.XYZ                  New: Risk in your XYZ currency\r\n\r\nYou now have the value of one contract in the same currency as your account. Just continue on below, but substitute your currency symbol for the $ sign.\r\n\r\nWe now have enough information to calculate the number of contracts to open.\r\n\r\nAn [earlier story](/stories/40/2017/10/24/the-basic-setup-part-3-risky-trades/) showed how to calculate the amount we could invest in a trade without risking more than 2% of our available risk capital. Assuming $100K to invest, we therefore have $2,000 available for this trade. Now finally we can calculate the number of contracts to buy:\r\n\r\n    Number of contracts = ($Funds at risk) / ($risk per contract)\r\n                        = 2000 / 448.80\r\n                        = 4 contracts\r\n       Cost of position = $1795.20    from: 4 contracts x $448.80\r\n\r\n\r\n<a id=\"basic-setup-for-audusd\">\r\n#### **Example 2. The Basic Setup for AUD.USD**\r\n\r\nIn this example, because <small><strong>AUD.USD</strong></small> is priced in US$, US account holders can view the entire setup as a normal US$ futures contract with a contract size of 100K. But non-US traders will need to convert the US$ contract risk back to their own account currency. Here we consider the case of a trader with Yen accounts, but you could just as easily substitute Euros or any other account currency.\r\n\r\n    Risk per AUDUSD Contract for a Sample Trade\r\n        OP = 0.76910                   Open Price in US$\r\n        SL = 0.77310                   Stop Loss in US$\r\n        CS = 100,000                   Contract Size\r\n       $CR = |OP - SL| x CS            $Contract Risk (absolute value)\r\n           = |0.76910 - 0.77310| x 100K\r\n       $CR = US$400                    Risk in USD\r\n       &#165;CR = US$400 x USD.JPY          Risk in Yen\r\n           = US$400 x 113.95\r\n           = &#165;45,580\r\n\r\nThe second last statement says that the risk in yen terms is equal to the risk in US$ multiplied by the cost of each US$ valued in yen. So in this case we have US$400 and each US$ costs &#165;113.95.\r\n\r\nNow assume the Japanese trader has &#165;10,000,000 worth of risk funds in a Yen account to invest, of which only 1% or &#165;100,000 can be invested in any one trade.\r\n\r\n    Calculate the Number of Contracts From Funds Held In Yen:\r\n    Number of contracts = &#165;Funds at risk / &#165;risk per contract\r\n                        = &#165;100,000 / &#165;45,580\r\n                        = 2 contracts\r\n       Cost of position = &#165;91,160    from 2 contracts x &#165;45,580\r\n\r\n\r\n#### **The Account Currency Conversion is Only Needed to Calculate Position Size **\r\n\r\nTo determine whether the trade hits the target or is stopped out, we only need the contract risk which is provided by the SL and open price. The RR multiplier provides a simple way of getting a TP. So we do not need to mess with quote or account currencies. However whenever we need to calculate the number of contracts in order to open a trade, we need to go through the calculations above.\r\n\r\nAnother way of doing this is to calculate the value of one pip per contract in the forex rate you are opening. Then multiply that by the number of pips at risk and calculate the number of contracts to be opened. It's the same formula, just executed in a slightly different order.\r\n\r\nIt is very important to know what you are doing if you want to limit your risk, hence the calculations above. However, you can save yourself a lot of hassle by using one of the many free online calculators. Just search on \"forex calculator\" when you need one. Here are two to get you started:\r\n\r\n**Forex Calculators:**\r\n\r\n- [IC Markets](https://www.icmarkets.com/advanced-trading-tools/forex-calculators/)\r\n- [OANDA](https://www.oanda.com/forex-trading/analysis/profit-calculator/)\r\n\r\n#### **Conclusion**\r\n\r\nI have explained the general format of a currency pair, <small><strong>Base.Quote</strong></small>, and how to assess it as units of the base priced in the quote currency. We walked through how to convert the risk from the quote currency into your local account currency. Finally we were able to calculate the number of contracts to open while at the same time limiting our risk to a small percentage of our risk funds.\r\n\r\nWith this background in forex contracts we are now ready to consider how we might go about building a simple forex system. That will be the subject of our next story. Stay tuned.\r\n\r\n\r\nCopyright (C) PagooLABS 2017. All Rights Reserved.",
    "vote": 0,
    "upvotes_hidden": 2,
    "downvotes_hidden": 0,
    "pin": false,
    "report": false