TradingView تردنج فيو mt4 mt5
1.02K subscribers
922 photos
6 videos
1.98K files
267 links
🚀 Welcome to the ultimate Trading Indicators Hub! 📊 We provide premium trading indicators for TradingView, MT4, and MT5 to help you master the Forex, Stocks, and Cryptocurrency markets. Get access to powerful technical analysis tools, including trend-
Download Telegram
Forwarded from Deleted Account
New Text Document (4).txt
1.1 KB
very easily ... you just copy and paste it..
Forwarded from ◤ImanPJN◢ | Don't DM You First!
CashData.txt
1.8 KB
it's main source
//@version=6
indicator('Pre/Post-Market', overlay = true)

[rO,rH,rL,rC] = request.security(ticker.new(syminfo.prefix, syminfo.ticker, session.regular), '1', [open,high,low,close], barmerge.gaps_off)
[O,H,L,C] = request.security(ticker.new(syminfo.prefix, syminfo.ticker, session.extended), '1', [open,high,low,close], barmerge.gaps_on)


var Tab = table.new(position = position.middle_right, columns = 4, rows = 5, bgcolor = color.yellow, border_width = 1)
if barstate.isfirst
Tab.cell(1, 0, text = "Reg", bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(2, 0, text = "Ext", bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(0, 1, text = "O ", bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(0, 2, text = "H ", bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(0, 3, text = "L ", bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(0, 4, text = "C ", bgcolor=color.teal, text_color = #FFFF00)

if barstate.islast
Tab.cell(1, 1, text = str.tostring(rO,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(1, 2, text = str.tostring(rH,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(1, 3, text = str.tostring(rL,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(1, 4, text = str.tostring(rC,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(2, 1, text = str.tostring(O,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(2, 2, text = str.tostring(H,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(2, 3, text = str.tostring(L,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
Tab.cell(2, 4, text = str.tostring(C,format.mintick), bgcolor=color.teal, text_color = #FFFF00)
//@version=6
indicator("US stocks above Pre-Mkt", "Pre-Mkt")
import TradingView/ta/8
//script for Wathchlist alerts at 30second intervals (PROBLEM is, the alert is fired even when the present 30 second candle open is below PMH(Pre-mkt High), I want the Watchlist alert to fire only when the Open of the 30 second candle is above PMH)

// For Pre-Mkt Lvls
var PMH =0.00 //pre-mkt High
if session.ispremarket and session.isfirstbar
PMH := high
else if session.ispremarket
PMH := math.max(PMH, high)

PM_Open =ta.valuewhen(session.isfirstbar, open, 0) //Pre-Mkt Open

Present_Day_High = ta.highestSince(session.isfirstbar,high) // present Day high including Pre-mkt open high

// Regular Trading Hours levels
Day_Open =ta.valuewhen(session.isfirstbar_regular, open, 0)
RTH_DayHigh = ta.highestSince(session.isfirstbar_regular,high)


[EMA20,CL1d,Hd,Ld,ClT]= request.security(syminfo.tickerid,"D",[ta.ema(close,20),close,high,low,ta.highest(close,10)]) //Daily levels
[VSM20,op_1,hi_1,lw_1,cl_1,vol_1]=request.security(syminfo.tickerid,"1",[ta.sma(volume,20),open,high,low,close,volume]) //For 1 minute volume values

var C1 = 0.0 // Previous Day close
if session.isfirstbar
C1 := CL1d[1]

// // watchlist Alert set at Chart of 30 second Time interval (PROBLEM is, the alert is fired even when the present 30 second candle open is below PMH(Pre-mkt High), I want the Watchlist alert to fire only when the Open of the 30 second candle is above PMH)

if open>PMH and RTH_DayHigh==Present_Day_High and RTH_DayHigh>=PMH and (close>C1) and close>Day_Open and Day_Open>EMA20 and close>=ClT and (vol_1>=VSM20 ) and (close>open or close>close[1]) and ta.barssince(session.isfirstbar)>10
alert("🚀"+str.tostring(syminfo.ticker) + str.format(" @ {0}!\n",close),freq =alert.freq_once_per_bar)
He realizado una prueba. Le he pedido a Gemini que convierta este fichero MT5 a Pine Script.
Resultado devuelto:
//@version=5
indicator(title="Flujo Velas", shorttitle="FlujoVelas", overlay=true)

//--- Input para ajustar el desplazamiento de las flechas
shiftArrow = input.integer(5, title="Desplazamiento Flechas F_long/F_short")
shiftACF = input.integer(15, title="Desplazamiento Flechas Change++/--")

//--- Calcular las condiciones para las señales "Change"
candle1 = close > open and close > open[1]
candle2 = close < open and close < open[1]
cfPositive = candle1 and not (close[1] > open[1])
cfNegative = candle2 and not (close[1] < open[1])

//--- Calcular las condiciones para las señales "F_long" y "F_short"
bodyTFX = math.abs(close - open)
rangoTFX = high - low
Q = bodyTFX / rangoTFX

fLongCondition = Q > 0.5 and close > high[1] and close[1] < high[2]
fShortCondition = Q > 0.5 and close < low[1] and close[1] > low[2]

//--- Dibujar las señales "Change++"
plotchar(cfPositive, title="Change++", char=syminfo.up_arrow, location=location.belowbar, color=color.darkgreen, offset=-shiftACF)

//--- Dibujar las señales "Change--"
plotchar(cfNegative, title="Change--", char=syminfo.down_arrow, location=location.abovebar, color=color.darkred, offset=shiftACF)

//--- Dibujar las señales "F_long"
plotchar(fLongCondition, title="F_long", char="●", location=location.belowbar, color=color.green, offset=-shiftArrow)

//--- Dibujar las señales "F_short"
plotchar(fShortCondition, title="F_short", char="●", location=location.abovebar, color=color.red, offset=shiftArrow)
Please open Telegram to view this post
VIEW IN TELEGRAM