This method (A2B only) can be dangerous. If you accidental move axis to extreme position parking brakes will be on. While velocity is not zero. I think joaquinbaeza is right with separate button to activate parking brake.
Thus begin.
!Note. I have not MCG handy so my example is based on other controller. Your axes and button numbers will differ.
Axis2button function output is button. Button-modifier will convert it to another one. Save one line. Boolean Comparator1 will replace A2B.
Open Profile - Boolean tab. Click first empty slot. Select Comparator1. Layer=1(axis #) (remember, you will assign your. As I remember MCG brake lever is #3).
Treshold = 96 or how near the bound you want to register brake chock. Output = Free! No line number is occupied. Comparator output only.
Click next slot and select 2AND function. Output will be registered if BOTH inputs are ON. 1st input layer = Physical button 15 - our modifier (Remember.....)). 2nd input is Boolean 1, Free output of comparator. Output = Physical button. Any free. 40 for me.
No need to register modifier press as button. Profile - Buttons - Physical layer tab. Click line 15 and select No function.
That's almost all. All if in DCS button for parking brake must NOT be pressed all the time, press and forget.
If it must be pressed all breaking time, than make button 40 Button Alt (similar to CapsLock). Click line 40 and select Buttons - ButAlt. Def. State = OFF.
Press SET. See result.