OPEN-SOURCE SCRIPT

[pp] Signal Generator

Updated
Research and Development Tool.

For anyone who is familiar with working with digital signals (audio/electrical engineers) you might appreciate this Signal Generator.
You can select and vary 4 different types of signals.


Logistic Map
If you're not familiar with the logistic map, then go watch a youtube video. By default the equation is meant to represent chaos and is a good alternative for random number generation.


Random
This uses the built-in random number generator. I'm not sure if it's better to use this or the logmap default settings. Either way, you have a choice.


Unit Impulse
Good for creating a transient impulse.


Step Impulse
Similar to the unit impulse. Except constant and not a transient.


Synthesizer
It comes with 4 wave functions (Sine, Triangle, Square, Saw) that can be combined for additive synthesis. Each wave function contains its own respective phase and amplitude control.


Credits
Many of these functions were taken from pinecoders.com/techniques/dsp/ with the exception of the logistic map. I simply aggregated them all into this toolkit for ease of use.


How to use
This is not a trading indicator. This is meant to be used for research and development. You could use it to test strategies, by generating white noise with the logmap and creating trading signals. Or you could use it for teaching and learning. Using the constant data as a dependable, repeatable resource.

Release Notes
Updated Signal output.

Included two new signal outputs:
+1 and -1
RSI

I found these two useful additions good for testing external scripts that depend on signals.
digitalsignallogisticmapequationlogmapOscillatorssignalsignalgeneratorsynthesizer

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Trade, Code, & Travel.

pinescriptstrategy.com
Also on:

Disclaimer