I'm trying to build an indicator that use planet longitude (Astro trading).
I have the formula for getting the longitude (tested and compared to other sources).
I've used struct to represent each planet (for example , Earth, Mars) because each they have some common features.
I succeeded in getting the right longitude but when I try to insert them in an array (by date) I get 0 instead of the actual longitude.
If you see in the code - when I try to print the longitude in SetLongitude I get 0, but when I try to print the longitude in SetPlanetElemetns I get the real longitude.
Why is that , what am I missing ?
Comment