The moderate and radical factions within the nonaligned movement remain effectively stalemated here after the 95-nation group circulated a communique attacking the United States for alleged transgressions in Africa, the Middle East and the Caribbean -- but also giving some lumps to the Soviet Bloc.

"For the moment the truce has held," said an ambassador from a moderate Asian member of the group, "but the battle will be resumed next year in Baghdad," where the nonaligned are to hold their next triennial summit and pass the chairmanship from Cuba to Iraq.

The last meeting of heads of state, two years ago in Havana, almost split the grouping of Third World nations as the Cubans and other radicals sought to impose the doctrine that the Soviet Union is the "natural ally" of the movement.

Last year, at a ministerial meeting in India, the groups' rhetoric -- while retaining its strident anti-American tone on some issues -- also called for the withdrawal of Soviet troops from Afghanistan and of Vietnamese forces from Cambodia.

"This year the pattern of New Delhi continued," said another participant in the two days of meetings attended by foreign ministers who are here for the current General Assembly session. "There was no radicalization."

The moderates' victories started with a successful effort by Egypt to block outright criticism of the Camp David accords and the peace treaty with Israel.

Then Pakistan, Singapore and other Asian nations won a fight to retain the references to Afghanistan and Cambodia.

"The Cubans retaliated," said the Asian ambassador, "by pushing through condemnations of the United States for its alleged aggression against Libya the Aug. 19 incident in which two Libyan jets were downed by American warplanes over disputed waters in the Mediterranean , and alleged American attempts to 'destabilize' Cuba, Nicaragua and Grenada."

The dynamics of the nonaligned meetings are such that once the moderates attain their own regional goals, few will rise to object to random attacks on Washington drafted by the Cubans or the Arab group.

The most pointed criticism of U.S. policy in the 21-page communique this week was an expression of "grave concern" at the development of "strategic cooperation" with Israel and other nations of the region, a policy designed to counter Soviet intervention in the Middle East.

The arrangement with Israel, it said, confirms the Israeli role as a "true bridgehead of imperialism." The group called upon the United States to press for total and unconditional Israel withdrawal from all occupied Arab territories.

Another major decision taken by the nonaligned nations was the formal endorsement of the candidacy of Salim A. Salim, Tanzania's foreign minister, to succeed Kurt Waldheim as U.N. secretary general at the end of this year.

Salim has already won the backing of the Organization of African Unity and appears, for the moment, the sole contender from the Third World.

But the Latin Americans are hopeful of winning the U.N. top post for someone from their region, though they have not yet agreed on a single candidate.

Waldheim, who is seeking an unprecedented third five-year term, is the only other declared candidate. It is expected that China, which has advocated electing a Third World candidate, will veto Waldheim, at least in early voting.

The secretary general must be selected by the 15-nation Security Council, where the big powers retain veto rights, and the council's choice must be approved by the 155-nation Assembly, which is controlled by the Third World majority.