This tutorial explains how to make a new version of an existing stat, and what you want is basically a combination of "Preflop Limp Fold" and "Fold to F CBet".
As an example..
The expressions for the actions columns for these two stats are:
cnt_p_limp_fold =
sum( if[holdem_hand_player_statistics.flg_p_limp AND lookup_actions_p.action = 'CF', 1, 0] )
cnt_f_cbet_def_action_fold =
sum(if[holdem_hand_player_statistics.enum_f_cbet_action='F', 1, 0])
So the action column for your new stat could be:
cnt_p_limp_fold_to_raise_or_cbet =
sum( if[holdem_hand_player_statistics.flg_p_limp AND (lookup_actions_p.action = 'CF' OR holdem_hand_player_statistics.enum_f_cbet_action='F'), 1, 0] )
Similarly the opportunities column could be:
cnt_p_limp_face_raise_or_cbet =
sum(if[holdem_hand_player_statistics.flg_p_limp AND (holdem_hand_player_statistics.flg_p_face_raise OR holdem_hand_player_statistics.flg_f_cbet_def_opp), 1, 0])
The
Tutorial: Custom Reports and Statistics also has a walkthrough of how to build a stat from expressions like these.