Example how to set the time range window to be backtested for both entries and exits. Additional examples are also included showing how to set the date range and toggle plot visibility.
By incorporating this code with your own strategy's logic, it will allow you to backtest various time windows.
Much gratitude to @LucF and @a.tesla2018 for help with including...
Uses daily average ranges of 5 and 10 (most used) as buy (support) and highs (resistance) areas - half ranges used in calculations for a more accurate "forecast" of the H and L . Uses open but not close, so it does not repaint - experimental
This script shows the London and NY Sessions on your chart. Decided to publish it on demand for user yuan642 :D. Maybe other users may find it helpful.
Looking back on charts it can help to spot certain moves or patterns around certain Session open when high volumes enter the markets.
---- May 05 2015 -----
Added support for filtered ranges:
RID V3 : pastebin.com
RIDv3 has full backward compatibility (!?), meaning all my descriptions below still apply for V3.
-- In addition, I have added a NON-OVERLAY mode, which can be put in its own pane, that shows the number of bars in the current range.
-- in Overlay mode, you can...
CM_MTF ATR Bands/Stops
Many Options Available Via Input Tab:
-Chart Defaults to Upper and Lower ATR's Based on Current Chart TimeFrame
-Ability to Plot either Upper and/or Lower ATR's
-Ability to Change the Time Frame ATR's are Based On!
-Ability to change Look Back Period and ATR Multiplier Individually for Both Time Frames
-This Gives you the ability to plot...
Example how to overlay the first lower timeframe bar of the day across the entire day. Set chart to a timeframe that is lower than 1 Day period. Also included option for coloring wick pressure of that bar.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have...
This tool highlights where gaps happens and outlines in the chart where the gap zones are. If there is a gap up there is a green line, a gap down it is red. The gap zone is highlighted in blue. You can choose the size of your gap with the input menu to the desired size. Feel free to ask comment below. Made for the Gold Minds group
The Range Expansion Index ( REI ) oscillator is based on Tom Demark's studies and described in "DeMark on Day Trading Options" book.
Range Expansion Index is an oscillator which compares current intraday highs and lows with the high and low of two bars ago.
The indicator oscillates between +100 and - 100, Default overbought and oversold conditions are 45/-45...
This is the Donchian Channel expressed with a percentage cloud. Default 12.5% of the range will be filled at each edge, this helps to show reversal possibilities as price returns to the area between the clouds. This offers a usage to essentially fade the turtle trader system. That system is loosely based on the playing of the breakouts of the the channel... as...
This script is good to use with Williams %R indicator, to find out when price has bottomed out.
ATR has to be over 90 and Williams %R ( lenght 52 ) has to be over 95 to find out level around which one is good to buy.
You can check back, to see that this worked very well over history. Best way to use this 2 indicators is with DCA ( dollar cost average ), as area...
This one compares the total candle height (Low to High), body size, also top and bottom wick sizes. I really don't know when it would be best to use this, but it gives a 0 baseline to compare candles side-by-side also to compare body size to wick size.
- The tallest of course is high minus low
- whether or not the close is above the open, the body...
Basic ADR-indicator that is showing the daily range on lower timeframes as well, without using the current open daily bar for calculation.
Also plots as line in a separate indicator window. Updates displayed value when hovering over the candles on the chart to see historical Numbers.
The script made for research purposes which plots these statistics of a given window: Mid-range (max + min)/2, Lower midpoint (mid-range + min)/2, and Higher midpoint (mid-range + max)/2.
This could be interesting when checking periods with sample size <= 0, or checking distros with srs kurtosis values.
Mean & median are also there.
WARNING: this strategy repaints after reloading and results are heavily curve fitted, use at your own discretion.
UPDATE: (AleksanderThor) add option for a 2nd target, to use you need to activate pyramiding with a setting of 1 manually (not possible to change programatically) .
The TD Range Projection, sometimes called TD Pivot Points, provides a range
of next session through a simple calculation that uses the open, high, low
and close of the previous session.
This indicator developed by Tom DeMark gives different weight to a minimum
or maximum depending on the trend of the previous session. Thus, if the previous