With the command msgbox we can create a msgbox that has two buttons "Yes" or "No". But Can we create more than 2 buttons (for example 6 buttons) in a msgbox(by mql5)?
As per the documentation for the MessageBox() function, you are restricted to the predefined flags which dictate which buttons and combinations thereof you can have:
MB_OK - Message window contains only one button: OK.
MB_OKCANCEL - Message window contains two buttons: OK and Cancel
MB_ABORTRETRYIGNORE - Message window contains three buttons: Abort, Retry and Ignore
MB_YESNOCANCEL - Message window contains three buttons: Yes, No and Cancel
MB_YESNO - Message window contains two buttons: Yes and No
MB_RETRYCANCEL - Message window contains two buttons: Retry and Cancel
MB_CANCELTRYCONTINUE - Message window contains three buttons: Cancel, Try Again, Continue