【GoldBear Birth Episode #10】FLEX_SR——Entry on S/R touch
Hello, this is The Aveil.
GOLD (XAUUSD) 1-minute scalping EA "GoldBear"—a serialization, Episode 10.
This time as well, I will write while including code excerpts.
To make the flow understandable even if you can't read the code, I will explain each part in words.
Recap from last time
In Episode 9, I talked about the first half of the FlexMode, the part that “decides the direction.”FlexMode
Prepared a BB specifically for trend reversals (period 10, deviation 2.0) separately from the reversal one
Measured the line direction twice and compared,when the direction swapped, it was judged as “turned”.
The direction determined by the turn is stored in
g_flexDir(+1 = buy / −1 = sell)
Even when the direction is decided, we won’t enter right away.
This time, the latter half of FlexMode —“where to enter”—the discussion ofFLEX_SR.