6.4 KiB
6.4 KiB
# Trade Alerts Test (20 min)
###Preparation
- Put the following in spark.conf on the server (we need complete control over the system trades, i.e., those in the trade ticker):
ExchangeSim { value { merged_with_md: false } } - Make sure your volume is turned up.
- Open the Global Alerts Dialog (Settings -> Alerts).
- [Optional] Open the trade ticker (with all securities), to serve as a visual aid to identify expected/unexpected sound-alerts, or lack thereof.
###How To #####Add an Alert:
- In the Global Alerts Dialog, select the 'Trade Alerts' tab, if not already selected.
- Use the 'Click to Add..' hyperlink to add an alert.
- Expectations:
- a new alert row should be added to the grid
- it should have the following defaults (not all columns have explicit defaults):
- On/Off switch: 'On'
- Security: 'None'
- Price Condition: 'None'
- Size Condition: 'None'
- Side: 'Buy & Sell'
- Expectations:
- Use the controls inside of each cell to define the alert conditions/criteria.
- In the Sound cell, click the play button to hear a preview (perhaps it would be better if the play button were removed, and the sound played upon selection). #####Delete an Alert:
- In the Global Alerts Dialog, select the 'Trade Alerts' tab, if not already selected.
- Click the 'X' button on the left side the [alert]row you wish to delete. #####Force a Trade:
- Enter an order for the appropriate security (use a 1 lot unless otherwise specified, as this eliminates the potential for orders to continue working after a trade is triggered).
- Enter an order for the same security on the opposite side, at the same price to cause a trade (use the same size as the first order unless otherwise specified).
- Note: the aggressor side is the side that triggered the trade. If both orders are placed at the same price, the second order is the aggressor. The alert's 'Side' condition refers to the aggressor side.
###Test Steps #####PART I: Security Condition (3 min)
- Delete all alerts.
- Add an alert with the following conditions:
- Security: a specific security. This security will be referred to as 'A'
- Click 'Apply' to save the new alert.
- Force a trade to happen for 'A':
- Expectation: the appropriate sound is played.
- Return to the Global Alerts Dialog, remove the 'A,' and replace it with a different one. This new security will be referred to as 'B.'
- Force a trade to happen for the 'A.'
- Expectation: no sound is played.
- Force a trade to happen for 'B.'
- Expectation: the appropriate sound is played.
- Return to the Global Alerts Dialog, select a different sound, then click 'Apply.'
- Force a trade to happen for 'B.'
- Expectation: the appropriate sound is played.
PART II: Symbol Condition (3 min)
- Delete all alerts.
- Add an alert with the following conditions:
- Security: a specific symbol with 2 or more securities. This symbol will be referred to as 'A.'
- Force a trade to happen for 2 different securities of this symbol.
- Expectations: the appropriate sound is played for both trades
- Force a trade to happen for a security that is not of this symbol.
- Expectations: no sound is played. #####PART III: Price Condition (4 min)
- Execute the following steps for each price condition mode:
- Greater Than
- Less Than
- Between
- Not Between
- Delete all alerts.
- Add an alert with the following conditions:
- Security: all (add each exchange to enable for all securities)
- Price: a condition with the mode you aim to test.
- Any real number will suffice for Greater/Less Than modes.
- For the 'Between/Not Between' modes, the first number is the exclusive minimum, and must be less or equal to the second number, which is the exclusive maximum.
- Note: for certain combinations of security-ticks and min/max values, the min/max may to behave inclusively due to rounding errors. We should address this soon, but is not a showstopper at the moment.
- Force a trade to happen that satisfies the price condition (remember to use a security with the appropriate symbol).
- Expectations: the appropriate sound is played.
- Force a trade to happen that does NOT satisfy the price condition
- Expectations: no sound is played. #####PART IV: Size Condition (4 min)
- Execute the following steps for each size condition mode:
- Greater Than
- Less Than
- Between
- Not Between
- Delete all alerts.
- Add an alert with the following conditions:
- Security: all (add each exchange to enable for all securities)
- Size: a condition with the mode you aim to test.
- Any real number will suffice for Greater/Less Than modes.
- For the 'Between/Not Between' modes, the first number is the inclusive minimum, and must be less or equal to the second number, which is the inclusive maximum.
- Force a trade to happen that satisfies the size condition (remember to use a security with the appropriate symbol).
- Expectations: the appropriate sound is played.
- Force a trade to happen that does NOT satisfy the size condition
- Expectations: no sound is played. #####PART V: Side Condition (4 min)
- Execute the following steps for each Side mode:
- Buy
- Sell
- Buy & Sell
- Delete all alerts.
- Add an alert with the following conditions:
- Security: all (add each exchange to enable for all securities)
- Side: choose the side(s) you aim to test.
- Force a 'buy aggressor' trade to happen.
- Expectations: a sound is played if Side is either 'Buy' is included in the side condition, otherwise no sound is heard.
- Force a 'sell aggressor' trade to happen.
- Expectations: a sound is played if Side is either 'Sell' is included in the side condition, otherwise no sound is heard. #####PART VI: On/Off (2 min)
- Delete all alerts.
- Add an alert. Assign the condition(s) and sound of your choosing (remember to set the security field, as 'None' effectively turns the alert off).
- Enter a trade that satisfies the condition
- Expectations: the appropriate sound is played
- Return to the Global Alerts Dialog, turn the alert off (different from delete), then click 'Apply.'
- Enter a trade that satisfies the condition
- Expectations: no sound is played
- For good measure, return to the Global Alerts Dialog, turn the alert back on, and click 'Apply.'
- Enter a trade that satisfies the condition
- Expectations: the appropriate sound is played