Coarsely chop the almonds and cashew nuts. Roast in a pan without fat. Take out and let cool down. Coarsely chop cranberries and apricots. Preheat the oven (electric cooker: 175 °C/circulating air: 150 °C/gas: s.
Heat almond paste, margarine, coconut cream, syrup and 1 pinch of salt in a saucepan. Remove from heat. Stir in nuts, fruit and oat flakes. Smooth the mixture in a square springform pan (24 x 24 cm; alternatively round, 26 cm Ø) lined with baking paper.
Bake in a hot oven for about 25 minutes. Remove from the oven, allow to cool and chill.
Take the muesli cake out of the tin, cut it into 7 equally sized strips and halve them crosswise. Remove baking paper. Store muesli bars in a cool place.