[This message was posted by Steve Wilkinson of Cornerstone Technology Limited <[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/7e43cd7e - PLEASE DO NOT REPLY BY MAIL.]
Neil - I agree this is open to interpretation. For Atdl4net, I took the following from the definition of Edit/@value as my inspiration: "When Edit is a descendant of a StateRule element, Edit/@value refers to the value of the control referred by Edit/@field. If the control referred by Edit/@field has enumerated values then Edit/@value refers to the enumID of one of the control’s ListItem elements. When Edit is a descendant of a StrategyEdit element, Edit/@value refers to the wireValue of the parameter referred by Edit/@field." On this basis, I assume everything to do with controls is about the visual/end-user representation - in this case, an initValue of "50" should put the value 50 in a percentage field, but transmit 0.5 on the wire - whereas everything to do with parameters I take to be wire value, so a constValue of 0.25 would be shown as 25% on the UI but sent on the wire as 0.25. I'd be interested to hear others' views here - perhaps it is an area of the spec we could tighten up (or perhaps I have missed some fine print somewhere...) Steve. > 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.
