To set the condition for Buy Signal or Sell Signal in TradingView, follow these steps:
Step-by-Step Guide to Set Alerts in TradingView:
Open the Alerts Panel:
In TradingView, look for the Alerts button on the top panel of the platform (it looks like a clock or bell). Click it to open the Alerts panel.
Create a New Alert:
In the Alerts panel, click on the "+" button or "Create Alert" button.
Choose the Condition:
In the Condition dropdown, you will see an option for the script you are using (e.g., your strategy script "Heikin-Ashi + SSL Strategy (Multi-Timeframe)").
Once you select your strategy from the dropdown, you'll see the available alert conditions you defined in the script.
"Buy Signal": This corresponds to the alert condition for the Buy signal.
"Sell Signal": This corresponds to the alert condition for the Sell signal.
Choose Alert Action:
After selecting the condition (either Buy Signal or Sell Signal), you need to define the alert actions.
Notify on App: Receive a notification on the TradingView app.
Show Popup: Show a pop-up notification on the screen.
Send Email: Receive an email alert when the condition is met.
Webhook URL: Send the alert to a webhook endpoint (useful for integration with other tools).
Choose the action that suits you best.
Set Alert Expiration:
You can set an expiration date for the alert, or choose to keep it active until you manually cancel it.
You can also choose how often you want the alert to trigger: once, once per bar, or every time the condition is met.
Create the Alert:
Once you have selected all the necessary options, click Create to finalize the alert.
Example Walkthrough:
If you want to create an alert for a Buy Signal:
Select the condition "Buy Signal" from the dropdown menu.
Choose your preferred alert action (e.g., notify on the app).
Set the expiration and alert frequency.
Click Create.
Similarly, if you want to create an alert for a Sell Signal:
Select the condition "Sell Signal" from the dropdown menu.
Choose your preferred alert action (e.g., notify on the app).
Set the expiration and alert frequency.
Click Create.
What Happens Next:
Whenever the specified conditions for either Buy Signal or Sell Signal are met in the strategy, TradingView will automatically trigger an alert based on your settings.
You can create multiple alerts for each condition if you'd like to track both Buy and Sell signals simultaneously.