AJAX view to handle just the vote response

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

{
    "title": "Important Things to Know About Forex and Futures Trading Signals",
    "status": 2,
    "publication_date": "2017-10-24T03:49:44",
    "lead": "This third story in the series \"Introduction to Trading Systems\" explains a signal, the trigger alerting us to open a position in an instrument.",
    "excerpt": "This third story in the series on Trading Systems explains a signal, the trigger alerting us to open a position in an instrument.",
    "poster": 773,
    "content": "---\r\n#### **Trading Systems Part 3 - Signals**\r\n\r\nA signal is a price pattern trigger that opens a position. It might be a crossing moving average, a candlestick pattern such as a pin bar, or one of a host of other available indicators.\r\n\r\nA Signal then is a general *class* of market events that act like triggers. A Setup is a particular *instance* of a signal and includes all the trade data necessary to open that position.\r\n\r\nThe difference between signal and setup is much like the *concept* of dog versus a *real* dog. In your head you can imagine a dog and there is no chance of confusing one with a horse. But in the real world, dogs come in all shapes and sizes from cute little puppies to Great Danes. We still readily recognize a particular animal as a dog when it exhibits familiar dog-like qualities.\r\n\r\nIn the same way, signals are a class of triggers while setups are the real-world instance of those signals and provide the actual OP, SL, TP and CO you need to make a trade. You can use the terms interchangeably if you like which might result in some minor confusion, as long as you don't confuse either with a horse. When we talk about a signal, we imagine a reversal or some other specific trigger pattern. When we talk about a setup, we describe the particular SL and OP that surround that reversal, as can be seen in the annotated chart of the S&P below which uses a Heikin Ashi signal.\r\n\r\n![Signals vs Setup](/media/uploads/2017/basic_system_trading/SPX-D1-HA-rev-EG-signal-vs-setup-20171012.png \"Signals vs Setup\"):c95!\r\n\r\n\r\n** Open Only with the Trend **\r\n\r\nSo far we have discussed trend which I have argued will determine the direction of our trades. Since we only trade with the trend, we should ignore signals that trigger in the opposite direction. In a bull market we only open long. Since a computer program should in principle be able to flag opportunities on a chart, a signal must include all the rules you have decided to check before opening a trade. For example, if you only open pin bars in the direction of the trend then a pin bar at the top of a swing high is not a signal in an uptrend.\r\n\r\nWithin the trend we can use the setup tool to construct an OP, SL, TP and CS for *any* candlestick bar. Although I do not advocate your trying this, it explains why we discussed the setup first. The setup can be used anywhere, although probably not profitably. Since each bar has a low and a close, the low could be used as the SL and the OP would use the close of this bar or the open of the next. The number of contracts derives from risk (OP-SL). All we need to finish the setup is an optimal TP.\r\n\r\n** Support and Resistance **\r\n\r\nIf we applied such a strategy to every bar on the chart we could expect a disaster. There are too many whipsaw regions where stops would be constantly triggered. This naturally leads us to exclude most bars as open candidates for signals and instead concentrate on the small subset of bars where probability favors our trade.\r\n\r\n![Rejection & Support with a Pin Bar](/media/uploads/2017/basic_system_trading/Pin_Bar.png \"Rejection & Support with a Pin Bar\"):R40\r\nThe key to a good signal is that an area has been tested by the market and rejected. That's where we want to place our stops. The market may come back to test that area again and there is no guarantee our stops will hold. But that's also true everywhere on the chart. The one thing we know about an area of rejection is that it was tested at least once and the level held. Enough other traders entered in the direction of the trend before those levels were breached and that is an important defense of our trade in the future, raising the probability, however slightly, that our trade setup will succeed.\r\n\r\nAny pattern that tests and rejects an area of support is a *candidate* for a signal. Whether it's an acceptable candidate or not remains to be seen. Eventually you will decide on a small class of identifiable patterns that you will use as signals, all other patterns will be considered normal bars. Identifying areas of support (or resistance in a bear market) and how your signal exposes them will be your mission.\r\n\r\n** A Retracement Ending **\r\n\r\n![Retrace before Pin Bar](/media/uploads/2017/basic_system_trading/PB-OK-retrace.png \"Retrace before Pin Bar\"):L20\r\nWe might reasonably impose the extra condition that some kind of retracement occurred before the candidate signal. After reviewing all the historic data we might exclude from our signals any patterns that were not preceded by at least two periods of trading against the trend. This is a filter that *you* will decide for your own favorite signal. Trigger patterns that are not *prominent* in some way have not yet tested and rejected an area. The SL level you use must have a higher probability of surviving a retest than any normal bar.\r\n![No retrace before pin bar](/media/uploads/2017/basic_system_trading/PB-No-retrace.png \"No Retrace before Pin Bar\"):R40\r\n\r\n** Avoid Spikes **\r\n\r\nSometimes the stop loss level is so far away from the open price that the corresponding TP will lie somewhere far in the opposite direction. Reaching such a target price might seem improbable to an experienced trader. This might occur if our prospective SL is a large spike caused by some dramatic news that hit the market, in which case it may be better to wait for the next retracement to enter.\r\n\r\nIn the same  way, avoid markets when major unexpected events are under way such as a war starting, the UK Brexit vote, or the USA 2016 election. Clearly there's nothing you can do to avoid these events if you are already in a trade and the unexpected is happening. But you should avoid plunging into a trade to take advantage of the volatility. Your stops will be highly vulnerable and the days following would be a much better trading environment.\r\n\r\n** No Waiting: Open According to your Trading Rules **\r\n\r\nDepending on your signal, you must open at the start of trading of the very next period OR wherever you tested in your simulations. If you wait for a better price you stand to miss out on the trade all together and all your testing results for the signal and system no longer apply. \r\n\r\nFor example, some setups fail and more of the trades that failed may have fallen to a 'better price' at the open than those that were successful, leaving you with positions in a greater proportion of losers. When this is true, your real trading results will underperform your tests results.\r\n\r\n** Only One Position at a Time **\r\n\r\nSince we do not want our total risk in this position to exceed 2%, never open a new trade when one is already open, except in other uncorrelated markets. If your trade is winning, other traders will be on the same ride as you. New signals occurring in the market at that time will be ignored by successful traders because they know not to amplify their risks with more than 2% of their risk capital, or whatever percentage they allocate to an open trade. That means you will be opening a trade where other traders are less likely to join in to help propel the price in your direction.\r\n\r\n![No Multiple Positions](/media/uploads/2017/basic_system_trading/SPX-D1-HA-rev-Single-Positions-20171012-2.png \"No Multiple Positions\"):R50\r\nThis is also true if there had earlier been a clear signal that you missed for some reason. The other traders whom you would like to join you in this trade are already in that earlier one. There are no secrets in the markets - if you can see a signal worth trading then so can many others. What may look like a pin bar to you could look like an engulfing pattern to another trader using a shorter timeframe. If the price moves up then another trader's MAs will cross. Momentum will also change, triggering even more traders to join the trade. So other traders may be following different signals to you but they may still be triggered to open in the same general area as your signal.\r\n\r\nTread carefully once you have open trades and always check the correlations between the markets you choose. If two markets are 100% correlated then you cannot have simultaneous positions in both markets. It would be as if you were trading the same instrument but with double the risk. For this reason, avoid trading in correlated markets until you have exited the other position. If you are unsure about correlation in general or whether two markets are highly correlated then it's best to just trade one market at any one time.\r\n\r\n<a id=\"Rules-and-Filters\"></a>** Rules and Filters **\r\n\r\nA signal then is a set of rules about when to enter a trade. On the one hand there are the mechanical rules that I discuss below, such as a pin bar must occur or an MA must cross. These are mechanical because they involve no discretion and arise straight from a pattern of market prices on the chart. On the other hand there are filtering conditions we might apply before we open a trade. For example:\r\n\r\n- the trade must be in the direction of the trend\r\n- avoid candles with huge spikes\r\n- a retrace should be of a certain percentage of the previous runup\r\n- the retrace should occur at some key level such as a **`fibonacci`** or support/resistance area\r\n- never open a trade if you are already open in this or a correlated market.\r\n\r\nYou might apply filters such as these after testing and observing their effects on the total profit of the system, as I discuss later. However, you the reader have a lot of fertile territory to improve on what we lay out here. Many filtering conditions will depend on the precise trigger you are using.\r\n\r\nA common set of filters are the momentum oscillators such as RSI and MACD. Filters tend to keep you out of trades, which is their purpose. However watch out in your testing to see if they add to or reduce your total wins. Helping you avoid bad trades is good, but keeping you out of good trades that win multiples of what you lose in bad trades is toxic.\r\n\r\n** Signal Coverage **\r\n\r\nFor a signal to be acceptable it must be immediately recognizable as the pattern you are seeking. Testing should already have confirmed that similar signals are profitable and it should have relatively complete coverage of the trend. \r\n\r\nBy *complete coverage* I mean that the signal will allow us to participate in the full run of the trend. If stopped out, we should receive another chance to enter via a subsequent signal. Buying at the bottom and selling at the top would of course be full coverage, if only such a thing were consistently possible. Missing the entire trend altogether would be zero coverage. We should prefer a signal that has better coverage because it's more likely to keep us in open positions during more of the trend.\r\n\r\nMoving average crosses and Heikin Ashi reversals are two examples having almost complete coverage, while pin bars depend on how often they occur in the relevant section of the trend.\r\n\r\n#### Summary\r\n\r\nThere are many different kinds of signals and traders have their own favorites. Since this is an education site, we are agnostic here about which signal you use. In the descriptions below, I will deliberately use the simplest signal I can find. My purpose is to describe *how* to go about building a system, not to advocate for any particular signal.\r\n\r\nIn other stories and posts I may use different signals just to show how widely the system method can be applied. A system does not require any one signal strategy but it does need a trigger in order to open positions. For this reason, you will have to select a signal method you are comfortable with.\r\n\r\nIt may well be that it does not matter in general what signal strategy you decide upon. What may be more important overall is how you apply it. I will discuss this further in the story about Systems.\r\n\r\nIn the [next story](/stories/46/2017/10/24/trading-systems-part-4-examples-of-signals/) I will discuss several common and not so common signal strategies: the MA cross, pin bars, engulfing patterns and the Heikin Ashi reversal. These are all just examples and you are encouraged to use whatever signal method you have been using to date.\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n<br>\r\n\r\nCopyright (C) PagooLABS 2017. All Rights Reserved.\r\n\r\n\r\n*[HA]: Heikin Ashi\r\n*[MA]: Moving Average over a specified period - 100 periods for eg\r\n*[EMA]: Exponential Moving Average - has a long 'memory'\r\n*[OHLC]: Open, High, Low, Close: the 4 key values for any bar on a chart\r\n*[bull]: An uptrending or rising market\r\n*[bear]: A downtrending or falling market\r\n*[SL]: stop loss\r\n*[TP]: target price\r\n*[OP]: open price\r\n*[CR]: Contract Risk\r\n*[CS]: contract size\r\n*[CO]: number of contracts opened\r\n*[MR]: Maximum Risk\r\n*[USD]: United States Dollar\r\n*[AUD]: Australian Dollar\r\n*[Yen]: The Japanese currency\r\n*[Euro]: The European currency\r\n*[EURJPY]: The Euro - Yen cross currency: buying Euros priced in Yen\r\n*[forex]: Foreign Exchange including markets and trading\r\n*[signal]: a price pattern in the market triggering the opening of a position\r\n*[setup]: An instance of a signal ready for trading with values for the number of contracts and the Open, Stop and Target prices\r\n*[instrument]: A particular traded forex or futures contract such as gold or USDJPY\r\n*[instruments]: Particular traded forex or futures contracts such as gold or USDJPY\r\n*[underlined text]: Congratulations! You have successfully hovered over text\r\n*[indicator]: A calculated line, such as a Moving Average drawn on a chart, that is separate from the OHLC prices but often calculated from them\r\n*[indicators]: Calculated lines, such as Moving Averages drawn on a chart, that are separate from the OHLC prices but often calculated from them\r\n*[H4]: Chart of the four hour timeframe\r\n*[M5]: Chart of the five minute timeframe\r\n*[H1]: Chart of the one hour timeframe",
    "vote": 0,
    "upvotes_hidden": 5,
    "downvotes_hidden": 0,
    "pin": false,
    "report": false
}