Do you have a value that shows the change? For example, if the Dow is down from 10,000 to 9,000, is there a value that says "-1,000?" And on the opposite, if it goes from 10,000 to 11,000, a value saying "1,000?"
I ask because then you could use that value as an integer for scripting purposes.
Example:
dim Arrow as xpBaseObject
dim ChangeValue as xpTextObject
dim ChangeValueInt as Integer
Self.GetObjectByName("Arrow", Arrow)
if Self.GetObjectByName("ChangeValue", ChangeValue) then
ChangeValueInt=Cint(ChangeValue.Text)
end if
if ChangeValueInt > 0 then
Arrow.ScaleY = Math.Abs(Arrow.ScaleY)
elseif ChangeValueInt < 0 then
Arrow.ScaleY = -(Arrow.ScaleY)
elseif ChangeValueInt = 0 then
Arrow.Alpha = 0
end if
This would point your object "Arrow" in a positive direction (absolute value of it's scale) if it's above zero, in a negative direction (scale * (-1)) if it's below zero, and make it invisible (removing all alpha) if it is equal to zero.
Now that I look at the script, I could probably write it a little cleaner, but that's a good roughing.
Without a "change value," it's a bit different to figure out, unless you have the previous amount to compare it against.
#XPression