[This message was posted by Neil Cook of Simcorp <[email protected]> to the "Algorithmic Trading" discussion forum at http://fixprotocol.org/discuss/31. You can reply to it on-line at http://fixprotocol.org/discuss/read/b2de82e7 - PLEASE DO NOT REPLY BY MAIL.]
The Percentage data type is clearly defined in FIX as being a float with values from 0 to 1, and therefore when working with the Percentage_t ParameterType in FIXatdl I would expect any minValue or maxValue attributes defined on the parameter to also be within this range. What is not so clear is how I should interact with a control that is bound to a parameter with a ParameterType of Percentage_t. My thoughts are that any control displaying a percentage should display a value of 45% to the user as 45 as opposed to 0.45. However if i work on this assumption and i want to set the default value of the contol to 45%, should i define initValue as 45 or 0.45? Similarly if I am working with a StateRule where the value in another control (e.g. a Dropdown) should set the value of a control bound to a percentage ParameterType, should the state rule define the value attribute as 45 or 0.45. I guess this will also apply to increment if the control is a spinner, should an increment of 1% be defined as 0.01 or 1? What are peoples thoughts on this and how have others implemented? Thx. Neil [You can unsubscribe from this discussion group by sending a message to mailto:[email protected]] -- You received this message because you are subscribed to the Google Groups "Financial Information eXchange" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/fix-protocol?hl=en.
