Re: Already Converted TradingView Indicators to MT4 Indicators

573
Agree, it would be convenient to use several sessions (calculation periods) on the chart. I tried to do this on TV and saw what I highlighted in the screenshot - overlapping grids. It occurs because the indicator, apparently, incorrectly defines one of the calculation period limiters. When we write that the end of the period is 20:00, it means that the candle starting at 20:00 is not included in the calculation. It is also counted in the indicator, and this is an error.
I did some magic with the indicator parameters and got the correct grid so that the period would end before 11:00, I placed the last candle starting at 9:45 (7:45 GMT).

DownloadRe: Already Converted TradingView Indicators to MT4 Indicators

575
CrystalG wrote: Mon Apr 07, 2025 2:38 am Hi guys!

just a request please if anyone can convert this Tradingview indicator into mt5 it would really be a good addition into our trading system. this will help with supply and demand trading.
https://www.tradingview.com/script/flJR ... dy-candle/
50% Body Candlestick
Rgds
RM
These users thanked the author didichung for the post:
CrystalG


Re: Already Converted TradingView Indicators to MT4 Indicators

577
Доброго вечера всем! есть возможность конвертировать индикатор с Trading View TUE ADX/MACD Confluence в MT4? C alerтом.
Исходный код
// Этот исходный код регулируется условиями Mozilla Public License 2.0 на https://mozilla.org/MPL/2.0/
// Написано TradersUltimateEdge
// Код предоставлен с открытым исходным кодом, не стесняйтесь использовать его для любых целей, кроме перепродажи

//@version=5
indicator("TUE ADX/MACD Confluence V1.0", overlay=true)

showsignals = input(true, title="Показывать сигналы на покупку/продажу")
showcandlecolors = input(true, title="Показать цвета свечей")
length = input(14, title="Длина ADX")
smoothing = input(10, title="Сглаживание ADX")
macdsource = input(close, title="Источник MACD")
macdfast = input(12, title="Быстрая длина MACD")
macdslow = input(26, title="Медленная длина MACD")
macdsignal = input(9, title="Длина сигнала MACD")
colorup = input(color.green, title="Цвет свечи вверх")
colordown = input(color.red, title="Цвет свечи вниз")


/////////////////////////////////////////////////////////////////////////////////////////////// ADX И MACD CALC
[diplus, diminus, adx] = ta.dmi(length, smoothing)

[macdline, signalline, histline] = ta.macd(macdsource, macdfast, macdslow, macdsignal)

TRADE CALC

longcheck = diplus > diminus и macdline > signalline
shortcheck = diminus > diplus и signalline > macdline

int trade = 0

//Открыть из ничего,

если trade == 0 и longcheck
trade := 1

else if trade == 0 и shortcheck
trade := -1

//Reversal

else if trade == 1 and shortcheck
trade := -1

else if trade == -1 и longcheck
trade := 1

//Сохранять статус-кво до пересечения

else
trade := trade[1]

PLOT

colors = longcheck ? colorup : shortcheck ? colordown : color.white

plotcandle(open, high, low, close, color = showcandlecolors ? colors : na)

plotshape(trade[1] != 1 and trade == 1 and showsignals, style=shape.labelup, text='BUY', textcolor=color.white, color=color.green, size=size.small, location=location.belowbar)
plotshape(trade[1] != -1 и trade == -1 и showsignals, style=shape.labeldown, text='SELL', textcolor=color.white, color=color.red, size=size.small, location=location.abovebar)

///////////////////////////////////////////////////////////////////////////////////////////// ALERTS

alertcondition(trade[1] != 1 and trade == 1, "LONG")
alertcondition(trade[1] != -1 и trade == -1, "SHORT")


Who is online

Users browsing this forum: jackboton, kevinarea, witori and 55 guests