This ProBuilder code snippet is designed to track and count buy and sell signals during open market positions. It specifically counts the signals that occur while a long or short position is active, excluding the signals that initiate these positions. This can be useful for analyzing the frequency and timing of trading signals during open trades.
thnx. I've got a snippet I added to a rough version, i'am unsure how useful it will be. What it does i.e. for long, it shows the buy signals you miss when you're in a long positionposition, So it doesn't count the signal when the position is opened, only the buysignals when longonmarket. It does also calculated cumulative those signals which total could go up quite rapidly. In general the higher the amount of cumulative signals, is not a good sign for robustness. for testing if interested. conbuy=buysignal condsell=sellsignal // show signals once showsignals=1 if showsignals then once count1l=0 once count1s=0 if not onmarket or ((longonmarket and shortonmarket[1]) or (longonmarket[1] and shortonmarket)) then count2l=0 count2s=0 endif if longonmarket then if condbuy then count1l=count1l+1 count2l=count2l+1 endif endif if shortonmarket then if condsell then count1s=count1s-1 count2s=count2s-1 endif endif graph count1l as "long signals in position cumulative" graph count2l as "long signals in position" graph count1s coloured(255,0,0,255) as "short signals in position cumulative" graph count2s coloured(255,0,0,255) as "short signals in position" endif
Explanation of the Code:
This snippet is particularly useful for traders and analysts looking to understand signal behaviors and their frequency during open market positions, which can be critical for refining trading strategies.
Check out this related content for more information:
https://www.prorealcode.com/topic/renko-automatic-trading/page/2/#post-153425
Visit Link