【GoldBear Birth Tale #1】Decomposing a self-made indicator into a "rule"
Hello, this is The Aveil.
Starting this time, I will write a series on how the GOLD (XAUUSD) 1-minute scalping EA "GoldBear" is built.
Episode 1 is about the自作 indicator that became the starting pointBolinger Bands-centered custom indicator.
What I wanted to turn into an EA was visual
The base of GoldBear was a self-made indicator I had been using for some time.
Centered on Bollinger Bands, it stacked several indicators to generate on the chart a signal like “this might be a good entry point.”
The indicator leaves the final judgment to humans.
Even when a signal appears, they unconsciously sift through it like “the trend is strong today, so not now” or “if this pattern, then it can go,”
but the other party is a 1-minute chart.
While waiting for a signal, you have to stay glued to the chart. If you look away for a moment, you might miss a good moment.
In that case, why not turn that judgment into an EA?
That thought was how GoldBear began.
However, at this point, I hit the first wall.
EA does not understand “vague” explanations.
You have to replace all such “it seems strong so avoid it” into numbers and conditions.
Decomposing the indicator
So first, I broke down what the self-made indicator was looking at, one by one.
When you organize its contents, it consists of three parts with different roles.
① Bollinger Band: watching the moment of “going outside”
The star is Bollinger Bands.
It is an indicator that draws bands indicating the “normal range” of price movement around a moving average, and when the price pokes outside the band, it signals an overextended condition.
Settings are period 5, width 1.5σ.
Much shorter and thinner than the common setting (period 20, 2σ). It is made quite sensitive to react to the small waves on a 1-minute chart.
What we are watching isthe moment the candlestick jumps outside the band.
② Span Model: watching the “big trend”
The second is the “Span Model” based on Ichimoku Kinko Hyo.
The direction of the cloud gives a rough sense of whether the market is up or down.
If you only look at Bollinger Bands, during a strong downtrend you might get a signal like “it poked outside below = buy.”
So,buy only when the trend is up, sell only when the trend is down, and that condition is assigned to the Span Model.
③ CCI: confirming momentum overextension
The third indicator is CCI.
It measures how far price deviates from the mean, used with a short period of 5.
Even if price overextends Bollinger Bands, the momentum may still be weak and just noise.
Only when the CCI swings beyond ±100 is it considered truly overextended.
Putting the three together reveals what it does
When you lay out the three parts, what this indicator was doing is very simple.
The big trend is up.
Yet, it overextends downward for a moment.
Pick up that overextension and buy.
The selling side works in reverse.
In short,the indicator sought pullbacks to buy and recover with the trend on small 1-minute waves.
Even though I made it myself, putting it into words like this for the first time makes me realize, “Ah, this is the moment I was waiting for.”
What I learned from breaking it down
From breaking it down, I realized two things.
First,the indicator only decided “when to enter” at the indicator stage.
How much profit to take, where to set stop loss, how long to hold — for the EA, all exit rules must be defined.
Second,the “watchful waiting” I did unconsciously when watching it.
There must have been some reason I did not enter even when a signal appeared. How far I can turn that reason into a rule has been the ongoing challenge.
These two will keep evolving as GoldBear goes through version after version.
Next time
Next time I will explain why I decided to tailor this logic specifically for GOLD and how the name “GoldBear” was chosen.
From Episode 2 onward, it will be summarized in the serialized series “Part 1: GOLD Scalping EA ~ GoldBear Edition ~.” You can read each episode individually or subscribe to the series for the complete collection.
[Note]
This article records the process of me creating an automated trading program (EA).
It does not constitute a recommendation to buy or sell specific financial instruments, nor investment advice.
Backtests and forward test results mentioned in the article are historical performance and do not guarantee future profits.
There is a risk of losing capital in FX/CFD trading. Please conduct actual trading using your own judgment and responsibility.