Multiple Ema 20/50/100Multiple Ema 20/50/100 and you can add more EMA Plot easily by changing the codes.
Tìm kiếm tập lệnh với "100年黄金价格走势"
50, 100, 200 EMAsA simple script that displays the 50, 100, and 200-period exponential moving averages. Reduce clutter by combining them into one indicator!
50, 100, 200 SMAsA simple script that displays the 50, 100, and 200-period simple moving averages. Reduce clutter by combining them into one indicator!
50,100,200 MA by CryptoLife71(FIXED)Updated the code by CryptoLife71 so that the 200ma shows correctly.
EMA 20/50/100/200Plots exponential moving average on four timeframes at once for rapid indication of momentum shift as well as slower-moving confirmations.
Displays EMA 20, 50, 100, and 200... default colors are hotter for faster timeframes, cooler for slower ones
DECL: 3 X Moving Average (50, 100 and 200 day)Basic Moving Average with 3 different intervals. Default: 50 day (blue), 100 day (red) and 200 day (purple)
BB 100 with Barcolors6/19/15 I added confirmation highlight bars to the code. In other words, if a candle bounced off the lower Bollinger band, it needed one more close above the previous candle to confirm a higher probability that a change in investor sentiment has reversed. Same is true for upper Bollinger band bounces. I also added confirmation highlight bars to the 100 sma (the basis). The idea is that lower and upper bands are potential points of support and resistance. The same is true of the basis if a trend is to continue. 6/28/15 I added a plotshape to identify closes above/below TLine. One thing this system points out is it operates best in a trend reversal. Consolidations will whipsaw the indicator too much. I have found that when this happens, if using daily candles, switch to hourly, 30 min, etc., to catch a better signal. Nothing moves in a straight line. As with any indicator, it is a tool to be used in conjunction with the art AND science of trading. As always, try the indicator for a time so that you are comfortable enough to use real money. This is designed to be used with "BB 25 with Barcolors".
BB 100 with Barcolors6/19/15 I added confirmation highlight bars to the code. In other words, if a candle bounced off the lower Bollinger band, it needed one more close above the previous candle to confirm a higher probability that a change in investor sentiment has reversed. Same is true for upper Bollinger band bounces. I also added confirmation highlight bars to the 100 sma (the basis). The idea is that lower and upper bands are potential points of support and resistance. The same is true of the basis if a trend is to continue. Nothing moves in a straight line. As with any indicator, it is a tool to be used in conjunction with the art AND science of trading. As always, try the indicator for a time so that you are comfortable enough to use real money. This is designed to be used with "BB 25 with Barcolors".
BB 100 with BarcolorsI cleaned up the highlight barcolor to reflect red or lime depending if it closed > or < the open.
The description is in the code. you want to catch bounces off the 25 (upper or lower) and 100 (upper or lower).
Works well on the hourly and 30 min charts. Haven't tested it beyond that. Haven't tested Forex, just equities.
EMA Keltner Channel 1D100/200 EMAs, along with Keltner Bands based off them. Colors correspond to actions you should be ready to take in the area. Use to set macro mindset.
Uses the security function to display only the 1D values.
Red= Bad
Orange = Not as Bad, but still Bad.
Yellow = Warning, might also be Bad.
Purple = Dip a toe in.
Blue = Give it a shot but have a little caution.
Green = It's second mortgage time.
Manuel_Air//@version=6
indicator(title="Manuel_Air", shorttitle="Manuel_Air", overlay=true)
// ====== Layout / Estilo ======
posInput = input.string(defval="Top Right", title="Posición tabla", options= )
Table_Position = switch posInput
"Top Left" => position.top_left
"Top Center" => position.top_center
"Top Right" => position.top_right
"Middle Left" => position.middle_left
"Middle Center" => position.middle_center
"Middle Right" => position.middle_right
"Bottom Left" => position.bottom_left
"Bottom Center" => position.bottom_center
"Bottom Right" => position.bottom_right
label_size = input.string(defval="Normal", title="Tamaño texto", options= )
Tsize = switch label_size
"Tiny" => size.tiny
"Small" => size.small
"Normal" => size.normal
"Large" => size.large
"Huge" => size.huge
// ====== Inputs checklist y nombres personalizables ======
check1 = input.bool(true, "HTF Alignment")
check2 = input.bool(true, "Liquidity Sweep")
check3 = input.bool(true, "Boss + Imbalance")
check4 = input.bool(true, "71% Retracement")
showTradeScore = input.bool(true, "Mostrar Trade Score")
name1 = input.string("HTF Alignment", "Nombre Check 1")
name2 = input.string("Liquidity Sweep", "Nombre Check 2")
name3 = input.string("Boss + Imbalance", "Nombre Check 3")
name4 = input.string("71% Retracement", "Nombre Check 4")
tableTitle = input.string("Checklist 📝", "Título tabla")
headerText = input.string("Manuel_Air", "Texto header")
// ====== Colores personalizables ======
colorChecked = input.color(color.green, "Color ✔")
colorUnchecked = input.color(color.red, "Color ✘")
colorHeader = input.color(color.black, "Color Header")
colorRow = input.color(color.new(color.black, 85), "Color Filas")
colorTradeHigh = input.color(color.green, "Color Trade Score Alto")
colorTradeMid = input.color(color.yellow, "Color Trade Score Medio")
colorTradeLow = input.color(color.red, "Color Trade Score Bajo")
colorText = input.color(color.white, "Color texto filas")
// ====== Preparar checklist ======
checks = array.new_bool()
names = array.new_string()
array.push(checks, check1)
array.push(checks, check2)
array.push(checks, check3)
array.push(checks, check4)
array.push(names, name1)
array.push(names, name2)
array.push(names, name3)
array.push(names, name4)
numChecks = array.size(checks)
// ====== Calcular Trade Score ======
checkedRows = 0
for i = 0 to numChecks - 1
checkedRows += array.get(checks, i) ? 1 : 0
tradeScore = math.round((checkedRows / numChecks) * 100)
tradeScoreColor = tradeScore >= 75 ? colorTradeHigh : tradeScore >= 50 ? colorTradeMid : colorTradeLow
// ====== Definir filas totales ======
totalRows = 1 + 1 + numChecks + (showTradeScore ? 1 : 0) // Header + título checklist + checks + Trade Score
var table myTable = table.new(position = Table_Position, columns = 2, rows = totalRows, border_width = 1, border_color = color.gray)
if barstate.islast
rowIndex = 0
// Header (merge 2 columnas)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = headerText, text_size = Tsize, text_color = colorText, bgcolor = colorHeader)
table.merge_cells(table_id = myTable, start_column = 0, start_row = rowIndex, end_column = 1, end_row = rowIndex)
rowIndex += 1
// Título checklist (merge)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = tableTitle, text_size = Tsize, text_color = colorText, bgcolor = colorHeader)
table.merge_cells(table_id = myTable, start_column = 0, start_row = rowIndex, end_column = 1, end_row = rowIndex)
rowIndex += 1
// Filas checklist
for i = 0 to numChecks - 1
checked = array.get(checks, i)
name = array.get(names, i)
table.cell(table_id = myTable, column = 0, row = rowIndex, text = (checked ? "✔" : "✘"), text_size = Tsize, text_color = (checked ? colorChecked : colorUnchecked), bgcolor = colorRow)
table.cell(table_id = myTable, column = 1, row = rowIndex, text = name, text_size = Tsize, text_color = colorText, bgcolor = colorRow)
rowIndex += 1
// Trade Score
if showTradeScore
table.cell(table_id = myTable, column = 0, row = rowIndex, text = str.tostring(tradeScore) + "%", text_size = Tsize, text_color = tradeScoreColor, bgcolor = colorRow)
table.cell(table_id = myTable, column = 1, row = rowIndex, text = "Trade Score", text_size = Tsize, text_color = colorText, bgcolor = colorRow)
ema_stoploss_libLibrary "ema_stoploss_lib"
This library derives stop-loss levels from a dynamic list of EMA lengths. It computes each EMA internally (so dynamic lengths are allowed), keeps strict side filtering (long: only EMAs below the source; short: only EMAs above), sorts by distance to the source, and returns the n-th nearest value plus the original index of that EMA length.
get_stop_loss(index)
Initializes (once) a default length list:
21, 50, 100, 200, 250, 500, 750, 1000.
Returns:
sl_buy / sl_sell: selected EMA values
nearest_buy_idx / nearest_sell_idx: 0-based indices in the original lensArr
Parameters & Notes
Index (input in the example; default 2) is 0-based:
0 = nearest, 1 = second nearest, 2 = third, etc.
If there aren’t enough EMAs on the requested side, the value becomes na (plot will skip that bar).
Strict filtering means no fallback to the opposite side.
Performance:
EMA updates are O(n) per bar (n = number of lengths).
Sorting is O(k²) (k = candidates on the chosen side) — negligible for small lists.