Open Close Cross Strategy R5 revised by JustUncleLThis revision is an open Public release, with just some minor changes. It is a revision of the Strategy "Open Close Cross Strategy R2" originally published by @JayRogers.
*** USE AT YOUR OWN RISK ***
JayRogers : "There are drawing/painting issues in pinescript when working across resolutions/timeframes that I simply cannot fix here.. I will not be putting any further effort into developing this until such a time when workarounds become available."
NOTE: Re-painting has not been observed with the default set up, nor with Alternate resolution multiplier up to 5.
Description:
Strategy based around Open-Close Moving Average Crossovers optionally from a higher time frame.
Setup:
I have generally found that setting the strategy resolution to 3-5x that of the chart you are viewing tends to yield the best results, regardless of which MA option you may choose (if any) BUT can cause a lot of false positives - be aware of this. JustUncleL: using one of the Smoothed MA helps reduce false positives.
Don't aim for perfection. Just aim to get a reasonably snug fit with the O-C band, with good runs of green and red. JustUncleL: using SMMA (8 to 10) gives a good fit.
Option to either use basic open and close series data, or pick your poison with a wide array of MA types.
Optional Stop Loss and Target Profit for damage mitigation if desired (can be toggled on/off)
Positions get taken automatically following a crossover - which is why it's better to set the resolution of the script greater than that of your chart, so that the trades get taken sooner rather than later.
If you make use of the stops/target profit, be sure to take your time tweaking the values. Cutting it too fine will cost you profits but keep you safer, while letting them loose could lead to more draw down than you can handle.
Revsion R5 Changes by JustUncleL
Corrected cross over calculations, sometimes gave false signals.
Corrected Alternate Time calculation to allow for Daily,Weekly and Monthly charts.
Open Public release.
Revision R4 By JustUncleL
Change the way the Alternate resolution in selected, use a Multiplier of the base Time Frame instead, this makes it easy to switch between base time frames.
Added TMA and SSMA moving average options. But DEMA is still giving the best results.
Using "calc_on_every_tick=false" ensures results between back testing and real time are similar.
Added Option to Disable the coloring of the bars.
Updated default settings.
R3 Changes by JustUncleL:
Returned a simplified version of the open/close channel, it shows strength of current trend.
Added Target Profit Option.
Added option to reduce the number of historical bars, overcomes the too many trades limit error.
Simplified the strategy code.
Removed Trailing Stop option, not required and in my option does not work well in Trading View, it also gives false and unrealistic performance results in back testing.
R2 Changes by @JayRogers:
Simplified and cleaned up plotting, now just shows a Moving Average derived from the average of open/close.
Tried very hard to alleviate painting issues caused by referencing alternate resolution.
Open
Pivots Daily Weekly Monthly YearlyDaily, Weekly, Monthly and yearly pivot lines
Just the pivot lines without the support and resistance lines
[RS]Open Range Breakout V3Request for DCC/coondawg71
added support for using session.
theres a issue with the session it needs to have the format inverted:
(start-end) to (end-start)
'0000-1500' to '1500-0000'
[RS]Temporal Median Price V0EXPERIMENTAL: previous custom time window median price and current time window open price in a neat package :p
Open Close Daily LineThis will place circles on your chart for the opening daily price. If price is above, the circles are green. If price is below, the circles are red. I wanted to be able to see the opening price a bit easier while in smaller time frames.
I decided to add the previous daily closing line to the original script. Basically looking for good support / resistance
Open Daily LineThis will place circles on your chart for the opening daily price. If price is above, the circles are green. If price is below, the circles are red. I wanted to be able to see the opening price a bit easier while in smaller time frames.
_CM_High_Low_Open_Close_Weekly-IntradayUpdated Indicator - Plots High, Low Open, Close
For Weekly, Daily, 4 Hour, 2 Hour, 1 Hour Current and Previous Sessions Levels.
Updated Adds 4 Hour, 2 Hour, 1 Hour levels for Forex and Intra-Day Traders.
BITCOIN KILL ZONES v2Kill Zones
Kill zones are really liquidity events. Many different market participants often come together and act around these events. The activity itself may be event driven (margin calls or options exercise related activity), portfolio management driven (buy-on-close and asset allocation rebalancing orders) or institutionally driven (larger players needing liquidity to get filled in size) or a combination of any/all three. The point is, this intense cross current of activity at a very specific point in time often occurs near significant technical levels and trends established coming out of these events often persist until the next Kill Zone in approached/entered.
Specifically, there are three Kill Zones and each has its own importance/significance.
1. Asian Kill Zone (1900 - 2300 EST) Considered the "institutional" zone, this zone represents both the launch pad for new trends and also too a reloading area from the post American session. It is the start of a new day (or week) for the world and as such it makes sense this zone will often set the tone for the rest of the world's trading day. Since it is very wide (4 hours) one should pay attention to the Tokyo open (2100 EST) the Beijing open (2120 EST) and the Sydney open (0650 EST previous day).
2. London Kill Zone (0200 - 0400 EST) Considered the center of the financial universe for more than 500 years, Europe still carries a lot of influence within the banking world. Many larger players use the Euro session to establish their positions. As such, the London open often sees the most significant trend establishment activity through any given trading day. Indeed, it has been suggested 80% of all weekly trends are established through Tuesday's London Kill Zone.
3. New York Kill Zone (0830 - 1030 EST) The United States is still by far the world's largest economy and so by default New York's open carries a lot of weight and often comes with a big injection of liquidity. Indeed, most of the world's trade-able assets are priced in US dollars which gives even more significance to political and economic activity within this region. Because it comes relatively late in the globe's trading day, this Kill Zone often sees violent price swings within it's first hour leading to the time tested adage "never trust the first hour of North American trading.
Additional notes:
It has become apparent these Kill Zones are evolving over time and the course of world history. Since the end of the second world war, New York has slowly encroached on London's place as the global center for commercial banking. So much so through the later part of the 20th century New York was considered indeed, the new center of the financial universe. With the end of the cold war that leadership seems to have shifted back toward Europe and away from The United States. Additionally, Japan has slowly lost its former predominance within the global economic landscape while Beijing's has risen dramatically.
Only time will tell how these kill zones will evolve given each region's ever changing political, economic and socioeconomic influences.
Trading Notes:
If you have specific levels of interest odds are the bigger players have the same levels too. If it is indeed a solid level, look for price to trade to your level through the kill zone because the zone is a liquidity event where the bigger players can find enough size to get their big orders filled.
Try to avoid taking positions heading into Kill Zones and look for confirmation of your levels coming out of the event. For the more advanced trader, look to take positions on those level hits through the zone but understand higher time frame players often have far deeper pockets then day traders and can endure far more volatility then us little guys.
Thanks for the contribution to @CRInvestor and @ICT_MHuddleston
Bitcoin Kill ZonesGRAB THE LASTEST VERSION HERE:
*********************
This indicator shows when the candle is entering New York, London or Asia Kill Zone (open market).
gray: 30min before market opens.
red, green, orange: First 1 hour with 10min focus bands.
silver: complete 30min session market until close.
FIX NOTE:
Set this hours for Asia to fix the 1 hour difference:
2330-0000
0000-0010
0010-0050
0050-0100
0100-0900
* this is beta, in planning to mark dynamically ranges before/after open/close session and use some Fibs to have some ripple effect indicator
Updated code: github.com
The Lark: Directional Movement IndexAn open source version of the DMI. Mostly published for other scripters to modify.
Typical useage: www.investopedia.com