简体   繁体   中英

Trading View: how to use the fields from invite-only indicator, inside of my custom pine-script study?

I am using an " invite-only " script, as a custom indicator. When the script is applied on the chart and I manually try to add an alert over this script, I can see there are some related fields which I can manage on the alert dialog. What I want to accomplish is to write a pine-script study where I will be able to call alertcondition(condition, title, message) and inside of the condition to use the custom fields which are indicator specific only. Considering that I don't have access to the code of the indicator, I can not alter the code from the " invite-only " script.

Is there any way which I can use the indicator related fields for creating the alert condition inside of my pine-script study? Any link / reference will be helpful, as I was not able to find any so far.

You can use another indicator as an input source.

data = input(title="Data", type=input.source, defval=close)

In the Data input dropdown, you should see the names of the plots of the invite-only indicator.
From there on, you can use that value in an alert.
For details, see How to code an input option for TradingView's 'apply indicator on indicator' feature?

This might be worth looking into. With luck the invite-only indicator produces output that can be used as an external source for this script:

https://www.tradingview.com/script/dYqL95JB-Backtesting-Trading-Engine-PineCoders/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM