Breakout Reversal Entry on WMA - NG1! Overnight ver 1This script is for learning purposes only
This strategy will plot arrows when price breaks so far above/below WMA. The strategy will enter when the price breaks away from WMA. All entries are reversals. Users can set WMA length and source; also the distance of the price away from WMA to enter. Adjustable bracket orders are placed for exit, with trailing stop or market stop choice. Last, users can set the time of day they want to enter a trade.
My Preference: I am testing this strategy on NG1! over night on 1 minute candle. with .003 on price drop/climb, I get entries almost every night. Also 10 tick stop and 5 tick profit seems backward to most, but with a high win/loss ratio, it performs quite well. Trailing stops generally help out as well.
INPUTS:
Length - The is the WMA length
Source - WMA source (High, Low, Open, Close...)
When Price Drops - This is the distance in ticks when the price drops away from WMA, an arrow is plotted, and reversal entry order is placed
When Price Climbs - Same as price drop, just in the opposite direction
Trailing Stop check box - Check if you want to place a trailing stop so many tick away from entry. Unchecked is Market (hard) stop so many ticks from entry.
Stop - Number of ticks away from entry a the stop or trailing stop is set (for NG 1 tick = $0.001)
Limit Out - Number of ticks away from entry a limit order is placed to take profits
Limit Time of day check box - check to use the time of day to limit what time of day order entry will occur.
Start/Stop Trades (Est Time) - First box is when the strategy will be allowed to start buying and stop is when the strategy will stop being allowed to buy. Sell orders continue until a stop or limit triggers an exit. These times are Eastern time zone
PROPERTIES:
Pyramiding - This feature will allow multiple entries to occur. If set to 1, the strategy should only trade 1 contract at a time. If set to 2, the strategy will enter a second order if entry requirements are met. This allows you to be holding 2 contracts. Basically on a good day, it will multiply your earnings, on a bad day, you'll just lose more. For testing, I keep this on 1.
TIPS:
- If you want to go long only, set "When Price Climbs" to an impossible number, like 10,000. It's not possible for NG to move $10 is a matter of minutes so it will not enter the market with a short order. Also keep in mind you can set different requirements for going long vs going short. If you think there is more pull on the market in a particular direction.
變動率指標(ROC)
Rate of Change w/ Moving AverageThis is a small spin on the Rate of Change (ROC) indicator where I overlay a simple moving average of the indicator over the prior days.
ROC Divergence — SharkCIAThis script helps to identify ROC pivot points and aims to show you when the trend has changed direction.
[RESEARCH] Rate of ChangeHello traders and developers!
I was wondering how built-in "roc" function in Pine is defined and calculated so I made a little research.
I examined 4 samples:
1) "roc" function itself
2) "roc" according to its description
3) price change ratio
4) price percent change ratio
The results of the first and fourth samples are identical.
So, TV built-in roc(source, length) = 100 * change(source, length) / source .
And it's description is incorrect.
If you didnt know it - now you know it.
Good luck!
TRIXThis indicator was originally developed by Jack K. Hutson (Stocks & Commodities (July 1983): "Good TRIX").
Percent Change Smoothed (PCT + EMA)ROC works great on data with only positive numbers (like prices).
But it fails to correctly represent the rate of change when source series have negative values.
ROC is positive when:
Source is positive AND Source is rising
OR Source is negative AND Source is falling
Percent change (PCT) is just a ROC that deals with this sign confusion.
Anyone with Data Science backgroud would likely know about it.
PCT is positive only when:
Source is rising
When applying to only positive data PCT = ROC they are exactly equal.
I've also added EMA smoothing option.
Enjoy!
modificated rate of changeBased on ROC this indicator has been smoothed with filter and the zero line changed by a longer period of inverted ROC filtred as well . Buy/sell at the cross.
Closing Leverage and Rate of ChangeShows BTCUSDLONGS vs BTCUSDSHORTS along with their rate of change on a scale that's friendly for a combined indicator. ROC is increased proportionally so you can see it in relationship to Open Shorts and Open Longs on the same graph without zooming. I had been using an offset as well, but using an offset to adjust position causes the highs to look lower and it makes the lows look less low. It was significant enough to seem like a bad idea to include.
Cross Exchange ChangeThe indicator itself looks at different Exchanges and compares the change in price of them. If one spikes up, we go long with it as we assume our Exchange will follow. Vice versa for short.
Inverse Fisher WMA Smoothed Price ROC and RSI by drnkkInverse Fisher WMA Smoothed Price ROC and RSI by drnkk
Smoothed Rate of ChangeSmoothed Rate of Change indicator script.
This indicator was originally developed by Fred G. Schutzman.
Tick Line Momentum OscillatorTick Line Momentum Oscillator indicator script. This indicator was originally developed by Daniel E. Downing (Stocks & Commodities, V.12:1 (42-44): Using The Tick In A Short-Term Indicator).
Sb_Rate_Of_Change_BB_Band_strategy Version 1.0The strategy couples the concept of rate of change along with the Bollinger bands.
Along with it LazyBear's RSI/MFI with Volatility Indicator is also taken to reduce the number of trades and improve efficiency.
Strategy (in Layman terms):
If in the past 10 candles RSI/MFI with Volatility Indicator has printed a red/green colour and the roc has gone above/below the Bollinger bands then the short/long order is placed respectively.
Message if you think of any modifications/ enhancements/ any opportunities. :)
Donations/Tips... :) -
BTC: 1BjswGcRR6c23pka7qh5t5k56j46cuyyy2
ETH: 0x64fed71c9d6c931639c7ba4671aeb6b05e6b3781
LTC: LKT2ykQ8QSzzfTDB6Tnsf12xwYPjgq95h4
Forex strength meterCalculates the strength of a particular currency taking into account it's rate of change (% price change in a period) in all correlated and anti-correlated pairs. For instance, when looking for USD strength we will add ROC for USDCAD, USDCHF and USDJPY while subtract AUDUSD, EURUSD, GBPUSD and NZDUSD.
After ROC step, one can smooth the result using EMA, or MACD.
As the script needs to fetch values from multiple currencies it isn't the fastest one, but it gets its job done.
Important: Only major currencies (AUD, CAD, CHF, EUR, GBP, JPY, NZD and USD) are considered.
ROC TideAdds some depth to the traditional rate of change (ROC) indicator. Instead of just having one ROC line with a single lookback period, this takes a minimum lookback period, n , and plots 20 ROC lines with lookback periods of n, 2n, 3n, ..., 20n . These lines will appear green when greater than zero, red when less than zero, and yellow when equal to zero by default.
Then it plots the average of those 20 ROC's as a yellow filled area so as to make it easier to see where the balance (or "tide") of the ROC waves are located.
GBPNZD ROC RF count strategyCode takes six pairs that are highly correlated to GBPNZD and determines if their ROC's are increasing or decreasing. If a pair has an increasing ROC it is given a 1, if decreasing a -1. The numbers are all added up (this is similar to a count for counting cards in blackjack). If the count goes positive the strategy enters a long position, if negative a short position.
Code is tuned for GBPNZD for 1HR chart. Returns $97 on an initial balance of $100 (if I am reading Tradingview Tester correctly)
*** Should work for GBPJPY, its has the same correlated pairs
Comments welcomed
JPY GBP ROCsRate of change of most volatile JPY and GBP pairs. All pairs ending in JPY are red except GBPJPY (colored yellow --currently most volatile 7/2016). GBPNZD is blue, the other GBP pairs are green, lime and teal. GBPJPY and GBPNZD are my favorite day trading / swing trading pairs. This script allows me to see the action of the most volatile and liquid pairs on one screen. JPY pairs (ex-GBPJPY) are all red so that I see the flow of JPY not so much each pair and its name. Global movement of JPY is what I am after. Same for the coloring of GBP pairs as green expect GBPNZD as blue. ***** EURGBP is plotted as an opposite (with a negative in front of its sma. EURGBP is extremely correlated to GBPNZD, I decided to plot it also.