[This message was posted by Scott Atwell of American Century Investments 
<scott_atw...@americancentury.com> 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/826f0bd2 - PLEASE DO NOT REPLY BY MAIL.]

> > You would create a StrategyEdit and reference the standard field with
> > "FIX_" its field name (eg "FIX_Side")
> >
> > Thus:
> >
> > <val:StrategyEdit errorMessage="Side must be Buy or Buy Minus">
> > <val:Edit logicOperator="OR"> <val:Edit field="FIX_Side" operator="EQ"
> > value="1"> <val:Edit field="FIX_Side" operator="EQ" value="3">
> > </val:Edit> </val:StrategyEdit>
> >
> > This assumes that the OMS/EMS application is "providing" the FIX
> > standard field information to the FIXatdl component.
> 
> Thanks for the reply. But this solution is for validation. I would
> like to do that in the Layout. Because I don't want that the user
> have the possibility to choose "Sell" if the Algo works only with for
> "Buy" order.

Perhaps this:

<lay:Control ID="c_RadioButtonSell" xsi:type="lay:RadioButton_t" label="Sell">
  <flow:StateRule visible="false" enabled="false" value="{NULL}">
    <val:Edit logicOperator="OR">
      <val:Edit field="FIX_Side" operator="EQ" value="1">
      <val:Edit field="FIX_Side" operator="EQ" value="3">
    </val:Edit>
  </flow:StateRule>
</lay:Control>


[You can unsubscribe from this discussion group by sending a message to 
mailto:unsubscribe+100932...@fixprotocol.org]

-- 
You received this message because you are subscribed to the Google Groups 
"Financial Information eXchange" group.
To post to this group, send email to fix-proto...@googlegroups.com.
To unsubscribe from this group, send email to 
fix-protocol+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fix-protocol?hl=en.

Reply via email to