Overnight Positioning w EMA - Strategy [presentTrading]I've recently started researching Market Timing strategies, and it’s proving to be quite an interesting area of study. The idea of predicting optimal times to enter and exit the market, based on historical data and various indicators, brings a dynamic edge to trading. Additionally, it is integrated with the 3commas bot for automated trade execution.
I'm still working on it. Welcome to share your point of view.
█ Introduction and How it is Different
The "Overnight Positioning with EMA " is designed to capitalize on market inefficiencies during the overnight trading period. This strategy takes a position shortly before the market closes and exits shortly after it opens the following day. What sets this strategy apart is the integration of an optional Exponential Moving Average (EMA) filter, which ensures that trades are aligned with the underlying trend. The strategy provides flexibility by allowing users to select between different global market sessions, such as the US, Asia, and Europe.
It is integrated with the 3commas bot for automated trade execution and has a built-in mechanism to avoid holding positions over the weekend by force-closing positions on Fridays before the market closes.
BTCUSD 20 mins Performance
█ Strategy, How it Works: Detailed Explanation
The core logic of this strategy is simple: enter trades before market close and exit them after market open, taking advantage of potential price movements during the overnight period. Here’s how it works in more detail:
🔶 Market Timing
The strategy determines the local market open and close times based on the selected market (US, Asia, Europe) and adjusts entry and exit points accordingly. The entry is triggered a specific number of minutes before market close, and the exit is triggered a specific number of minutes after market open.
🔶 EMA Filter
The strategy includes an optional EMA filter to help ensure that trades are taken in the direction of the prevailing trend. The EMA is calculated over a user-defined timeframe and length. The entry is only allowed if the closing price is above the EMA (for long positions), which helps to filter out trades that might go against the trend.
The EMA formula:
```
EMA(t) = +
```
Where:
- EMA(t) is the current EMA value
- Close(t) is the current closing price
- n is the length of the EMA
- EMA(t-1) is the previous period's EMA value
🔶 Entry Logic
The strategy monitors the market time in the selected timezone. Once the current time reaches the defined entry period (e.g., 20 minutes before market close), and the EMA condition is satisfied, a long position is entered.
- Entry time calculation:
```
entryTime = marketCloseTime - entryMinutesBeforeClose * 60 * 1000
```
🔶 Exit Logic
Exits are triggered based on a specified time after the market opens. The strategy checks if the current time is within the defined exit period (e.g., 20 minutes after market open) and closes any open long positions.
- Exit time calculation:
exitTime = marketOpenTime + exitMinutesAfterOpen * 60 * 1000
🔶 Force Close on Fridays
To avoid the risk of holding positions over the weekend, the strategy force-closes any open positions 5 minutes before the market close on Fridays.
- Force close logic:
isFriday = (dayofweek(currentTime, marketTimezone) == dayofweek.friday)
█ Trade Direction
This strategy is designed exclusively for long trades. It enters a long position before market close and exits the position after market open. There is no shorting involved in this strategy, and it focuses on capturing upward momentum during the overnight session.
█ Usage
This strategy is suitable for traders who want to take advantage of price movements that occur during the overnight period without holding positions for extended periods. It automates entry and exit times, ensuring that trades are placed at the appropriate times based on the market session selected by the user. The 3commas bot integration also allows for automated execution, making it ideal for traders who wish to set it and forget it. The strategy is flexible enough to work across various global markets, depending on the trader's preference.
█ Default Settings
1. entryMinutesBeforeClose (Default = 20 minutes):
This setting determines how many minutes before the market close the strategy will enter a long position. A shorter duration could mean missing out on potential movements, while a longer duration could expose the position to greater price fluctuations before the market closes.
2. exitMinutesAfterOpen (Default = 20 minutes):
This setting controls how many minutes after the market opens the position will be exited. A shorter exit time minimizes exposure to market volatility at the open, while a longer exit time could capture more of the overnight price movement.
3. emaLength (Default = 100):
The length of the EMA affects how the strategy filters trades. A shorter EMA (e.g., 50) reacts more quickly to price changes, allowing more frequent entries, while a longer EMA (e.g., 200) smooths out price action and only allows entries when there is a stronger underlying trend.
The effect of using a longer EMA (e.g., 200) would be:
```
EMA(t) = +
```
4. emaTimeframe (Default = 240):
This is the timeframe used for calculating the EMA. A higher timeframe (e.g., 360) would base entries on longer-term trends, while a shorter timeframe (e.g., 60) would respond more quickly to price movements, potentially allowing more frequent trades.
5. useEMA (Default = true):
This toggle enables or disables the EMA filter. When enabled, trades are only taken when the price is above the EMA. Disabling the EMA allows the strategy to enter trades without any trend validation, which could increase the number of trades but also increase risk.
6. Market Selection (Default = US):
This setting determines which global market's open and close times the strategy will use. The selection of the market affects the timing of entries and exits and should be chosen based on the user's preference or geographic focus.
ASIA
E9 ASIA Session
*note: Upon updating the script the conversion from V4 to v5 has lost the weekend extended lines and now prints an asia session for each day. It is recommended (esp for crypto) to extend these lines across the weekend like in the chart example above.
The E9 Asia Session Indicator is a valuable tool for traders aiming to track and analyze the Asia trading session on financial charts. This indicator provides insights into price behavior during the Asia session, which is crucial for making informed trading decisions. Here's an overview of its key functionalities and uses:
1. Session Highs and Lows
Purpose:
The indicator calculates and plots the high and low of the Asia session.
It helps identify key levels of support and resistance established during this trading period.
Importance:
These levels can act as significant reference points for future price movements.
Price action that occurs near these levels often provides clues about potential breakouts or reversals.
2. Session Background Color
Purpose:
The indicator can shade the background of the chart during the Asia session.
Importance:
This visual cue helps quickly identify the session's timeframe, enhancing the trader’s ability to observe price behavior within this specific period.
It aids in distinguishing between different trading sessions and understanding their influence on price action.
3. Start of Session Marker
Purpose:
A visual marker (such as a circle) is plotted at the beginning of each Asia session.
Importance:
This marker helps traders visually pinpoint the start of the session, making it easier to analyze how the price reacts from the session's opening.
4. End of Session Marker
Purpose:
A marker is plotted at the end of the Asia session, indicating where the session closes.
Importance:
This marker is useful for tracking the end of the session and observing price behavior around this critical juncture.
It helps in analyzing whether the session's high or low gets revisited or broken in subsequent sessions.
Practical Uses:
Strategic Planning: Traders can use the plotted high and low levels to set their trading strategies, stop-loss orders, and profit targets.
Market Analysis: Understanding how price interacts with the Asia session’s high and low levels can provide insights into market sentiment and potential price movements.
By incorporating the E9 Asia Session Indicator into your trading toolkit, you can gain a deeper understanding of the Asia session's impact on price dynamics, enhancing your overall trading strategy and decision-making process.
Disclaimer: The information contained in this article does not constitute financial advice or a solicitation to buy or sell any securities. All investments involve risk, and past performance does not guarantee future results. Always evaluate your financial circumstances and investment objectives before making trading decisions.
B A N K $ - Advanced Session RangesThis is a simple indicator that has been designed to aid intraday trading and has a few components;
Key Features
Session Ranges + Optimal Exit Time
Asia Pip Range
New York Midnight Open Line
Session Ranges + Optimal Exit Time
Information ℹ️
This is a visual depiction of the 3 main sessions in the markets. Asia, London & New York. The default timings are set to perfectly align with each session however the Start & End times for each session can be changed in the settings. (I've added a website on the tooltip to easily convert timezones)
I have also added a 4th session range called "Optimal Exit Time". This is statistically the most probable time window for the opposite High / Low of Day to form is within this window. It helps the trader understand when they should look to take profit.
How It Works 🔑
The indicator automatically maps on two lines for the High & Low of the range between the selected Start & End time, it also colours the background.
The individual lines & background can be toggled & customised to the traders preference.
Asia Pip Range
Information ℹ️
This displays the Asia Range in pips beneath the Asia Session Low.
How It Works 🔑
This calculates the distance between the Asia High - Asia Low in pips. It will automatically recalibrate to the timings the trader sets in the settings if they change the Start / End.
New York Midnight Open Line
Information ℹ️
This helps look for Buys beneath the line for a Bullish Expansion day 📈 & Sells above the line for a Bearish Expansion day 📉
How It Works 🔑
This adds a horizontal line to the chart that is anchored to New York Midnight Open (00:00) by default. It can be changed in the settings in required. You can also toggle on the time being shown above the line.
Time Zone RouzzyTNYC , London & Asia section
Each time-zone has a different color to be able to distinguish which section we are in at the moment.
These sessions have been identified to operate the EURUSD, apart from that it also works with the DXY.
London is identified with the color light purple.
NYC is identified with the color turquoise blue.
Asia is identified with the color yellow.
The beginnings of each Day are identified with the color gray.
London is from 2am to 5am
NYC from 8am to 11am
Asia from 8pm to 11pm
OANDA:EURUSD
FX:EURUSD
TVC:DXY
LIT - TimingIntroduction
This Script displays the Asia Session Range, the London Open Inducement Window, the NY Open Inducement Window, the Previous Week's high and low, the Previous Day's highs and lows, and the Day Open price in the cleanest way possible.
Description
The Indicator is based on UTC -7 timing but displays the Session Boxes automatically correct at your chart so you do not have to adjust any timings based on your Time Zone and don't have to do any calculations based on your UTC. It is already perfect.
You will see on default settings the purple Asia Box and 2 grey boxes, the first one is for the London Open Inducement Window (1 hour) and the second grey box is for the NY Open Inducement Window (also 1 hour)
Asia Range comes with default settings with the Asia Range high, low, and midline, you can remove these 3 lines in the settings "style" and untick the "Lines" box, that way you only will have the boxes displayed.
Special Feature
Most Timing-based Indicators have "bugged" boxes or don't show clean boxes at all and don't adjust at daylight savings times, we made sure that everything automatically gets adjusted so you don't have to! So the timings will always display at the correct time regarding the daylight savings times.
Combining Timing with Liquidity Zones the right way and in a clear, clean, and simple format.
Different than others this script also shows the "true" Asia range as it respects the "day open gap" which affects the Asia range in other scripts and it also covers the full 8 hours of Asia Session.
Additions
You can add in the settings menu the last week's high and low, the previous day's high and low, and also the day's open price by ticking the boxes in the settings menu
All colors of the boxes are fully adjustable and customizable for your personal preferences. Same for the previous weeks and day highs and lows. Just go to "Style" and you can adjust the Line types or colors to your preferred choice.
Recommended Use
The most beautiful display is on the M5 Timeframe as you have a clear overview of all sessions without losing the intraday view. You can also use it on the M1 for more details or the M15 for the bigger picture. The Template can hide on higher time frames starting from the H1 to not flood your chart with boxes.
How to use the Asia Session Range Box
Use the Asia Range Box as your intraday Guide, keep in mind that a Breakout of Asia high or low induces Liquidity and a common price behavior is a reversal after the fake breakout of that range.
How to use the London Open and NY Open Inducement Windows
Both grey boxes highlight the Open of either London Open or NY Open and you should keep an eye out for potential Liquditiy Graps or Mitigations during that times as this is when they introduce major Liquidity for the regarding Session.
How to use the Asia high, low and midline and day open price
After Asia Range got taken out in one direction, often price comes back to those levels to mitigate or bounce off, so you can imagine those zones as support and resistance on some occasions, recommended in combination with Imbalances.
How to use the previous day and week's highs and lows
Once added in the settings, you can display those price levels, you can use them either as Liquidity Targets or as Inducement Levels once they are taken out.
Enjoy!
Range Deviations @joshuuuThis indicator is able to show ranges, the equlibrium (50%) and range deviations.
It has four pre-defined options and one custom version.
Asia (2000-0000) ny time
CBDR(1400-2000) ny time
Flout(1400-0000) ny time
ONS (OverNightSession)(0400-0800) chicago time
Custom (you can choose the times)
ICT (Inner Circle Traders) teaches, that those range deviations of asia,cbdr,flout can be used to find the daily high/low.
TCM (The Currency Merchant) teaches, that a move out of the range often is a false move to trap traders into the wrong direction.
BTC Europe-America-Asia market backgrounds - 1h max frameMarket indicator - Europe - America - Asia.
Based on my trading experience. Therefore, time zones are of different sizes.
Hotch SessionSimple Session timer with separate session for Asia, Europe, and the Americas plus an extra custom session timer. each can be turned on and off separately.
The indicator also plots the highs and lows of each session.
This code was modified from the Session timer code found in the original "The Arty" by PheonixBinary but expanded to better include all trading sessions.
The code was written in a manner to be as compact as possible. I had looked at many other Session timers and found entire input sections that were longer than the entirety of this indicator.
Please feel free to use this code in any manner you choose permission not required.
ICT Session Killzone Boxes & DeviationsICT Killzone Sessions Boxes & Deviations is a convenience indicator that marks out past and future ICT killzones for Asia, London, and New York, London Close and CBDR.
The boxes highlights the highest and lowest candle opens of that session/killzone, which is what the deviations are based on. Two lines mark out the highest high and lowest low of that session.
This indicator also includes New York midnight opening price and a vertical divider showing you that time.
Future killzones are also marked out.
All times are set to GMT-4 so these boxes should work across most exchanges. Times and code can be changed if a few don't match up.
Included are week of day labels for your convenience.
For those who are unfamiliar, ICT Killzones are optimal times to look for trades during or before a session, often providing entry for trades with orderblock tests, FVG fills or stophunts.
Please note: This indicator only works well on 1HR timeframe and below. The default max timeframe setting is set to 15min, which can be changed in the menu.
There may be some bugs so please highlight anything you find in the comments below :)
Shout out to @Ryazn for all the ideas!
AltSessionHello World
It’s no secret that trading sessions play a massive role in market movement and liquidity. We can clearly see in the image about how important identifying international trading hours are for a trader.
The Asian session starts around 1am GMT and often has a bearish bias through this session lasting for a few hours, after which Frankfurt and London traders start to come online and can often reverse the Asian sentiment.
The London session is the best session to trade traditionally starting around 7am GMT before the American traders come online and reverse market once again.
We have designed this indicator to help identify different trading hours easily with a background shade on the chart and also high/lows of the training session, as these levels can often be revisited.
We hope you find this indicator useful and please feel free to drop a comment if you have any updates you wish to be made or any future indicator script ideas, thank you.
bitpul Sessions + sma [MHMK]Background colors that show open-close of the major market sessions ( Tokyo, London, joint time, New York, free time).
I added two sma to get more confirmation for the reversal - You can hide smas
COVID-19: Daily momentumThis indicator shows 14-days moving average of daily rate of change (momentum, acceleration), in other words:
- up trends means that virus accelerates at the rate displayed on the right scale
- consolidation/horizontal movement - virus spreads at constant rate
- down trend - virus looses momentum IMPORTANT: the virus STILL accelerates but at a lower rate
By default the graphic displays World vs. EU vs. US vs. Asia while individual countries are available in Settings.
- EU includes the following countries (DE, FR, IT, ES, CH), all with more than 10k confirmed cases and more than 1k new daily infections.
- Asia includes CH and KR
To use the indicator it is important to disconnect main chart from the right scale, on main chart click on More (the 3 dots) -> Pin to scale -> Select "No Scale".
COVID-19: Daily changeNew daily infections (daily change) of COVID-19.
The chart shows new daily cases across the entire planet, the US, EU (de+fr+it+es only) and a small country (RO) that does not matter to anybody but me. You can show/hide different country in Settings.
Select "COVID-19: CONFIRMED" data in main chart and add the indicator.
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