Gold signals on the closed candle, with the stop and three targets drawn at once
Gold Signal Premium marks a Buy or a Sell on your TradingView chart when a closed candle crosses the 9 EMA with RSI(14) on the same side of 50, and draws the whole plan on that bar: the entry, a stop beyond the last four candles and three take profits in fixed steps.
- Buy and Sell labels decided on the closed candle: the close against the 9 EMA, RSI(14) against 50.
- Entry, a stop beyond the last four candles and TP1, TP2 and TP3 in steps of 10.0 on gold.
- Up to three order blocks and three fair value gaps per side, removed once price breaks or fills them.
- Four alert conditions plus one alert message that carries the entry, the stop and all three targets.
- The full Pine Script source code. Paste it into the Pine Editor, save, and add “Gold Signal Premium [AlgoFXStore]” to your chart.
- A 13-page PDF manual with installation, every setting and how to read the chart. One-time €47.

See Gold Signal Premium on a real chart
Press play; use the full-screen button to see every detail.
A signal without a stop and targets is only half a decision
Plenty of gold traders already watch a short EMA and RSI. The cross itself is easy to see. The work starts after it: where does the stop go, how far away are the targets, and is there an old zone right in front of the entry that price likes to turn at? On a 15-minute gold chart a candle can travel several dollars while you are still measuring, and the plan you finally make is different every time because it was never written down.
Two mistakes come from doing it by hand. Targets get placed at round numbers that have nothing to do with the stop, so one trade risks ten to make five and the next risks five to make thirty. And the zones that matter get ignored: an order block a few dollars above a Buy, or an unfilled gap below a Sell, sits exactly where the first target should be paid.
Gold Signal Premium does the measuring at the close of the signal candle. The stop comes from the real lows or highs of the candles before the signal, the three targets sit at fixed steps from the entry, and the order blocks and fair value gaps nearby are already on the chart. It keeps one plan on the screen, the newest, so you always look at the current setup instead of a history of old arrows.
Everything Gold Signal Premium draws on your chart
Read from the shipped Pine Script code.
- 'Buy' label (green at 10 % transparency, white text, below the candle) or 'Sell' label (red, above the candle) on the signal candle
- Trade plan for the newest signal: a red stop-loss zone between entry and SL and a green take-profit zone between entry and TP3, 80 % transparent, fading out over the last 15 bars in 6 steps, extended 10 bars right of the current bar while the trade runs, ending at the exit bar once SL or TP3 is hit
- Plan lines (width 1) with labels at their right end: 'Stop Loss: <price>' (red), 'Entry: <price>' (grey), 'Take Profit 1: <price>', 'Take Profit 2: <price>', 'Take Profit 3: <price>' (green)
- Hit marks (input 'Mark TP / SL hits', on): a tiny green circle on the bar where a take profit is first reached and a red circle where the stop is reached
- 9 EMA line (blue, width 2)
- Candles coloured by trend (input 'Color candles by trend', on): green when close > EMA and RSI > 50, red when close < EMA and RSI < 50, grey otherwise
- Order blocks: blue 'Bull OB' and magenta 'Bear OB' boxes, 82 % transparent with a border, extended 10 bars right, up to 3 per side, removed when a close goes through them
- Fair value gaps: cyan and orange 'FVG' boxes of three-candle gaps of at least 0.25 x ATR(14), up to 3 per side, removed when a wick fills them
- Orange note top right 'Designed for 15m: current TF: <tf>' when the chart is not on 15 minutes
- AlgoFXStore watermark bottom right
From a closed candle to a full trade plan
Every part is computed from the chart's own bars by the shipped Pine Script, in this order. There is no data from other timeframes or other symbols.
- 1
The trend condition on every candle
A candle is bullish when it closes above the EMA (EMA Length 9) and RSI (RSI Length 14) is above the RSI Level of 50; it is bearish when both are below. With Color candles by trend on, bullish candles turn green, bearish candles red and everything in between grey. The colour follows the forming candle, so it can change before the candle closes.
- 2
A signal is the first closed candle
A Buy prints when the bullish condition is true on a closed candle and was not true on the candle before; a Sell is the mirror. The script tests barstate.isconfirmed, so nothing is decided on the forming candle. The optional Hide same-direction signals while a trade is active, off by default, stops a second Buy while a Buy plan is still running, and the same for Sell.
- 3
The plan is fixed at the signal
The entry is the signal candle's close. For a Buy the stop sits at the lowest low of the 4 candles before the signal candle minus the SL Buffer (0.0 by default); for a Sell at the highest high plus the buffer. TP1, TP2 and TP3 are the entry plus or minus 1, 2 and 3 times the TP Step of 10.0. A red zone spans entry to stop, a green zone entry to TP3.
- 4
Hits are tracked from the next candle
From the candle after the signal, the stop is checked first: a low at or below it ends a Buy, a high at or above it ends a Sell. Otherwise each target gets a small green circle the first time price reaches it, and the stop a red one. The plan ends at the stop or at TP3. A new signal deletes the previous label, its marks and its plan.
- 5
Order blocks from closed breaks
Swings are confirmed by 10 bars on each side (Swing length). When a closed candle breaks above the last swing high, the lowest candle since that swing becomes a blue Bull OB box; a closed break below the last swing low turns the highest candle into a magenta Bear OB. Up to 3 per side stay, reaching 10 bars right, and a close through a block removes it.
- 6
Fair value gaps filtered by size
A bullish gap is a third candle whose low stays above the first candle's high, shown in cyan; a bearish gap is the mirror, in orange. Only gaps of at least 0.25 times ATR(14) are drawn, at the close of the third candle, and up to 3 per side are kept. A wick that fills a gap removes it, unless you switch off the removal.
Gold Signal Premium on 12 gold charts
Every chart below is a screenshot of TradingView itself with the shipped Gold Signal Premium [AlgoFXStore] attached at its default settings. Gold Signal Premium is built for gold, so the charts show it on several data feeds and timeframes rather than on other markets. They show what the indicator draws; they are not trading results. Tap or click any chart to open it full size.












Gold Signal Premium on a real TradingView chart, frame by frame
Frames of a screen recording of the shipped indicator at its default settings, as the chart updates. Nothing is edited into the chart.




How to turn a label into a trade you can size
The indicator draws, measures and alerts. The decision, the order and the position size stay with you; this is the routine the PDF guide walks through, worth practising on TradingView's Paper Trading account first.
- 1
Wait for the close on 15 minutes
The defaults are made for XAUUSD on the 15-minute chart, and an orange note in the top right reminds you when the chart is on another timeframe. Let the candle close: the Buy or Sell label and the alert with the full plan arrive at the close, once per bar. A label on the chart is a finished signal, not a candidate that can still vanish.
- 2
Look at what is in the way
Before you act, check the zones. A Buy just under a magenta bear order block or an orange bearish gap, or a Sell just above a blue bull block, has its targets behind a place where price may turn. Grey candles on both sides of the signal mean price and RSI disagree and signals tend to alternate quickly. Both are good reasons to skip.
- 3
Size from the stop distance
The stop distance is the entry minus the stop, printed in the labels. On spot gold one point of price is one dollar per ounce. The guide's example: a stop distance of 13.265 and a risk of 100 in account currency gives 7.54 ounces, rounded down to 7 ounces, 0.07 lots. When the stop is wider than TP2, skip the signal or size down.
- 4
Decide the exit before you enter
The indicator marks TP1, TP2 and TP3 but does not manage the position. Decide before the trade whether you close part at TP1, close everything at TP2 or hold for TP3, and do not move the stop further away after entry. The TP Hit and SL Hit alerts tell you when a level was touched, even while that candle is still forming.
- 5
Stand aside around big news
US CPI and the jobs report come at 08:30 New York time and FOMC decisions at 14:00 New York time; gold often jumps through stops in those minutes, and many traders stand aside from about 15 minutes before. Gold is most active from the London open through the New York morning; in the Asian session the steps take longer to reach.
Everything Gold Signal Premium does for you
Signals that wait for the close
Buy and Sell are tested on confirmed candles only, and the alert with the full plan is sent once per bar close. A label that appears stays where it printed until a newer signal replaces it.
A complete plan on every signal
Stop Loss, Entry, Take Profit 1, Take Profit 2 and Take Profit 3 are drawn as labelled lines with their prices, inside a red stop zone and a green target zone that reach 10 bars past the current candle and fade out over the last 15.
A stop from real structure
The stop sits beyond the lowest low or highest high of the 4 candles before the signal candle, so it respects the swing the signal came from. SL Lookback and SL Buffer let you widen it.
Targets you can scale to any market
TP Step is a plain price distance: 10.0 on gold by default. The guide lists starting points for 15-minute charts, such as 0.0010 on EUR/USD, 20 on NAS100 and 300 on BTC/USD.
Order blocks and gaps in one script
Up to three bull and bear order blocks and three bullish and bearish fair value gaps per side, with a size filter in ATR. Broken blocks and filled gaps are removed, or kept if you switch that off.
Hit marks you can read later
Small green circles show where each target of the current plan was first reached and a red circle where the stop was hit, so you can see how the newest signal played out without measuring.
Trend candles and the EMA line
Green, red and grey candles show at a glance whether price and RSI agree, and the 9 EMA is plotted in blue. Both can be switched off in the Inputs tab, and every colour is editable.
Alerts with the whole plan
Four alertcondition entries (Buy Signal, Sell Signal, TP Hit, SL Hit) and one alert() message at each signal, for example BUY XAUUSD @ entry with the SL, TP1, TP2 and TP3 prices in the text.
Runs on the chart's own bars
No request.security calls and no lower-timeframe data, only the EMA, RSI, ATR and swing pivots of the chart itself. It runs on TradingView's free plan; alerts count against your plan's alert limit.
Gold Signal Premium, feature by feature
Each picture is built from real platform screenshots of the shipped indicator at its default settings, labelled so you can see what every part does. Tap any picture to open it full size.





How traders put it to work
XAUUSD on the 15-minute chart
This is what the defaults are built for: the 9 EMA and RSI(14) signal, a stop beyond the last four candles and targets 10.0 apart, which is ten dollars per ounce on spot gold. Work the London open through the New York morning, when gold moves enough to reach the steps.
Gold futures, GC and MGC
The guide notes that TP Step 10.0 works unchanged on gold futures, since they trade close to spot. What changes is the money per point: GC moves 100 dollars per point per contract and MGC 10 dollars, so the same stop distance costs ten times more on GC. Size from that, not from the label.
Gold on 5 minutes or 1 hour
On 5 minutes the 10.0 steps are far for the candle size; on 1 hour they are close, and the guide suggests raising the step to 15 to 20. The stop lookback and swing length are counted in candles and need no change. The orange timeframe note is only a reminder.
Forex pairs
Set TP Step to the pair's scale before trading a signal: the guide's starting points for 15 minutes are 0.0010 on EUR/USD (10 pips), 0.0013 on GBP/USD and 0.10 on USD/JPY. Check that TP1 is reachable within a few candles and that the stop distance is in the same range.
Indices and crypto
The same signal rule applies; only the step changes. Starting points from the guide: 20 index points on NAS100, 40 on US30, 300 on BTC/USD and 15 on ETH/USD. On stocks, use roughly the stock's typical 15-minute range as the step.
Every setting, with its default
The names are the ones in the script's Settings dialog in TradingView (Inputs tab); the defaults are what every chart on this page uses.
Signal (4)
| Setting | Default | What it does |
|---|---|---|
| EMA Length | 9 | EMA the close must be above (Buy) or below (Sell). |
| RSI Length | 14 | RSI period. |
| RSI Level | 50 | RSI must be above it for a Buy, below it for a Sell. |
| Hide same-direction signals while a trade is active | off | Optional: no new Buy while a Buy plan runs (same for Sell). |
Risk (2)
| Setting | Default | What it does |
|---|---|---|
| SL Lookback (previous candles) | 4 | Stop beyond the lowest low / highest high of this many candles before the signal candle. |
| SL Buffer (price) | 0 | Extra price distance beyond that low / high (0 = exactly at it). |
Targets (1)
| Setting | Default | What it does |
|---|---|---|
| TP Step (price) | 10 | TP1 = entry + / - 1 x step, TP2 = 2 x, TP3 = 3 x; 10.0 = 10 dollars on XAUUSD. |
Display (7)
| Setting | Default | What it does |
|---|---|---|
| Show Entry / SL / TP zones | on | Draws the trade plan (zones, lines, labels). |
| Mark TP / SL hits | on | Small circles where a TP or the stop is reached. |
| Extend beyond current bar | 10 | Bars the plan and the zones reach right of the current bar (1-100). |
| Zone transparency | 80 | Transparency of the SL / TP zones (0-100). |
| Fade length on right (bars) | 15 | Length of the fading right end of the zones (0-100). |
| Color candles by trend | on | Green / red / grey candles from the EMA + RSI condition. |
| Show EMA | on | Plots the EMA line. |
Colors (4)
| Setting | Default | What it does |
|---|---|---|
| Stop Loss color | #f44336 | SL zone, line and label; also the Sell label, bearish candles, SL marks. |
| Take Profit color | #43d443 | TP zone, lines and labels; also the Buy label, bullish candles, TP marks. |
| Entry color | #9e9e9e | Entry line and label. |
| EMA color | #2962ff | EMA line. |
Order Blocks (5)
| Setting | Default | What it does |
|---|---|---|
| Show Order Blocks | on | Bull / bear order blocks from closed breaks of the last swing. |
| Swing length | 10 | Bars on each side that confirm a swing high / low (2-50). |
| Max OBs per side | 3 | Order blocks kept per side, oldest removed first (1-20). |
| Bullish OB | #2962ff | Colour of bull order blocks. |
| Bearish OB | #e040fb | Colour of bear order blocks. |
FVG (5)
| Setting | Default | What it does |
|---|---|---|
| Show Fair Value Gaps | on | Three-candle gaps. |
| Min FVG size (× ATR) | 0.25 | Smallest gap shown, in ATR(14) (0 = all). |
| Max FVGs per side | 3 | Gaps kept per side (1-20). |
| Bullish FVG | #00bcd4 | Colour of bullish gaps. |
| Bearish FVG | #ff9800 | Colour of bearish gaps. |
OB / FVG (1)
| Setting | Default | What it does |
|---|---|---|
| Remove mitigated OBs / filled FVGs | on | On: broken zones are deleted; off: they stay, ending at the break. |

The alert events, one by one
In TradingView: Create alert, choose “Gold Signal Premium [AlgoFXStore]” as the condition and pick the event. TradingView then notifies you the way you set in that dialog: a pop-up in TradingView, a sound, the TradingView app on your phone or an e-mail.
- Buy Signal
- Sell Signal
- TP Hit
- SL Hit
- Signal with the full plan
Gold Signal Premium next to the usual options
Where it wins, and where it does not.
| Gold Signal Premium | Typical free EMA and RSI signal indicator | Reading it by hand | |
|---|---|---|---|
| When a signal is decided | On the closed candle; the label stays where it printed | Varies; some plot on the forming candle, so arrows can come and go | Whenever you notice the cross |
| Stop and targets | Stop beyond the last 4 candles and three targets in fixed steps, drawn at the signal | Usually none | Measured by hand on every signal |
| Zones near the entry | Up to 3 order blocks and 3 fair value gaps per side, removed when broken or filled | A separate script for each | Drawn by hand and often left after they broke |
| Alerts | Buy, Sell, TP Hit and SL Hit, plus one message with the full plan | A signal alert at most | None; you have to watch the chart |
| Signal history on the chart | Only the newest signal and its plan stay; older ones are deleted | Usually every arrow stays, so you can scroll back through them | Whatever you marked yourself |
| Other markets | Works after you set TP Step to the market's scale | Often works anywhere without changes | Works on anything |
| Cost | A one-time purchase | Free | Free, paid for in time on every signal |
Honest about who this fits
A good fit if you
- You trade gold, spot XAUUSD or gold futures, on the 15-minute chart and want each signal to arrive with its stop and targets already in place.
- You like a rule you can check yourself on any candle: the close against the 9 EMA and RSI(14) against 50.
- You want to see order blocks and fair value gaps near the entry without stacking three separate scripts.
- You size every trade from the stop distance and want that distance printed on the chart for you.
- You are happy to adjust one input, TP Step, when you move the indicator to another market.
Not for you if you
- You want a record of every past signal on the chart: this indicator keeps only the newest signal and its plan.
- You want a system that trades for you: it draws and alerts, and you place and manage every order.
- You need targets that adapt to volatility on their own: TP Step is a fixed price distance that you set.
- You trade mostly 1-minute charts and do not want to retune the step, because the defaults are made for 15-minute gold.
The full code, one manual, installed in two minutes
- 1Pine Script source codeGold_Signal_Premium_TradingView_Code.txt (14 KB): the full code. Paste it into the Pine Editor and it appears as “Gold Signal Premium [AlgoFXStore]”.
- 13Page PDF manualInstallation, every setting with its default and how to read the chart.
- 29SettingsEvery one explained above, with the defaults the charts use.
- ✓Alert eventsYou choose which ones are on in the settings.
- 60Day money-back guaranteeIf it is not for you, request a full refund within 60 days through your Digistore24 order e-mail.
Install in five steps
- Download the zip from the page Digistore24 sends you to after checkout and unzip it.
- Open Gold_Signal_Premium_TradingView_Code.txt in a text editor, select all and copy the whole code.
- In TradingView, open the Pine Editor, paste the code over everything that is there and click Save.
- Click Add to chart: “Gold Signal Premium [AlgoFXStore]” appears on your chart.
- Read the PDF manual; the defaults are the settings shown on this page.

Kestutis Balciunas
AlgoFXStore · chart indicators
Kestutis Balciunas builds and publishes chart indicators under the AlgoFXStore name. Every product page shows what the indicator draws on real charts, and every number on it comes from the shipped build.
The charts on this page were captured in TradingView from the shipped Gold Signal Premium [AlgoFXStore] at its default settings and are shown unedited.
No get-rich claims and no quoted win rates. Every trade is uncertain, and no indicator changes that. If you want to know whether it suits the way you trade before you buy, e-mail [email protected] and you will get a straight answer.
One price, one payment
- The full Pine Script source code of Gold Signal Premium and the 13-page PDF manual
- Delivered as a digital download: one zip with the code file and the PDF manual on your download page
- Return period: 60 days, with a full refund if it is not for you
- Free updates to the current version on the same download page
60-day money-back guarantee. Install it, run it on your own charts and read the manual. If Gold Signal Premium is not for you within 60 days of purchase, request a full refund from Digistore24, no questions asked: use the refund link in your Digistore24 order e-mail or Digistore24's order page digistore24.com/en/cancel-revoke-contract. Digistore24 refunds to your original payment method. It is a digital download: right after checkout you land on your download page, and the link to it is also in your Digistore24 order e-mail.
About the signals
Does Gold Signal Premium repaint its Buy and Sell signals?
Buy and Sell are decided on the closed candle (the code tests barstate.isconfirmed), so a label never appears and then disappears on the same candle. What can change while a candle forms: the trend colour of that candle, the TP and SL hit marks and the TP Hit and SL Hit alerts, which read the forming high and low, and an order block can vanish and return if the current close crosses it before the candle ends. Order blocks are drawn back at their candle once the swing is confirmed 10 bars later; gaps are drawn back two bars.
Why does only one signal stay on the chart?
That is how the indicator is built: it shows the current setup. Every new Buy or Sell deletes the previous label, its hit marks and its plan, then draws the new one. If you want a record of older signals, keep the alert messages: the alert() message carries each signal's direction, entry, stop and three targets.
What does Hide same-direction signals while a trade is active do?
With it on, a new Buy is not shown while a Buy plan is still running, and a new Sell is not shown while a Sell plan runs. An opposite signal still prints. It is off by default; the guide suggests it when grey candles make signals alternate quickly and you want a calmer chart.
What do the green, red and grey candles mean?
Green: the close is above the EMA and RSI is above 50. Red: the close is below the EMA and RSI is below 50. Grey: the two disagree. A signal is simply the first closed candle that turns green or red after one that was not. You can switch the colouring off with Color candles by trend.
Levels and zones
Why is the stop sometimes wider than the first target?
The stop comes from the lowest low or highest high of the 4 candles before the signal, while the targets are fixed steps from the entry. After a long signal candle or a sharp swing, the stop distance can be larger than TP1 or even TP2. The guide's advice: skip such a signal or size down, never the other way round.
How do I set TP Step for another market?
TP Step is a price distance, so set it to roughly one average candle of that market on your timeframe. The guide's 15-minute starting points: 0.0010 on EUR/USD, 0.0013 on GBP/USD, 0.10 on USD/JPY, 20 on NAS100, 40 on US30, 300 on BTC/USD and 15 on ETH/USD. Then check that TP1 is reachable within a few candles.
What is the difference between the blue, magenta, cyan and orange boxes?
Blue boxes are bull order blocks and magenta boxes bear order blocks, built from closed breaks of the last confirmed swing. Cyan boxes are bullish fair value gaps and orange boxes bearish gaps, three-candle gaps of at least 0.25 times ATR(14). Up to three of each kind are kept per side.
Can I keep broken order blocks and filled gaps on the chart?
Yes. Switch off Remove mitigated OBs / filled FVGs in the Inputs tab. Broken zones then stay on the chart and end at the bar where they were broken or filled, instead of being deleted. Max OBs per side and Max FVGs per side still limit how many are kept.
Setup and alerts
Which timeframe should I use?
The defaults are made for 15 minutes on gold, and the orange note Designed for 15m appears on any other timeframe as a reminder. The indicator works on every timeframe; on 1 hour the guide suggests a TP Step of 15 to 20, and on 5 minutes the default steps are far for the candle size.
Which alerts can I create?
In Create alert, pick the indicator and one of its four conditions: Buy Signal, Sell Signal, TP Hit or SL Hit. Or pick Any alert() function call to receive one message per signal at the bar close with the direction, ticker, entry, stop and all three targets. TP Hit and SL Hit can fire while the candle is still forming.
Why does the alert text say EMA9 after I changed the EMA Length?
The four alertcondition messages are fixed texts written into the script, so they always read EMA9 + RSI. The signal itself uses whatever EMA Length you set. The alert() message with the full plan is built from the live values, so its prices always match the chart.
Does it work on TradingView's free plan?
Yes. It uses no request.security calls and no lower-timeframe or seconds data, only the chart's own bars. Alerts work within your plan's alert limit. Webhook delivery of alerts needs a paid plan, and the indicator does not need webhooks for anything.
Can I change the EMA and RSI settings?
Yes. EMA Length, RSI Length and RSI Level are inputs in the Signal group, and SL Lookback, SL Buffer and TP Step are in the Risk and Targets groups. Changing them changes which candles qualify, so look through the chart again with your values before you trade them.
How it works
Will it place trades for me?
No. Gold Signal Premium is an indicator: it draws on the chart and can alert you. It never sends an order.
Which markets and timeframes does it work on?
Designed for XAUUSD 15 minutes (TP Step 10.0 = 10 dollars and a 4-candle stop fit 15-minute gold; other timeframes show the orange 'Designed for 15m' note but work). (gold futures), PEPPERSTONE:XAUUSD.
Do I need a paid TradingView plan?
No. It reads only the chart's own bars, so the free TradingView plan runs it. Alerts count against your plan's alert limit.
After you buy
How do I get it after paying?
Digistore24 runs the checkout. Right after payment it takes you to your download page with one zip holding the Pine Script source code file and the PDF guide; the link to that page is also in your Digistore24 order e-mail, so you can download again at any time.
How do I install it?
Open the code file, open the Pine Editor in TradingView, paste the whole code, click Save and then Add to chart: “Gold Signal Premium [AlgoFXStore]” appears on your chart. The guide walks through it step by step.
Who is Digistore24?
Digistore24 is the reseller that sells Gold Signal Premium for Kestutis Balciunas (AlgoFXStore): it runs the checkout, charges your card or PayPal, collects the VAT for your country and delivers the download. Its name is the one on your statement, and its order e-mail holds your download link and the refund link.
What is the refund policy?
A 60-day money-back guarantee, handled by Digistore24. If Gold Signal Premium is not for you within 60 days of purchase, use the refund link in your Digistore24 order e-mail or Digistore24's order page (digistore24.com/en/cancel-revoke-contract) for a full refund, no questions asked. Digistore24 makes the refund to your original payment method.
Do I get the source code?
Yes. You get the full Pine Script source code as a text file for your own use; the licence line at the top of the code does not allow resale, sharing or republishing.
Gold Signal Premium for TradingView.
Put the next gold signal on your chart with its stop, its three targets and the zones around it already drawn. The full code, the manual and every setting explained. Instant download for €47, one payment.
Get instant access