Average
AlgoTrade DCA Bot Backtester█ OVERVIEW
This script can be used to backtest DCA Bots. It draws inspiration from 3Commas and has most settings that are available on 3Commas. It contains a few popular DCA Bot Presets that are well known in the community for you to test out! Preset used here: Kirigakure V4
█ FEATURES
DCA Preset (Custom, Standard TA,Urma Lite V3,Kirigakure V1,Kirigakure V3,Kirigakure V4)
Order Size Type (Fixed/% of equity to simulate compounding)
Base Order Size
Safety Order Size
Max Safety Trades Count
Price Deviation to open safety order %
Safety Order Volume Scale
Safety Order Step Scale
Take Profit %
Use ADR (Average Daily Range) as Take Profit
ADR length (if ADR as take profit is enabled)
Take Profit Type (% from total volume / % from base order)
Trailing Take Profit
Stop Loss
Deal Start Condition (Start ASAP) ▶ More Deal Starting Conditions will be added in the future
Bot Direction (Long / Short)
Start Time ▶ 1999-01-01 (Use this to always backtest the entire history)
End Time
This strategy also allows you to plot the Average Price and Take Profit of each trade, so it's easier to follow the trade and understand what's happening.
█ HOW TO USE
1. Select a DCA Preset and change the initial capital to the exact amount that is required (seen in the error message on top of the table). When using a Preset the following settings will be locked, meaning if you change them in the script's settings it won't have any effect:
Base Order Size
Safety Order Size
Max Safety Trades Count
Price Deviation to open safety order %
Safety Order Volume Scale
Safety Order Step Scale
Use ADR (Average Daily Range) as Take Profit
1.1 When using Presets you can choose the Order Size Type of Fixed or % of equity which simulates compounding
1.2 Choose a Direction and a Start and End Time
2. To backtest customized settings choose the preset "Custom"
2.1 All other settings are now "unlocked" and can be used
█ LIMITATIONS
Whenever a DCA preset is changed the initial_capital needs to be changed to the exact amount the settings require. If the initial_capital is not the same there will be an error of top of the table. To fix this error navigate to the Script's Settings and Properties and change the initial_capital to the same amount that is stated in the error.
DCA Bots with a high number of safety orders, e.g. 100, can run into an error that says "Maximum number of orders (9000) reached". If this error happens change the backtesting time to a shorter timeframe.
Using % of equity simulates compounding but is unrealistic because you cannot re-invest every single dollar
█ THANKS
This script in insipred by rouxam's "Backtesting 3commas DCA Bot v2" script
Volume and Trend reversal scalping scriptThe Vtrend X script allows for both trend based and scalping trading entries, it gives you all the trend and reversal information at hand that is necessary. It works best in a trending market.
The fundamental part of the script, is the volume weighted bands in blue and red, which help determine the trend and dynamic support and resistance . The blue band is a shorter length than the red band.
When the blue band dips below the red band, this tells us there is a downtrend. And when the blue band is trending above the red band, this is bullish uptrend price action. You will be able to note price whatever the timeframe really respects these bands, and you can use that to your advantage flicking through the high and low timeframes on where price will go next, combined with your own support and resistance levels.
Combined with the candle colors, which change whether they close above or below the main trend colored line (shown below), help identify a change in price action and trend. This allows for low timeframe plays also.
The uptrend and downtrend cicle signals are shown in a few different colors. Green and red are with the trend and have met all conditions. Orange and purple are against the trend calculations, and Olive circles risky trades against all the filters used to calculate signals.
The reversal signals, are the diamond plots in black, These also represent take profit areas as well.
Another key feature is the Daily / Weekly / Monthly and Yearly open levels displayed as colored dots. A lot of the plays i take use the Daily opens as key levels to take a trade off.
The indicator is designed to give you key information, but be quite customisable as well to suit your exact trading style.
Recommended timeframes i use for this script; Weekly (for key liquidity areas), Trading on the Daily, 6h, 4h, 2h, 1h and 25 minutes.
Backtested Settings and Pairs;
Pair - Timeframe - Signals Inputs - Reversal Inputs - ATR Multiplier - MA Filter
BTCUSD - 1 hr - 3 - 2.8 - 5.5 - NA
ETHUSD - 1 hr - 4 - 2.8 - 5.5 - NA
USDCAD - 1 hr - 4 - 2.8 - 5.5 - NA
GBPUSD - 1 hr - 4 - 2.8 - 5.5 - NA
US30 - 1 hr - 4 - 2.8 - 5.5 - NA
BTCUSD - 4 hr - 2.5 - 2.5 - 3.5 - NA
BTCUSD - 25 mins - 5 - 2.5 - 5.5 - NA
Pierre_crypt0 Medium/Long Term Trend EMAEMA / MA used by pierre_crypt0 to identify the medium / long-term trend
- Green = 100 EMA
- Blue = 200 MA
- Pink = 300 MA
- Black = 200 EMA
These three are used to refer to the short-term trend. The leading indicator he uses alongside horizontal levels to decide on his exposure/positioning.
Everyone keeps asking on Twitter, just compiled them into an indicator.
Pierre_crypt0 Short Term Trend EMAEMA/MA used by pierre_crypt0 to identify the short term trend
- Purple thin = 13 EMA
- Green stairs thin = 25 EMA
- Dotted blue thick = 32 EMA
These three are used to refer to the short term trend. Main indicator he uses alongside horizontal levels to decide of his exposure/positionning.
Everyone keep asking on Twitter, just compiled them into an indicator.
JMF MTF historical Vwap map and static levels. What is a vwap map?
This is a Multi time frame Historical vwap heatmap. The study plots lines and maps out historical vwap zones based on closing vwap value of the time frame selected and the time frames high range. Show casing high volume concentration areas and low volume area's from each time frame chosen on chart.
Static Vwap Lines can be turned off in settings, as well as the map, you can use each individually or paired together for a more complete overview of the levels. You can also refine the search by using the "Gap %" input. This will filter out and search for average price's that have gapped up or down "X" percent from the previous days average price. Leaving you with Static vwaps and map zones from the most important "Gap Day's". This helps clean up the over all visual, but be careful choosing a higher gap percentage, that you don't lose too much granularity the map offers.
What will a "Static vwap and Map look like"
The look will vary greatly depending on where the stock is in its historical range. If the name is in a consolidation range with a lot of recent average prices directly above and below, you will have a heavy, crowded, Darker/intense heat signature from the map, You will also see levels in map mode over lapping and lines bundled together. These high traffic area's can act as great support or resistance since they are showing a congregation of historical average prices where participants have previously interacted. On the contrary, if you see "open air" in the map, or large areas of blank chart where no heat signature is mapping, this is an area of LOW volume and average prices. Current price will or can move quickly through these areas IF price accepts inside the open air range. If price does NOT accept inside the open air range, Then the blank low volume zone can and will act as support or resistance given the situation.
Capture the gaps.
I look to capture these "Gaps" created by the map and static levels both long or short. I have noticed over time that the higher time frame maps zones are WELL respected intraday, Daily, Weekly, Monthly etc. I look for areas where we are clearing a high volume zone, we break above, hold and accept into open air, and start to move through the open air zones up or down.
I also use the more granular smaller levels as support and resistance intraday while in plays.
Time frames and settings .
User has 3 inputs for seperate time frames to show. You can show a combo of all 3 timeframes, or you can show only a single time frame of your choosing, or two. Mix and match with the string input time frames.
Acceptable inputs are - 5,10,15,30,60,90,240,D,W,M,2D,4W,3M and so on. Any combination of string input timeframe should work, that means numbers (5,10,15,etc) or letters (D,W,M,etc) or combination of the two.
Look and feel
Each time frame has its own color input, transparency input, line style input, and line weight input. User can customize any of the lines or maps to their liking with a wide variety of styles, widths, and colors.
Any or all of the time frames can be enabled or disabled as well, to make the map as busy, or as calm as you would like.
Enjoy !
In the end I encourage any who tries the Heatmap to really sit down and spend some time playing around with the settings in order to find out how they like the map set up. I usually run the default settings on a intraday 5min chart, and then another instance of the study on a 15min chart with W,M,3M. plotted. That way I can see granular intraday levels, and macro long term levels in the same view. See what fit's you the best, and how you like to trade. Most of all ENJOY!
Good luck -
JMF.
IMPORTANT INFO -
As always, the creator of this code is NOT a licensed investment advisor. No output of this tool is to be taken as investment advice or a recommendation to buy or sell any security.
Trading is risky, any one using this tool acknowledges they CAN LOSE some if not all of their initial investment even with this tool enabled.
User assumes ALL RESPONSIBILITY when using this tool in their technical analysis .
Volume Weighted Exponential Moving AverageThis is a volume weighted exponential moving average. uses exponential weighting and considers volume in the consideration of the average price. This makes for a more accurate "average" than a standard moving average.
Multiple Daily SMA EMA on Intra 1min 5min 15min ChartsThis script is helping you auto plot daily SMA EMA and extensions when you are looking at intraday charts. The script is customizable where user can select which ever levels they are interested in viewing. These daily lines act as support and resistance levels for intraday
The green line represent 20 EMA Daily
The yellow line represent 50 SMA Daily
The olive line represent 200 SMA Daily
The red line is upper Bollinger Band Daily
The black line is lower Bollinger Band Daily
To help you understand which lines are what I would recommend you add this indicator and select "D" timeframe and then see which lines you would like to view for your 1min chart or 5 min chart you can customize from the setting options which plot color you would like to view.
Reverse Ehler Instantaneous Trendline - TraderHalaiThis script uses a reverse function of the famous Ehler Instantaneous Trendline to calculate the source price required in order to change from Bullish to bearish
From my analysis, the reverse price does appear to be rather choppy, though it is 100% accurate. This is because Ehler's Instantaneous Trendline tends to remain trending for longer periods of time with above average hold periods.
The main suitability for this would be higher level timeframes, such as Weekly, 5 daily, 3 daily. From my findings Smoothed Heikin Ashi Trend, tends to provide better risk-adjusted returns across most timeframes (Higher return to drawdown ratio)
As I have spent a bit of time getting the reverse function mathematics to work, I decided to publish this as open source for the benefit, scrutiny and for further development by the TradingView community anyways.
Enjoy!
Average Daily Range (ADR) (Multi Timeframe, Multi Period)Average Daily Range (ADR)
(Multi Timeframe, Multi Period, Extended Levels)
Tips
• Narrow Zones are an indication of breakouts. It can be a very tight range as well.
• Wider Zones can be Sideways or Volatile.
What is this Indicator?
• This is Average Daily Range (ADR) Zones or Pivots.
• This have Multi Timeframe, Multi Period (Up to 3 Levels) and Extended Target Levels.
Advantages of this Indicator
• This is a Leading indicator, not Dynamic or Repaint.
• Helps to identify the reversal points.
• The levels are more accurate and not like the old formulas.
• Can practically follow the Buy Low and Sell High principle.
• Helps to keep minimum Stop Loss.
Who to use?
• Highly beneficial for Day Traders
• It can be used for Swing and Positions as well.
What timeframe to use?
• Any timeframe.
When to use?
• Any market conditions.
How to use?
Entry
• Long entry when the Price reach at or closer to the Green Support zone.
• Long entry when the Price retrace to the Red Resistance zone.
• Short entry when the Price reach at or closer to the Red Resistance zone.
• Short entry when the Price retrace to the Green Support zone.
• Long or Short at the Pivot line.
Exit
• Use past ADR levels as targets.
• Or use the Target levels in the indicator for breakouts.
• Use the Pivot line as target.
• Use Support or Resistance Zones as targets in reversal method.
What are the Lines?
Gray Line:
• It the day Open or can be considered as Pivot.
Red & Green ADR Zones:
• Red Zone is Resistance.
• Green Zone is Support.
• Mostly price can reverse from this Zones.
• Multiple Red and Green Lines forms a Zone.
• These lines are average levels of past days which helps to figure out the maximum and minimum price range that can be moved in that day.
• The default number of days are 5, 7 and 14. This can be customized.
Red & Green Target Lines:
• These are Target levels.
What are the Labels?
• First Number: Price of that level.
• Numbers in (): Percentage change and Change of price from LTP (Last Traded Price) to that Level.
General Tips
• It is good if Stock trend is same as that of the Index trend.
• Lots of indicators creates lots of confusion.
• Keep the chart simple and clean.
• Buy Low and Sell High.
• Master averages or 50%.
Mark MinerviniHi everyone,
Just sharing a script that I made when I began to be interested in Mark Minervini, Wiliam O'Neil, Nicolas Darvas,.. trading style.
This script displays :
- 10 EMA (orange)
- 20 EMA (blue light)
- 50 SMA (blue)
-150 SMA (green)
-200 SMA (red)
- Shows when the stock is "extended" from EMA10 to high of the candle (Works in Daily, you can adjust the % to make it match with the stock's volatility)
(Shows a red area between price and 10 EMA)
- Shows when Mark Minervini's trend template is respected by highlighting green between 150 & 200 SMA.
I Although added bollinger bands and 5 EMA for very strong stocks. (I never use them)
Have fun
Average Price LineThis was published in substitute of the original AVG price line that was already implemented into TradingVIew.
Get the average price in the desired range you want.
Carrey's Velocity and AccelerationThis is initially based on the MA Speed indicator from TradeStation () and expanded upon greatly. This implements 3 different variable MAs and calculates and plots both speed and acceleration of each. Also, a single line composite option is included for both speed and acceleration that changes color based on directional confluence of each MA's speed/acceleration. Additionally, optional labels are included to show where the 3 MAs are clustered, and a volatile move is expected, and where they are more distributed, expecting a temporary reversal.
The additional acceleration concept comes from kinematics in physics. Utilizing time-based derivatives, we can calculate the velocity and acceleration of the moving averages, which can help us identify momentum of price action and locate reversals sooner.
10yr, 20yr, 30yr Averages: Month/Month % Change; SeasonalityCalculates 10yr, 20yr and 30yr averages for month/month % change
~shows seasonal tendencies in assets (best in commodities). In above chart: August is a seasonally bullish month for Gold: All the averages agree. And January is the most seasonally bullish month.
~averages represent current month/previous month. i.e. Jan22 average % change represents whole of jan22 / whole of dec21
~designed for daily timeframe only: I found calling monthly data too buggy to work with, and I thought weekly basis may be less precise (though it would certainly reduce calculation time!)
~choose input year, and see the previous 10yrs of monthly % change readings, and previous 10yrs Average, 20yr Average, 30yr Average for the respective month. Labels table is always anchored to input year.
~user inputs: colors | label sizes | decimal places | source expression for averages | year | show/hide various sections
~multi-yr averges always print, i.e if only 10yrs history => 10yr Av = 20yr Av = 30yr Av. 'History Available' label helps here.
Based on my previously publised script: "Month/Month Percentage % Change, Historical; Seasonal Tendency"
Publishing this as seperate indicator because:
~significantly slower to load (around 13 seconds)
~non-premium users may not have the historical bars available to use 20yr or 30yr averages =>> prefer the lite/speedier version
~~tips~~
~after loading, touch the new right scale; then can drag the table as you like and seperate it from price chart
##Debugging/tweaking##
Comment-in the block at the end:
~test/verifify specific array elements elements.
~see the script calculation/load time
~~other ideas ~~
~could tweak the array.slice values in lines 313 - 355 to show the last 3 consecutive 10yr averages instead (i.e. change 0, 10 | 0,20 | 0, 30 to 0, 10 | 10, 20 | 20,30)
~add 40yr average by adding another block to each of the array functions, and tweaking the respective labels after line 313 (though this would likely add another 5 seconds to the load time)
~use alternative method for getting obtaining multi-year values from individual month elements. I used array.avg. You could try array.median, array.mode, array.variance, array.max, array.min (lines 313-355)
VWAP With EMA Overlay (Adjustable Anchor)For those who want the classic Volume Weighted Average Price and Ema on the same overlay.
This script utilizes the same protocols as the VWAP and EMA you currently use. Just frees up an indicator space.
KEEP UP TO DATE
Are you a college student or graduate?
Join College Town Trade discord for helpful community specializing in trading stocks, options, and crypto.
Our staff consists of a group of college students with 10+ years of combined experience. Collectively we have profited and made well above an average yearly salary while being in college. The community aspect is everything and the team always listens and appreciates feedback. We all earn and learn together. There are free trials in place in order for you to see what it’s all about. These are in place so we can gain your trust and show transparency!
I look forward to seeing you in the community
advBtBjDhk
Average, Median, Mode, Biggest: Pip Range Measures & LabelsApply various simple statistical measures to series of full candle ranges over user input length (in bars).
Choose between AVERAGE, MEDIAN, MODE, BIGGEST.
All calculations derive from the high-low range of a candle.
Default length = 260, the number of daily candles in a year.
MODE is calculated from pip ranges rounded to reasonable increments (to nearest 10pips foreign currencies; to nearest 100 pips for DXY ; nearest $10 for other assets). Best only use MODE for the major FX pairs encoded, and on Daily timeframe .
User input 'unit multiplier' only applies when asset is NOT a major Forex pair (unit and multiplier is auto applied for for major FX pairs).
© twingall
ln(close/20 sma) adjusted for time (BTC)(This indicator was designed for the BTC index chart)
Designed for Bitcoin. Plots the log of the close/20W SMA with a linear offset m*t, where m is the gradient I've chosen and t is the candle index. Anything above 1 is a mania phase/market cycle top. If it peaks around 0.92 and rolls over, it could be a local/market cycle top.
This will obviously not work at all in the long term as Bitcoin will not continue following the trend line on the log plot (you can even see it start to deviate in the Jan-Feb 2021 peaks where the indicator went to 1.15).
It identifies the 2011, 2013 (both of them), 2017 tops as being just above 1. It also identifies the 2019 local peak and 2021 market cycle top at ~0.94.
Feel free to change the gradient or even add a function to curve the straight line eventually. I made this for fun, feel free to use it as you wish.
Artharjan Market AnalysisHi,
I have created Artharjan Market Analysis dashboard to help traders to take complete view of the stocks of a particular sector or a benchmark index and track them simultaneously.
With this indicator dashboard, traders will be able to track 13 scripts simultaneously. This dashboard has following features and will help gain loads of valuable information during intraday as well as positional trading.
Information provided:
1] Traders will be able to track 13 scripts of their choice and get real time Buy/Sell Signals
2] Traders will be able to chose the timeframe of their choice by changing the setting called "Timeframe" OR keep the timeframe as that on the chart by keeping the Timeframe = "Chart".
3] Traders will be able to adjust the thickness of the Moving Averages Plotted on the Chart
4] Traders will be able to select the Table position and Table Text Size.
5] For volume analysis select a separate Lookback period for Daily/Weekly/Monthly timeframes and a separate Lookback period for Intraday timeframe. You may keep both same as per your choice.
6] Plot smoothed RSI (WMA of closing price used as an input for RSI) . Default smoothing used is 5. But if you dont want to use smoothing then set it to 1 and RAW RSI will be plotted.
7] For plotting RSI select a separate Lookback period for Daily/Weekly/Monthly timeframes and a separate Lookback period for Intraday timeframe. You may keep both same as per your choice.
8] For RSI set the Overbought and Oversold Levels of your choice.
9] Similarly user will be able to set its own timeframe for calculating Elders Force Index and Commodity Channel Index, and also set the Overbought and Oversold Levels of your choice.
10] Traders will have a choice to monitor Stock Price with reference to 3 Super Trend indicators based on 3 different parameters of their choice.
11] To calculate the Relative Strength and Moving Average High/Low Bands I have used the lookback period of 55 and used RMA instead of SMA or EMAs since I found that RMAs are more reliable than SMA or EMAs.
12] To measure the relative strength of a Stock w.r.t. a Benchmark Index or a Sectoral Index, user will have to select the RS - Comparative Symbol. This Comparative Symbol (Script) will be used to measure the relative strength of all the 13 scripts.
13] Kindly note that since this Dashboard will monitor 13 scripts simultaneously it will occupy huge space on the chart, hence I have made a provision to select the number of scripts to be shown on the dashboard minimum is 1 and max is 13.
14] With this indicator you will be able to monitor the price action and following indicators.
a) Last Traded Price
b) Price Change (Between Current candle and previous candle of the selected timeframe)
c) Price Change Percentage (Between Current candle and previous candle of the selected timeframe)
d) Volume Change (Between Current candle and previous candle of the selected timeframe)
e) Volume vs. SMA(Volume) with different color shaded ranging from -ve values to 100%, 100% to 200%, 200% to 500% and more than 500%
f) If Price is above VWAP then its a Buy else its a Sell signal
g) Signals based on RSI values and its corresponding relation with Overbought and Oversold Levels -such as Bullish, Bearish, Long Unwinding, Short Covering, Long Buildup, Short Buildup, Neutral levels
h) 3 Supertrend Indicators
i) Central Pivot Range (Calculated on a Daily Timeframe) - If LTP > CPR = Bullish, LTV < CPR = Bearish else Neutral
j) Elders Force Index - If EFI > 0 Buy if EFI < 0 Sell
k) Signals based on CCI values and its corresponding relation with Overbought and Oversold Levels -such as Bullish, Bearish, Long Unwinding, Short Covering, Long Buildup, Short Buildup, Neutral levels
l) Moving Average Envelop of 55 RMA calculated on Highs and Lows. If Low > Upperband = Bullish, if High < Lowerband = Bearish else Neutral
m) Relative Strength (RS). If RS of a Script in comparison to the Comparative Symbol is positive then it will shown in Green else it will be shown in Red color.
Kindly note that for Index scripts have got no volume so all indicators (Volume, SMA(Volume), VWAP and EFI) which require Volume as an Input parameter will be shown in Gray color because there is no volume data available to calculate these Indicator values and determine whether the Index is in Bullish Territory or in Bearish territory.
I hope you would enjoy using this indicator and it will act as a light house in your trading journey.
Warm regards
Rahul Desai
@Artharjan
Artharjan Volume AnalysisHi,
I have created Artharjan Volume Analysis indicator dashboard which gives following information about the volume to the traders.
It has two rows. The first row containing volume information is for the Daily Timeframe and the second row containing volume information for any other timeframe of your choice (Basically Chart timeframe)
It gives following information about volume to the traders.
1] Current Volume in Lakhs (Not in Millions) since this script was made keeping in mind Volumes of the Scripts traded in Indian Stock Exchanges. 1 Lakh = 1,00,000
2] Change from its previous Volume. If the change is positive it will be highlighted in Green else in Red.
3] 25 period SMA of the Volume (This period is a Long Term Moving Average and its a customizable parameter which can be changed in Indicator Settings)
4] Current Volume as a percentage of Long term SMA( Volume). If the percentage is positive it will be highlighted in Green else in Red.
5] High Volume during the Lookback period
6] Low Volume during the Lookback period
7] Is current Volume equal to Min Level or Max Level? Or its between Min Max Levels.
8] Is the current Volume rising over past 5 candles or is it falling over past 5 candles or its Swinging? (Short Term Period which is a customizable parameter and it can be changed in the Indicator Settings)
9] Current Volume as a percentage of Short term SMA( Volume). If the percentage is positive it will be highlighted in Green else in Red.
The 1st row will be shown only when the Chart Timeframe is a Daily Timeframe.
The 1st and the 2nd row will be shown only when the Chart Timeframe is not a Daily Timeframe.
With this information regarding volume, traders can identify whether the current volume is at its Highest Levels or at its Lowest Levels, can identify whether volume is rising or volume is falling in accordance to the price action and then take trading decisions.
I hope you would enjoy using this indicator in your day to day trading journey.
Regards
Rahul Desai
@Artharjan.
MACD Multi Time Frame with Histogram MAThis is a modification of LonesomeTheBlue's MACD Multi Time Frame indicator to include also moving averages applied to histogram to filter-out important moves.
You can select average period and multiplier to highlight the type of movements that interest you most.
Happy trading!
Weeknights Momentum CloudA very simple moving average cloud to assess momentum. This indicator is not meant to be used for entry triggers, but rather to see when momentum may be shifting to the downside
Can be used on any time frame, and should be used in conjunction to your current trading plan
Distance From Moving AverageThis indicator shows the distance between the current price and the Moving Average price.
Key Features:
Show the distance between price and Moving Average (Read Distance Calculation for more information)
Show Historic Highs and Lows
Show Highest High and Lowest Low
Show current Highest High, current Lowest Low and current distance
Key Indicator Settings:
1. Distance Calculation
There are two ways to calculate the distance:
Spread - Calculate the difference between the price and the moving average
Percentage - Calculate the percentage change between the price and the moving average
2. Moving Average Types
There are 5 different Moving Averages:
EMA
SMA
WMA
VWMA
HMA
3. Highest High and Lowest Low
You can show or hide the Highest High and the Lowest Low plots of the series
4. Historic Highs and Lows
You can show or hide past Highs and Lows of the series
Lookback Length - Let's you adjust the frequency of local highs and lows of the series
5. Current Values
You can show or hide current value labels
SMA RegimeProvides a color coded indicator based upon both the slope of a moving average of choice, and the asset's position in relation to that moving average. If the specified moving average is downward sloping and the asset closes below the moving average the indicator will be red. If the specified moving average is upward sloping and the asset closes above the moving average the indicator will be green. Any other combination of these two factors will color the indicator yellow indicating indecision.