This is really easy to identify. If the action is still happening, please use present perfect continuous tense and if there are two past actions and one action was happening for a period of time before the other past action, then you can use past perfect continuous tense for the first past action. Consider the following examples:
Present Perfect Continuous tense:
01) I have been learning English for 13 years. (This means that still you are learning English.)
02) When our new English teacher came to our school, we had already been learning English for 3 years. (There are two past actions in this sentence and the first past action was happening over a period of time.)
For you to use perfect continuous tense, the action should have been or should be happening for a period of time.