ATDL - Condotional selections

Hi All,

I am trying to setup the following scenario on my ATDL for one of our ALGO parameters not sure if it’s possible to be honest…

if you click IWouldSizeType box and select Percent then I would% appears, if you choose Shares then I Would Shares below, i could not give a screenshot of what i hope it to look like due to being a new user sadly…

I also need to make sure the shares is unlimited and percentage has a max of 1% - 100%

Currently i have this:

<lay:Control xsi:type=“lay:DropDownList_t” ID=“IWouldSizeType” parameterRef=“IWouldSizeType” label=“I Would Size Type”
tooltip=“Specify the reference type for I Would Size.”>
<lay:ListItem enumID=“NONE” uiRep="" />
<lay:ListItem enumID=“Shares” uiRep=“Shares” />
<lay:ListItem enumID=“Percent” uiRep=“Percent” />
</lay:Control>

Thanks JR

What you’re looking for is StateRule. See https://www.fixtrading.org/packages/implementing-fixatdl-technical/ slide deck and refer to slides #24 and 33 for an example, in addition to the FIXatdl spec. StateRules let you control behavior (and visibility) of Control, based upon a condition, or state.

Hi Jack,

The alternative I have found in a number of situations to this would be using two FIX tags - one for the ‘type’, the other for the ‘value’ (without having a separate box for % or qty/shares) - then downstream in your logic you translate this value into the correct parameter using the type as a qualifier.