|
Hello! This is Li from GogoJangan.
Everyone, have you ever heard the term "repaint problem" in trading such as FX and stocks? It refers to the phenomenon where indicator signals change retroactively.
This time, we welcomed as a guest the highly popular developerhappy Angelto thoroughly explain about "no repaint."
From the mechanism of repaint, the types of no repaint, to new techniques, the developer will explain in an easy-to-understand way from the developer’s perspective.
|
|
|
| The genius of development who produced numerous hit tools |
|
happy Angel
Previously worked for a company involved in developing programs for Japan's supercomputer "Fugaku," and with a background in advanced IT skills, planned the development of a system to forecast market directions with high precision. Although the plan could not be realized due to high development costs, he later immersed himself in the world of markets for about five years, devoting himself to the "Holy Grail quest." Realizing that the existence of the "Holy Grail" was an illusion, he himself experienced significant losses caused by emotional control. As a result, he resolved to develop systems himself. In the process, he succeeded in building a logic he could trust. Now he offers his tools to help others as well.
|
|
|
I'm Hayakawa, the representative of GogoJangan! For this time’s guest happy Angle, we have a free gift prepared for everyone watching this article + video. Please watch until the end along with the video and do not miss this chance!
|
|
|
| GogoJangan Hayakawa |
|
| First, could you explain what no repaint is, from the basics? |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
|
| Some people place greater importance on it than win rate. |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
| Yes, that is indeed the case. No matter how high the win rate is, if the signal changes afterward, the reliability of test results drops. In FX, a single moment decision can determine the outcome, so signal stability is the most reassuring factor. However, it is difficult for historical tests to perfectly match real-time operation. Due to MT4 data specifications, only sampled data is saved, so perfect alignment is almost impossible.Actually, it’s amazing when you see it on screen. If there is a product that claims otherwise, its calculation logic is likely too simplistic for practical use. That’s why a correct understanding of no repaint is so important. |
|
|
2. Types and features of no repaint
|
| What kinds of no repaint are there? |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
| There are three main types. 1) Complete No RepaintComplete No Repaint. Once a signal appears, past bars and the undecided bars do not disappear. 2) Semi-No RepaintSemi-No Repaint. Confirmed bars are fixed, but recent bars can vary. And 3) Calculation Delay TypeCalculation Delay Type. It renders with a one-bar delay using confirmed information, does not repaint, but reaction is slower. |
|
| I see. There are many types. |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
|
| When you actually see it, you’ll be amazed. |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
|
|
3. Development points to prevent repaint
|
| In what situations does repaint occur? |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
| There are four main causes.
|
|
| Then how can we prevent it? |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
| There are several methods. Process only the latest bar, separate initial and differential updates with prev_calculated, wait for confirmation with isNewBar(), save signal information to files or global variables, etc. And using the "advancing arrow" signals, caching them in a file or global variable is another method. However, with traditional methods, every time you switch the timeframe you would need to delete and redraw arrows, risking incomplete history restoration.
|
|
| Is there a new method to solve this? |
|
|
| GogoJangan Hayakawa |
|
|
| happy Angel |
|
| Yes. A new no repaint technique that switches only the arrow that is highlighted without deleting the arrow objects when switching timeframes. This way, history is not corrupted, and display remains stable across all timeframes. In fact, this technology is also used in my latest work, the Golden Emblem. |
|
| That sounds amazing! How about pre-use verification? |
|
|
| GogoJangan Hayakawa |
|
|
I see. Thank you very much, happy Angel.
|
|
|
| Hayakawa |
|
| This video |
| Comprehensive No-Repaint of MT4 indicators — a new generation method traders should see [happy Angel] |
|
|
|