Hi eyal,

A few other things to realize to perhaps help clarify:

a) Indentation and other formatting is for us humans to help understand code. The computer doesn't care about indentation. Don't rely on it for understanding - it will sometimes mislead you!

b) In this code, the while(asset is the outer loop and the while(algo is the inner loop.

c) The outer while(asset loop contains only one statement - the while(algo. For this reason it doesn't need the {}.

d) As Mithrandir77 shows, the outer while(asset loop is first set to EUR/USD and then the inner while(algo loop executes - TRND, CNTR, 0. Then it's done, control returns to the outer while(asset, USD/JPY is set, the inner while(algo executes all over again as before, control again returns to the outer while(asset, 0 is set, and the looping is done.

HTH.