it is nice coding to generate signal after 2nd dot  along with break of trend line(36 ema) of your two lines, in fx4 version

i just gave a thought how to see second dot as fixed , one is as per your coding to see break of trendline(36 ema) among the two lines of your, that is perfect confirmation, after 2nd dot is formed.


-----------------------------------------------------------------------------------------------------
as in attached picture

another way i can see is to assign how much pips prices moves away from 2nd dot after 2nd dot is formed,

for example if 2nd dot is formed after candle close, then if prices say for example 10 pips then it should be considered as fixed, and then red candles formed(as in image) can be taken for trade

the idea is to assign pips to 2nd dot itself and see how  much pips move away from 2nd dot are needed to confirm it is fixed now( need to experiment how much pips move away from 2nd dot is considered as a confirmation of 2nd dot),

the reason is what i see is once 2nd dot is formed prices should move fast from there (as in buy trade in image, that is how market moves fast),(if it does not then more waiting is there) that is how markets moves, once convergence of moving averages are there prices should move fast, if it does not then 2nd dot may not be confirmed

to see this if pips are assigned to 2nd dot , then if prices moves away fast  from 2nd dot, prices will be moving away in pips terms fast from 2nd dot, and 2nd dot is more likely to be a 'stable' one.

as to confirm prices should move fast from that second dot with box bias of H4 like in image.

i have just attached here with one indicator(for example) which diaplays how far prices are moving from specified ema in pips terms , if it  helps in coding of 2nd dot pips distance

(once convergence of moving averages is there when price moves it starts seperating out from moving averages so more pips away it goes from moving averages, same can be applied to your 2nd dot)(once prices starts moving away from 2nd dot , more pips seperation it gets from 2nd dot, and more confirmed 2nd dot becomes, faster the move better the confirmation of 2nd dot)
------------------------------------------------------------------------------

indicator ma distance from price -for example ( i do not know if indicator is decompiled or not as i do not know coding, but still attaching it)
setting to match with your candle color( your candles are still the best)

13 ema
0
1
0
2

that was just a thought( as semafore tracks prices this is how it (2nd dot)can be confirmed faster then confirmation from moving averages(which is bit slow) , i do not know how it is possible to code, but that is how market moves, it moves fast when things are lined up perfectly, and so if your position is right it will be in profit immediately.

in any case your system is great, and great coding from you

your efforts are  great to thank you .