Inquisitor (Advanced)

Before reading the help page on the advanced inquisitor it is recommended (and assumed) that you have read the help file on inquisitor (Lite).

The 'Inquisitor (Advanced)' window can be accessed via the commands drop down menu or the commands toolbar:

The advanced inquisitor is designed to give you much more customizability than the inquisitor (lite). Things you can do in the advanced inquisitor, that you can't in the lite inquisitor are:

* Make groups of rules and control them with 'AND' & 'OR' operators.
* Use just about any indicator available in PhoenixAI in your scan rules.
* Use any parameters of your choice on those indicators (Rather than semi predefined parameters).
* Scan for any indicator cross overs (where applicable/relevant).
* Apply smoothing to the indicators you're scanning for.
* Use the 'Bars Ago' parameter to scan for events that occurred in the past.
* Specify each filter to scan on daily, weekly and/or monthly data.
* Scan for multiples of indicator values (eg. the first part of group 1 in the example below).

Building on the principles you learnt about the Inquisitor (Lite), the following case study will include the features listed above. If you like you can work through the example below in your own copy of PhoenixAI. Once you've finished, you should then posses the principles you need to build just about any possible scan in PhoenixAI.


In the example below we will be scanning for:

Volume for the current day is 2 times the volume average of the last 10 days
Price 'close' for the current week is above the price 'close' for the previous week.


5 day Trix indicator crosses above a 10 day Trix indicator
The %D (14,3) crosses above the value of 20.

You can refer back to these rules above to help you through the steps below.

A scan like this might be useful if you're looking for a stock that has had a big boost in volume, and the price is already heading up (as defined in group 1). Then in group 2 we're looking for some kind of confirmation from our chosen indicators that the stocks are turning bullish.

To start this off we'll need to first build the structure of the 1st group. To do this:

Step 1: On the left of the window click on 'Add Rule'.

A default rule will then appear in you rule list on the left of the window.

Step 2: Then on the left of the window (next to 'add rule') click on 'Group'.

This will now create a pair of brackets for our first rule to nest in.

Step 3: Now click on the 'Add Rule' button again.

An 'AND' operator will automatically appear in between the rules and now the structure of the first group is set. Well Done!

Next we'll want to define the 2 rules in the first group so, the first rule in the group should still be highlighted.

Step 4: On the right hand side of the window scroll down the list of indicators and click on 'Volume'.

OK, the first part of the rule is set. Next you would usually set the operator, but since by default it's set to 'Above' you won't need to change it. So that just leaves the last part of the rule.

Step 5: In the rule editor at the top of the window click on the last part of the rule (3rd line down).

Step 6: Then in the bottom part of the window click on 'Volume Average'.

Step 7: On the right of the window will be a list of arguments. Clicking in the box next to each argument will allow you to either type in a value or, in some cases, choose an item from a drop down menu. Set the period to 10, the average should be simple and the multiplier should be set to 2. Once you put in a value press the 'enter' button on your keyboard.

The 'rule editor' at the top of the window should now look like this:

Done! You've made your first rule in the advanced inquisitor. Now lets make the second one.

Step 8: In the rule list in left of the window click on the second rule.

Step 9: Then under that in the list of indicators click on 'OHLC'.

Step 10: In the left of the window you will see 2 parameters... 'OHLC' and 'Displacement (Bars ago)'. Click in the box next to OHLC and a drop down menu will appear, from the drop down menu choose 'Close'.

Step 11: Click in the box next to 'Displacement (Bars Ago)' and type in '0'. Typing 0 (zero) means that it's referring to the current week's close.

Lastly for this rule we'll need to set it to look at weekly data (instead of daily by default).

Step 12: Under 'Data Frequency' click the radio button next to 'Weekly'.

The first part of the rule should now look like this:

As the operator required for this rule is 'Above' you will not need to click on the operator part (middle) of the rule at the top of the window.

Step 13: Click on the 3rd line of the rule in the rule editor at the top.

Step 14: Change the data frequency to weekly by clicking its radio button.

Step 15: Once again choose 'OHLC' from the list of indicators.

Step 16: Change the arguments on the right to OHLC = Close, as you did in the first part of the rule. Then change the 'Displacement (Bars ago)' to 1 and press 'enter'.

Changing the 'Displacement (Bars ago)' to 1 means that it will look at the close price from 1 week ago (last week).

Extra Information: Many of the indicators don't have 'Displacement (Bars ago)' in the arguments section. That is why down in the bottom right of the window there should always be another option to click on 'Bars Ago'. You don't need to change anything in that section for this example, but it will come in handy for other indicators in the future.

The rule editor at the top should currently look like this:

Great! You're half way there. You're now finished the first group of rules!

To create the second group of rules once again we'll build the structure first.

Note: You don't have to create the structure of your groups first for them to be able to function properly. We are merely creating the structure first to make it easier for you to follow the instructions. The best way to get used to building and editing groups of rules is simply to play around, click a few buttons and see what happens - except don't do that now or you'll wreck what you completed in the last 16 steps. So, we were about to build the structure of the second rule...

Step 17: Click on the second bracket of the first rule.

Step 18: Click on 'Add rule'.

Step 19: Click on 'Group'

Step 20: Click on 'Add rule'.

OK! Your second group's structure is complete. Now lets define the first rule in the group.

Step 21: On the right, click on 'TRIX Indicator' from the list of indicators.

Step 22: In the argument's section on the right, change the term to 5.

This time we will need to change the operator in the rule editor.

Step 23: In the rule editor at the top, click on 'above' (the middle part of the rule). A menu will appear; from the menu choose 'Crosses Above'.

Step 24: Now click on the last part of the rule in the rule editor at the top.

Step 25: Once again, choose 'TRIX Indicator' from the list at the bottom.

Step 26: Change the term to 10 and press 'enter'.


Notice how on the left of the window, between each of the rules and groups you've got an 'AND' operator? Well we're going to need to change the and operator in the second group to 'OR'. To do this...

Step 27: Click the 'AND' in between the 2 rules in the second group.

Step 28: On the right of the window click the 'OR' radio button.

Excellent! You're almost there, only one rule to go.

Step 29: On the left of the window, click on the last rule in the second group.

Step 30: From the list of indicators click on %D Slow.

Step 31: Set the parameters in the right to the following:

Term = 14
Smoothing Factor = 3
Overbought Line At = 80
Oversold Line At = 20

Step 32: In the rule editor at the top change the operator to 'Crosses Above'.

Step 33: Click on the the last part of the rule in the rule editor.

Step 34: Choose #constant from the list of indicators at the bottom.

Step 35: On the right change the value to 20 and press 'enter'.

The rule editor should now look like this:

Congratulations! You've finished your first scan. If you've got a bottle of something open, now is the time to take a sip, you deserve it.

Obviously once you're used to building scans in the advanced inquisitor, you won't have to break it down into so many steps, but hopefully since this tutorial has gone in to a fair bit of depth, you'll start to understand the principles behind how it all works.

As you can see below all of you rules are listed in groups on the left. To view and/or revise your rules simply click on them and use the rule editor at the top as we have been doing throughout this tutorial.

Lastly you can generate the report by clicking on 'Genrate Report' on the left.

If you like you can also save your filter for later by clicking 'File' -> 'Save As'. For more information on saving and altering your inquisitor files there is a separate page dedicated to filling you in on this.

Related Pages:

Inquisitor (Lite)
Saving and altering inquisitor files
Inquisitor Reports