OPEN-SOURCE SCRIPT

Simple signals example for Risk Management Wrapper

Simple signals example for Risk Management Wrapper

The unique part is that there is a single variable used for both Buy and Sell conditions.
Technically, a variable can have an infinity of values, so why not use that in our favour.

A value of -1 is used for the SELL alert condition, and a value of +1 is used for the BUY alert condition.
The Risk Management Wrapper can read them and act accordingly.

Any simple indicator on TradingView that gives Sell or Buy signals in a single variable should work.
More complex indicators that give multiple kinds of signals may not work due to TradingView limitations.
educationalexampleMoving AveragesstrategyTrend Analysiswrapper

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?


Join the Discord Server for more info about the published tools.
discord.io/CryptoWorld
a Discord bot for Charting (TradingView and Heatmaps) is available

🟣 If you like any of my Invite-Only Tools, let me know

(DM or Discord for inquiries)
Also on:

Disclaimer