submitted by FmzQuant to CryptoCurrencyTrading [link] [comments]
SummaryIn the previous article, we explained the premise of realizing the trading strategy from the aspects of the introduction of the M language , the basic grammar, the model execution method, and the model classification. In this article, we will continue the previous part, from the commonly used strategy modules and technologies. Indicators, step by step to help you achieve a viable intraday quantitative trading strategy.
Stage IncreaseStage increase is calculating the percentage of current K line's closing price compare with previous N periods of closing price's difference. For example: Computing the latest 10 K-lines stage increases, can be written:
CLOSE_0:=CLOSE; //get the current K-line's closing price, and save the results to variable CLOSE_0. CLOSE_10:=REF(CLOSE,10); //get the pervious 10 K-lines' closing price, and save the results to variable CLOSE_10 (CLOSE_0-CLOSE_10)/CLOSE_10*100;//calculating the percentage of current K line's closing price compare with previous N periods of closing price's difference.
New high priceThe new high price is calculated by whether the current K line is greater than N cycles' highest price. For example: calculating whether the current K line is greater than the latest 10 K-lines' highest price, can be written:
HHV_10:=HHV(HIGH,10); //Get the highest price of latest 10 K-lines, which includes the current K-line. HIGH>REF(HHV_10,1); //Judge whether the current K-line's highest price is greater than pervious K-lines' HHV_10 value.
Price raise with massive trading volume increaseFor example: If the current K line's closing price is 1.5 times of the closing price of the previous 10 K-lines, which means in 10 days, the price has risen 50%; and the trading volume also increased more than 5 times of the pervious 10 K-lines. can be written:
CLOSE_10:=REF(CLOSE,10); //get the 10th K-line closing price IS_CLOSE:=CLOSE/CLOSE_10>1.5; //Judging whether the current K Line closing price is 1.5 times greater than the value of CLOSE_10 VOL_MA_10:=MA(VOL,10); //get the latest 10 K-lines' average trading volume IS_VOL:=VOL>VOL_MA_10*5; //Judging whether the current K-line's trading volume is 5 times greater than the value of VOL_MA_10 IS_CLOSE AND IS_VOL; //Judging whether the condition of IS_CLOSE and IS_VOL are both true.
Price narrow-shock marketNarrow-shock market means that the price is maintained within a certain range in the recent period. For example: If the highest price in 10 cycles minus the lowest price in 10 cycles, the result divided by the current K-line's closing price is less than 0.05. can be written:
HHV_10:=HHV(CLOSE,10); //Get the highest price in 10 cycles(including current K-line) LLV_10:=LLV(CLOSE,10); //Get the lowest price in 10 cycles(including current K-line) (HHV_10-LLV_10)/CLOSE<0.05; //Judging whether the difference between HHV_10 and LLV_10 divided by current k-line's closing price is less than 0.05.
Moving average indicates bull marketMoving Average indicates long and short direction, K line supported by or resisted by 5，10，20，30，60 moving average line, Moving average indicates bull market or bear market. can be written:
MA_5:=MA(CLOSE,5); //get the moving average of 5 cycle closing price. MA_10:=MA(CLOSE,10);//get the moving average of 10 cycle closing price. MA_20:=MA(CLOSE,20);//get the moving average of 20 cycle closing price. MA_30:=MA(CLOSE,30);//get the moving average of 30 cycle closing price. MA_5>MA_10 AND MA_10>MA_20 AND MA_20>MA_30; //determine wether the MA_5 is greater than MA_10, and MA_10 is greater than MA_20, and MA_20 is greater than MA_30.
Previous high price and its locationsTo obtain the location of the previous high price and its location, you can use FMZ Quant API directly. can be written:
HHV_20:=HHV(HIGH,20); //get the highest price of 20 cycle(including current K line) HHVBARS_20:=HHVBARS(HIGH,20); //get the number of cycles from the highest price in 20 cycles to current K line HHV_60_40:REF(HHV_20,40); //get the highest price between 60 cycles and 40 cycles.
Price gap jumpingThe price gap is the case where the highest and lowest prices of the two K lines are not connected. It consists of two K lines, and the price gap is the reference price of the support and pressure points in the future price movement. When a price gap occurs, it can be assumed that an acceleration along the trend with original direction has begun. can be written:
HHV_1:=REF(H,1); //get the pervious K line's highest price LLV_1:=REF(L,1); //get the pervious K line's lowest price HH:=L>HHV_1; //judging wether the current K line's lowest price is greater than pervious K line's highest price (jump up) LL:=H
Common technical indicatorsMoving average
From a statistical point of view, the moving average is the arithmetic average of the daily price, which is a trending price trajectory. The moving average system is a common technical tool used by most analysts. From a technical point of view, it is a factor that affects the psychological price of technical analysts. The decision-making factor of thinking trading is a good reference tool for technical analysts. The FMZ Quant tool supports many different types of moving averages, as shown below:
MA_DEMO:MA(CLOSE,5); // get the moving average of 5 cycle MA_DEMO:EMA(CLOSE,15); // get the smooth moving average of 15 cycle MA_DEMO:EMA2(CLOSE,10);// get the linear weighted moving average of 10 cycle MA_DEMO:EMAWH(CLOSE,50); // get the exponentially weighted moving average of 50 cycle MA_DEMO:DMA(CLOSE,100); // get the dynamic moving average of 100 cycle MA_DEMO:SMA(CLOSE,10,3); // get the fixed weight of 3 moving average of closing price in 10 cycle MA_DEMO:ADMA(CLOSE,9,2,30); // get the fast-line 2 and slow-line 30 Kaufman moving average of closing price in 9 cycle.
Bollinger bands is also based on the statistical principle. The middle rail is calculated according to the N-day moving average, and the upper and lower rails are calculated according to the standard deviation. When the BOLL channel starts changing from wide to narrow, which means the price will gradually returns to the mean. When the BOLL channel is changing from narrow to wide, it means that the market will start to change. If the price is up cross the upper rail, it means that the buying power is enhanced. If the price down cross the lower rail, it indicates that the selling power is enhanced.
Among all the technical indicators, Bollinger Bands calculation method is one of the most complicated, which introduces the concept of standard deviation in statistics, involving the middle trajectory ( MB ), the upper trajectory ( UP ) and the lower trajectory ( DN ). luckily, you don't have to know the calculation details, you can use it directly on FMZ Quant platform as follows:
MID:MA(CLOSE,100); //calculating moving average of 100 cycle, call it Bollinger Bands middle trajectory TMP2:=STD(CLOSE,100); //calculating standard deviation of closing price of 100 cycle. TOP:MID+2*TMP2; //calculating middle trajectory plus 2 times of standard deviation, call it upper trajectory BOTTOM:MID-2*TMP2; //calculating middle trajectory plus 2 times of standard deviation, call it lower trajectory
The MACD indicator is a double smoothing operation using fast (short-term) and slow (long-term) moving averages and their aggregation and separation. The MACD developed according to the principle of moving averages removes the defect that the moving average frequently emits false signals, and also retains the effect of the other good aspect. Therefore, the MACD indicator has the trend and stability of the moving average. It was used to study the timing of buying and selling stocks and predicts stock price change. You can use it as follows:
DIFF:EMA(CLOSE,10)-EMA(CLOSE,50); //First calculating the difference between short-term moving average and long-term moving average. DEA:EMA(DIFF,10); //Then calculating average of the difference.The above is the commonly used strategy module in the development of quantitative trading strategies. In addition, there are far more than that. Through the above module examples, you can also implement several trading modules that you use most frequently in subjective trading. The methods are the same. Next, we began to write a viable intraday trading strategy.
Strategy WritingIn the Forex spot market, there is a wellknown strategy called HANS123. Its logic are basically judging wether the price breaks through the highest or lowest price of the number of K lines after the market opening
// Data Calculation Q:=BARSLAST(DATA<>REF(DATA,1))+1; //Calculating the number of period from the first K line of the current trading day to current k line, and assign the results to N HH:=VALUEWHEN(TIME=0930,HHV(H,Q)); //when time is 9:30, get the highest price of N cycles, and assign the results to HH LL:=VALUEWHEN(TIME=0930,LLV(L,Q)); //When time is 9:30, get the lowest price of N cycles, and assign the results to LL //Placing Orders TIME>0930 AND TIME<1445 AND C>HH,BK; //If the time is greater than 9:30 and lesser than 14:45, and the closing price is greater than HH, opening long position. TIME>0930 AND TIME<1445 AND C
To sum upAbove we have learned the concept of the strategy module. Through several commonly used strategy module cases, we had a general idea of the FMZ Quant programming tools, it can be said that learning to write strategy modules and improve programming logic thinking is a key step in advanced quantitative trading. Finally, we used the FMZ Quant tool to implement the trading strategy according a classical Forex trading strategy.
Next section noticeMaybe there are still some confusion for some people, mainly because of the coding part. Don't worry, we have already thought of that for you. On the FMZ Quant platform, there is another even easier programming tool for beginners. It is the visual programming, let's learn it soon!
|A (Size)||B (Price)||C (Time)|
Took multiple losses on GBPJPY as it ran through all the trend continuation setups, and the persistence of how it has done this move is something that gives us reason to re-assess trade plans, and be diligent on risks as well as opportunities the conditions we are now in may present.submitted by whatthefx to u/whatthefx [link] [comments]
I feel like I've seen this movie before. Usually when getting squeezed in a trend continuation, there are a few hits you have to take and then there is a big pay off. As a general rule, the better the move will be the harder it is to position for. So early losses on this were all within the acceptable margin of error in this strategy (I think I also made setup errors, which was bad. I can do better on that). After we ran some more setups (that looked fully valid at time of execution), I noped out. Stopped selling, and waited to see what happened.
Last time I remember being on the wrong side of such a fierce move of this form on GBPJPY was similar. Done well shorting, scalped some buys at a support, then reversed into the "correction" - and it went parabolic against me. I remember this well, because in the coming week there were news reports of the GBP having it's best day/week in a yeadecade (I forget specifics, but GBP was in the news for the rally). In the week after that, the high was made .... because that was when Brexit happened.
What happened there, from a charting perspective, is we went into a 2 week corrective cycle and then started another impulsive wave. If this happens we may see something spectacular in GBPJPY in the near term. This may feature a record breaking rally (or at least strong one) into 145, and even 155 (current price 130). From there, we may start a new trend taking the market into the large chart forecasts of 89 and 61.
I can retire if that happens. Absolutely. I'm going to plan, with various contingencies, for something like that possibly happening. In this post I''ll show what warnings signs we got over the last days as sellers. Where our main dangers will be as buyers. The levels as which we can be more sure buyers have won out in the short term, and also where the possible spikes low could come and how we'd trade them / what we'd do next.
I'll use MT4 charting for this analysis, since it will require a lot of different fibs and patterns assessment, I find fibs on MT4 quicker to work with than cTrader.
The Big Gartley Pattern
So the first thing we want to establish is where the buyers are coming from. Double bottom is accurate, but a bit vague. If we look closer, we can see the daily chart pinging off the 61.8 and 76 fib levels. This would be consistent with a Gartley pattern, and this would be a bullish reversal pattern (If successful). We have a couple probable scenarios here. One is a big break and move lower, and the other is a persistent move up in a small time frame trending chart form.
Let's look closer and see what the last days of trading have suggested to us about this.
Here is the 1 hour chart around the 76 level.
We've possibly formed the start of a second trend leg in the recent move up. Our best move here would be wait for a dip, buy into that and then run the trend upwards. We should see more strong moves like today, and these should be in nice structured form giving us easy entries and exits. This would be a good scenario for trading.
If a spike out is to form from this level, we'd now have it in a clear butterfly pattern. So we'd look for a 1.61 extension of this swing giving us a projected low of 125 area. This would be a harder move to trade. We either have to keep selling into the resistance levels and risk multiple small losses, or wait for momentum downwards and use breakout strategies. I feel method one has failed this week. We can perhaps look more at method two in a close under 128 (which will not happen if we are to trend).
As buyers, the possibility of this take out low move is our main danger. We have to be aware this can happen and it will be a fast move if it does. Risk control is important.
Bullish ScenariosFor now I am going to work on trade plans for if price remains above 128.50 and indicates bullish momentum. I want to work on targets and then reversal areas.
When we use the analysis above and consider we may be entering into big corrective leg, we can consider that this might be a 'ping swing' like move.
Remember the main characteristics of a ping swing. It's very strong. The move is parabolic. There's a spike out of major levels, and then there is an impulse leg.
Weigh that against the price action I described the last time I seen the same setup on GBBPJPY running into Brexit. The market followed that same template of price movements, and then came down in spectacular fashion.
This is where our main opportunity is, and this is where it seem the smart way to be betting is at this time. If the lows made here are taken out, we can look for positions around 125 to load up for this (a spike out and rally is still valid).
In the immediate term, we can just buy dips. Use tight stops and get high RR if it runs up, have very small losses to the downside. A correction from 130.20 to 128.50 gives us a great buying opportunity to get started in this move (buying over 130 but under 130.60 I think is a bad trade. Better to wait)
If we can establish a good buy position and see a ping swing move (which would be 2,000 pips - and GBPJPY can do this without many pullbacks, it's wild) the profit potential on this is enormous. Very small risks can be taken for extreme profits on the other end. If we do this and make good profits in the run up to that, we can then use a portion of these profits to position aggressively on the 61.8 spike out, and maybe have big positions in a decade long breakout to the downside in GBPJPY.
Whether or not there is a spike out low, when buying our first target is 145.00. This is either buying from 128.50 or 125 if that trade does not work out.
It would be very dangerous to sell if there is a spike out low into 125. Selling here could be brutal in the whip against you (as could selling in the leg we have but not getting out quick). For some perspective on this, GBPJPY went from 145 to 160 in only a couple strong trading days the last time we had conditions similar to this. The possibility of this, makes it a bad time to be a seller - horrible time to be a stubborn one.
No buys 130 - 130.50. Possible buys if there is a break of this.
Sells possible in this area, but risky. Not great RR. I'd not bother.
Buy level 1 - 128.50. 143 could be swing target here.
128 major bear break area. Danger of fast move here. Cut buys.
125 if met in spike, big buying area. Target 143 and stop 123 (tighter with price action).
145 first major upside resis. If we break this, 155.
Absolutely no selling into parabolic moves on GBPJPY at levels not mentioned here, isn't worth it.
|Rate (per day)||9.17||95.73|
Generated with BBoe's Subreddit Stats (Donate)
1 The 123 Forex Swing Trading Strategy. 1.0.1 Short Entry Rules: 1.0.2 Long Entry Rules: 1.0.3 Trade Management: 1.0.4 Advantages: 1.0.5 Disadvantages: 1.0.6 Forex Trading Strategies Installation Instructions; 1.0.7 Recommended Forex Metatrader 4 Trading Platform; 1.0.8 How to install The 123 Forex Swing Trading Strategy? The forex 1-2-3 price action pattern trading is most simple yet powerful forex strategy you’ll ever find. It work best when the patterns follow the direction of trend (it also works against the trend). The pattern is also easy to identify on the chart and you can find it every day. The 123 Forex trading strategy is based on price action and normal Forex market structure that any trader should know. The 1 2 3 trading strategy is used as a continuation trading setup that is designed to take advantage of the trend of the market. The failure of the 123 trading strategy is also a trade setup but can also warn you of potential price consolidation in the market or even a trend ... 123 Trading Method A Simple Strategy For Trading Cfds, Cryptocurrencies, Currencies, Forex, Futures and Stocks. Home; 123 Trading Course Log In; Trading Resources; Social Trading Platforms; Welcome to 123 Trading Method. Welcome to my blog about the 123 Trading Method and other videos and articles about trading and investing. I look for new information and news every day about this fascinating ... If you're trading a 123 low you will be placing a pending long and you will have to allow for the spread. Remember that on the longer time frames, the spread may actually fluctuate before the entry is made. I like to trade this using a forex 1hr chart strategy. Advantages of the 123 Chart Pattern Forex Trading Strategy. a very easy price action trading system with really simple trading rules. in a good and strong trending market, you can use multiple 123 chart patterns setup and add more trades as trend continue thus pyramiding your way to increase profits. Disadvantage of the 123 Chart Pattern Forex Trading Strategy . sometimes the breakout ... ABC Pattern or the 123 chart pattern:The 123 pattern is areversal chart pattern which occurs very frequently and has a veryhigh success ratio. 123’soccur at the end of trends and swings, and they are an indication ofa change in trend. They can also be found within a trading range, andthey take place when the directional momentum of a trend isdiminishing.
[index]          
Visit http://elliottwavenuggets.com for FREE basic and advanced trading methods and forex tips and tricks. The 123 Pattern, or the 123 Trade is explained in ... To trade the 123 trading method for the forex, futures and stock markets. Bonuses!!! Sean's Link Magnet Special Report ($47 Value) Video Assassin 2.0 (Value $97) Super Simple Squeeze Page System ... In this week's Learn Trading series: How to trade 123 Tops and Bottoms, which are pure Support and Resistance formations popularized by Ken Roberts in the ea... How to use 123 swing trading system - Best Breakout forex trading strategy \\\\\ The 123 Forex trading strategy is base... Simple 1-2-3 Forex Trader was created to help traders simplify their trading.But one of our highly successful trader has taken this simplification to a whole ne...