# New toPercent Higher-Order Indicator

**URL:** <https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578>\
**Category:** Custom Drawings\
**Created:** [May 4, 2022, 7:59pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578 "2022-05-04T19:59:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [May 4, 2022, 7:59pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/1 "2022-05-04T19:59:32Z")

</div>

I’ve been seeing a lot of people want to ‘overlay’ different indicators, especially indicators that work best in their own chart space (like RSI, MACD, and other oscillators). The issue with overlaying indicators and especially oscillators is the scale of the indicators used. Typically the scale doesn’t match up well. But I realize some other platforms natively support this, so I went ahead and made an indicator who’s entire purpose is to be used as a wrapper around an input indicator. The indicator is called `toPercent` and it transforms a set of data into a value between 0-100 using a standard statistical normalization function multiplied by 100.

[Install it here](https://trader.tradovate.com/?shareable=fe7ca7cd-58b9-4490-8736-6ddaa8836f14).

Use it in a Worksheet, a period of 0 considers all loaded elements, while a period of anything greater than zero will consider that number of consecutive elements.

[![](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/c/c070736d75cfd1183ad131ed9bf3f36801949407.png) ](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/c/c070736d75cfd1183ad131ed9bf3f36801949407.png)

Or take another indicator’s output as input. First add the base indicator and indicator you want to convert to a percent value. Then add the `toPercent` indicator from ‘Utility’ → ‘toPercent’. Under ‘Input’ choose one of the output values from the indicator you want to convert. Then under ‘Add as…’ choose ‘Area’ and select the base indicator. Here’s an example using the builtin indicators MACD and RSI:

Put RSI and MACD in the space:

 ![toPercentChart](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/f/f2ef2e76f7f1f72073047fde9b1589b3de2b8ea0.png)

Add the `toPercent` indicator:

 ![toPercentChartSettings](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/6/62b913d49a49566ecb1a597a31e77ec40e82549f.png)

Result, `macd` normalized value is plotted over RSI:

 ![toPercentChartResult](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/9/9e4d4bbe68546c7508c3d842aa2f871c03ab7eef.png)

You can make the base indicator a `toPercent` chart to convert the indicator you want to overlay into a percent value as well. RSI already works on a 0-100 scale, but many oscillators do not.

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [May 16, 2022, 3:49am UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/3 "2022-05-16T03:49:49Z")

</div>

Hi, When using the toPercent Indicator how do you change the settings for the input indicator? ex: if I replicate your example, how do I set the MACD settings or does it use whatever is the default settings for the indicator?

Thanks

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [May 16, 2022, 1:06pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/4 "2022-05-16T13:06:10Z")

</div>

Depends on how you configure the MACD. If you use Worksheets like my example, you can parameterize the MACD within the worksheet. Be aware that MACD exposes several outputs, so you’ll have to choose one with the `.` operator. You can also use `toPercent` in a regular chart space. Add it like a normal indicator, but look at the ‘Input’ dropdown and choose the output from your charts that you want to convert `toPercent`.

Here’s how to use MACD with `toPercent` in a worksheet. Remember `macd` could be any indicator output value. Whatever parameters that indicator accepts, you’ll need to provide (or it will go to default if you do something like `macd().macd` for example). `macd` has `fast`, `slow`, and `signal` parameters. Here, 12, 26, and 9 (the defaults, I may just as well have called it with no params).

 ![2022-05-16](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/c/cef70959c319e046c08ccb9079f6799f45f1d84a.png)

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [May 16, 2022, 7:05pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/5 "2022-05-16T19:05:46Z")

</div>

Okay thanks for the clarification

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [June 8, 2022, 1:48am UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/6 "2022-06-08T01:48:26Z")

</div>

Hi, sorry to both you…I’ve been trying to get this to work with “Tiki Ticks & a 30-day moving average”  
Not sure what I’m doing wrong but it keeps laying the MA towards the bottom of the “Tiki Ticks” chart. Can you please give a suggestion?

Thanks

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [June 8, 2022, 12:14pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/7 "2022-06-08T12:14:54Z")

</div>

You could use the `toPercent` indicator over only the Tiki Ticks indicator, then use the 30 day MA over the resulting graph instead of trying to convert it from the raw value, given that is what you’re trying to do. Also double check what you take as input for the 30 day MA, the default value is `close` which will average the candle close - sounds like you’re looking for an average over the Tiki Ticks indicator, which would require you to take a value returned by that indicator as an input instead.

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [June 8, 2022, 1:48pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/8 "2022-06-08T13:48:48Z")

</div>

Hi, I think that’s what I did. I also tried to add it to the volume.  
See how the MA lays at the bottom.

 ![Screen Shot 2022-06-08 at 9.40.21 AM](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/3/3dc315e33369ccbacfa6e22bb47d44fb0e1ba6ac.png)

 ![Screen Shot 2022-06-08 at 9.47.05 AM](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/6/68cf223a4bfc2ce9154e37b16918025c9093b8e9.png)

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [June 8, 2022, 2:10pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/9 "2022-06-08T14:10:04Z")

</div>

I see, what you’re doing is turning the MA into a percent, then overlaying it onto your other indicator. `toPercent` turns a value into a percent and plots it between 0 and 100. So the MA will never exceed 100 or fall below 0 - it’s been converted to a percent value.

I think what you want is this - for `toPercent`'s input, take a Tiki Ticks output value, and ‘Add as’ a new Area. Then use the 30 period MA with the `toPercent` as an input, overlayed on the `toPercent` Area.

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [June 8, 2022, 5:27pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/10 "2022-06-08T17:27:46Z")

</div>

So what I’m trying to to test, is adding a MA to a chart that can be used as a filler. Something similar to clip I’ve atached.

 ![Screen Shot 2022-06-08 at 1.26.32 PM](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/5/5758485481717aad8ffa25ed24420b6275686c4c.png)

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [June 8, 2022, 5:32pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/11 "2022-06-08T17:32:24Z")

</div>

Oh for that, drop the `toPercent` altogether and just plot the MA with the Volume as input, over the volume Area for ‘Add as’.

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [June 8, 2022, 5:43pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/12 "2022-06-08T17:43:27Z")

</div>

Thank you very much.

---

<div class="post-metadata">

**Author:** ![KE\_vf](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@KE\_vf](https://community.tradovate.com/u/KE_vf)\
**Post date:** [February 12, 2023, 5:31pm UTC](https://community.tradovate.com/t/new-topercent-higher-order-indicator/4578/13 "2023-02-12T17:31:49Z")

</div>

Good day. I’m sorry to bother you again but I have an issue trying to combine indicators that I just can’t figure out.

1st I’m trying to combine the ADX with Signal with a line marking the 20 position (this one has a line horizontal line), with the MACD ( only the zero and signal line). I’m trying to combine them to cut down on space. The goal is to easily see when the MACD Signal line crosses the Zero Line at the same time as the DI+ or DI- Line crosses the 20 line. I’ve added a screenshot of the two setup independently.

Thanks for you help

 ![Screen Shot 2023-02-12 at 12.31.14 PM](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/b/b38fa8ee198acd66441a5ecfc4a4837cf3a16fd8.png)
