TradingView
DDMyke
1. Jan. 2021 12:19

SwingScalpin MA's 

Tezos / TetherUSBinance

Beschreibung

Default

HMA's + Trend Signals

Default SMA's

ALMA

BarColoring



The idea behind this script was to incorporate a few different moving average types into 1 indicator so multiple trading strategies could be implemented depending on Price Action. This indicator includes 3 HMA's, 2 user defined EMA/SMA's, 1 ALMA (which also is used for the bar coloring), and Trend signals at the bottom of the chart (which are defined by the 1st MA). By default all of the Moving Averages are set to false because they aren't meant to be used together unless you so chose to. The only feauture initially being shown are the Trend signals at the bottom of the screen.
HMA's - The default lengths for the HMA's are 7, 14, and 21.
This is not Financial Advice nor am I saying this works all of the time but here are a few examples of how I've traded the HMA's... OF course thid depends on overall PA but the idea is to enter and exit when all
three HMA's turn Green or Red...
For quicker entries and exits, you could enter when the Fast HMA crosses the Medium HMA and exit when the it crosses back over/under the Medium HMA.
For more of a swing trade and when there's definitely an established trend, I would stay in the trade until Fast HMA crosses under the Slow HMA, otherwise it might just be a normal retrace prior to making another move up.
When PA is ranging but not really trending in either direction, I'll use the Slow HMA as somewhat of a Trailing SL.
The 2 user defined moving averages can either be an EMA or SMA. The 1st MA is set to the 200 SMA by default, which also triggers the Trend signals at the bottom of the chart. The 2nd MA is set to the 6 SMA by default.
The ALMA is set to 50 by default, which is also used for the bar coloring. Lastly, all of the MA's change color depending on the trend.
Kommentare
Bun6197
also i am using this condition for alerts:-

fastHMABuyCondition = crossover(Fhull, 0) fastHMASellCondition = crossunder(Fhull, 0) // Plot Buy and Sell signals on the chart plotarrow(series=fastHMABuyCondition ? 1 : na, colorup=color.green, offset=-1) plotarrow(series=fastHMASellCondition ? -1 : na, colordown=color.red, offset=-1) // Alert conditions for Buy and Sell alertcondition(fastHMABuyCondition, title="Buy Alert", message="Fast HMA crossed above zero - Potential Buy Signal") alertcondition(fastHMASellCondition, title="Sell Alert", message="Fast HMA crossed below zero - Potential Sell Signal")
Bun6197
hi , i am only using fast ma, and sometimes it is getting repainted , can you solve this issue.
Adler_Mega
Hi!
Good Job – Skript SwingScalpin MA's!
Would be possible to add Trend Signal (crossover Buy and crossunder Sell signals) in addition to color change (plotshape and alertcondition?
Practically Signal Alert with every color change for (Fhullplot, Mhullplot and Shullplot)?
Thanks!
sachin139
Very good indicator ... Thanks a lot :)
Mehr