Page 179 of 180
Re: Coding Help
Posted: Wed Jul 02, 2025 6:38 pm
by sipit0123
Hi! Is it possible to request an indicator here? If so, I would like to ask someone. Basically it is a Market Structure indicator. For rules, it draws a trendline whenever a "fractal" is made (or the candle is broken on the other side). For example, in a series of bullish candles, an up trendline is drawn then a down trendline will be drawn when the latest candle's low is broken. For outside candles, the current trend will first be prioritized before the opposing (unless lower TF data is possible to access). I am attaching an example of what I meant. If this is also possible on MTF setup then that would be better as we can "map" the choppiness inside the candle (very helpful for outside bars). Sorry If I posted on wrong forum and thanks in advance
Tradingview pine scripts or codes to apply on chart
Posted: Mon Jul 14, 2025 10:53 pm
by saurabhjadhav
Dear Team ,
please help me with Pine scripts of all the indicators which can be replicated in Tradingview.
Re: Tradingview pine scripts or codes to apply on chart
Posted: Tue Jul 15, 2025 2:31 am
by Cagliostro
saurabhjadhav wrote: Mon Jul 14, 2025 10:53 pm
Dear Team ,
please help me with Pine scripts of all the indicators which can be replicated in Tradingview.
Hello, and welcome.
First message, a request for help with all the indicators ... etc
1) Who are you?
2) Why should we help you?
3) What are your plans to contribute to the community?
4) Who is the "team" you are addressing the request? Are you talking to your workmates?
A strong suggestion, if you want to have a great experience here.
Rewrite this message, and start it with... Hello everyone, I am x, y, and z.
Getting too old for this kind of attitude...
Re: Coding Help
Posted: Mon Aug 04, 2025 6:22 pm
by saurabhjadhav
Hi Team, Sorry for earlier request.
I am Saurabh and I trade in Indian Market Mostly NIFTY 50. majorly work with indicators like Fib, Gann Fann and ICT Kill zones.
following is the code on custom Fibonacci level indicator in Trading View (Pine Script v5) which i curretly trade by manually calculating the levels.
FOLLOWING IS THE LOGIC
Fibonacci Ratios:
0.0236 (2.36%)
0.0382 (3.82%)
0.0500 (5.00%)
0.0618 (6.18%)
0.0786 (7.86%)
From Significant High:
Subtract 0.0236 from the high.
Subtract other ratios from the closing price of the high bar.
From Significant Low:
Add 0.0236 to the low.
Add other ratios to the closing price of the low bar.
based on above logic i have developed a code but not able to complete it, have tried on Tradingview but its not giving its output. currently i manually calculate the logic and trade on the reversal points. this fib only need Significant HIGH or Significant LOW which can predict the upcoming reversal points.
//@version=5
indicator("Custom Fib Levels (High & Low Based)", overlay=true)
// === Parameters ===
length = input.int(100, title="Lookback Period", minval=1)
// === Find Significant High and Low ===
var float sigHigh = na
var float sigLow = na
var int highBarIndex = na
var int lowBarIndex = na
// Find highest high and lowest low
sigHigh := ta.highest(high, length)
highBarIndex := ta.highestbars(high, length)
sigHighClose = close[highBarIndex]
sigLow := ta.lowest(low, length)
lowBarIndex := ta.lowestbars(low, length)
sigLowClose = close[lowBarIndex]
// === Define Ratios ===
r1 = 0.0236
r2 = 0.0382
r3 = 0.0500
r4 = 0.0618
r5 = 0.0786
// === Levels from High ===
levelH1 = sigHigh - sigHigh * r1 // from high
levelH2 = sigHighClose - sigHighClose * r2
levelH3 = sigHighClose - sigHighClose * r3
levelH4 = sigHighClose - sigHighClose * r4
levelH5 = sigHighClose - sigHighClose * r5
// === Levels from Low ===
levelL1 = sigLow + sigLow * r1 // from low
levelL2 = sigLowClose + sigLowClose * r2
levelL3 = sigLowClose + sigLowClose * r3
levelL4 = sigLowClose + sigLowClose * r4
levelL5 = sigLowClose + sigLowClose * r5
// === Plotting From High ===
plot(levelH1, title="High - 2.36% (from High)", color=color.red)
plot(levelH2, title="High - 3.82% (from Close)", color=color.red, style=plot.style_line)
plot(levelH3, title="High - 5.00% (from Close)", color=color.orange)
plot(levelH4, title="High - 6.18% (from Close)", color=color.yellow)
plot(levelH5, title="High - 7.86% (from Close)", color=color.green)
// === Plotting From Low ===
plot(levelL1, title="Low + 2.36% (from Low)", color=color.purple)
plot(levelL2, title="Low + 3.82% (from Close)", color=color.fuchsia)
plot(levelL3, title="Low + 5.00% (from Close)", color=color.aqua)
plot(levelL4, title="Low + 6.18% (from Close)", color=color.blue)
plot(levelL5, title="Low + 7.86% (from Close)", color=color.navy)
// Optional: Show High/Low levels for reference
plot(sigHigh, title="Significant High", color=color.gray, style=plot.style_linebr)
plot(sigLow, title="Significant Low", color=color.gray, style=plot.style_linebr)
Re: Coding Help
Posted: Thu Sep 04, 2025 5:07 am
by Roets1
Hi guys. Will someone please assist with the indicator code attached.
So I have converted the mt4 code to mt5 with the help of Chatqbt and the signal arrow appears in mt5 like it does in mt4 but It seems like it does not want to refresh the arrow in mt5.... even if I have a auto refresh ex5 file loaded on chart, it refreshes when I change between timeframes but in mt4 it does not need to refresh to display. The indicator does repaint but very little.
Your help will be greatly appreciated.
Re: Coding Help
Posted: Fri Sep 26, 2025 5:42 am
by SLN
Hi All,
I am trying to get this EA to work on a real account but it is not putting in any trades. My MT4 is 1441 build version 4.i recompiled it on metaeditor and came up with zero errors.Can any of the esteemed coders look into this please. Appreciate your help.
request mods to delete this post please.thank you
Re: Coding Help
Posted: Fri Sep 26, 2025 7:50 am
by kvak
SLN wrote: Fri Sep 26, 2025 5:42 am
Hi All,
I am trying to get this EA to work on a real account but it is not putting in any trades. My MT4 is 1441 build version 4.i recompiled it on metaeditor and came up with zero errors.Can any of the esteemed coders look into this please. Appreciate your help.
This code is
decompiled.
Re: Coding Help
Posted: Fri Sep 26, 2025 8:59 am
by SLN
ok. i didnt realise.thank you
Re: Coding Help
Posted: Wed Oct 01, 2025 5:35 am
by Akul82
Hi everyone! I'm not a coder, but with ChatGPT i tried to create an indicator ASI (Accumulative Swing Index, code is avalaible on codebase) with several moving averages on the Asi-line that you can choose.
But there is a problem, that i can solve and AI too

: the moving average line does not draw correctly on the chart, especially during periods of high volatility; it seems to lag. When I refresh the indicator from the setup window, the line initializes correctly. Can someone fix this? Here are some screenshots so you can understand the issue immediately.
In the indicator i chose a SMA 30 lenght (red line). I drag the indicator Movin average (default) into the window of indicator (white dashed line).
Re: Coding Help
Posted: Wed Oct 01, 2025 7:12 am
by mrtools
Akul82 wrote: Wed Oct 01, 2025 5:35 am
Hi everyone! I'm not a coder, but with ChatGPT i tried to create an indicator ASI (Accumulative Swing Index, code is avalaible on codebase) with several moving averages on the Asi-line that you can choose.
But there is a problem, that i can solve and AI too

: the moving average line does not draw correctly on the chart, especially during periods of high volatility; it seems to lag. When I refresh the indicator from the setup window, the line initializes correctly. Can someone fix this? Here are some screenshots so you can understand the issue immediately.
In the indicator i chose a SMA 30 lenght (red line). I drag the indicator Movin average (default) into the window of indicator (white dashed line).
Hello, made this version maybe it will help.