Custom PCF % True Indicator
The custom PCF % true indicator allows you to create an indicator that returns a value between 0 and 100 for the number of times a boolean (True/false) formula returned true over a specified number of bars
To add a custom PCF % true indicator to your chart click the add plot button
![](https://media.screensteps.com/image_assets/assets/008/152/397/original/7175a9d7-cd0e-4c0b-a461-61eb6e5fd7e8.png)
You can also press the forward slash "/" key to open the add plot menu
Type PCF into the search bar
![](https://media.screensteps.com/image_assets/assets/008/152/399/original/5c213578-954b-46c9-9ea3-ccf0a860063d.png)
Select Custom PCF % true Indicator from the list of available indicators
![](https://media.screensteps.com/image_assets/assets/008/152/401/original/92ff0eac-e8de-45f2-9fd3-36a511eea3ce.png)
This will plot the indicator on your chart and open the editor for that indicator
![](https://media.screensteps.com/image_assets/assets/008/152/403/original/8f417eff-98f1-4b35-b49b-9dfd6e65a892.png)
By default the boolean formula used is Close "C" is greater than the previous Close "C1" and the period is set to 1. This means that the indicator can only return a value of 0 (Not true) or 100 (True). Let's change the period to 10 then click OK to apply the changes
![](https://media.screensteps.com/image_assets/assets/008/152/405/original/d8cb581c-a2c8-494a-a288-06304e07355c.png)
You can now see there are multiple values returned indicating the number of times over a rolling 10 bar period the boolean condition C>C1 returned true
![](https://media.screensteps.com/image_assets/assets/008/152/407/original/b7addf26-c6b8-453f-84dd-77d346dd0191.png)
The value of 50 means that out of the latest 10 bars C>C1 returned true 5 times, the value of 60 means that at that point in time 6 of the last 10 bars returned true. For more information on creating PCF indicators please visit our PCF help index