Module 2: Analytics

Module 5: Cloud

FAQ

PineConnector Docs
PineConnector Docs
AlphaTrend Strategy

AlphaTrend Strategy

AlphaTrend Strategy

💡
Ready to streamline your trading process and increase efficiency?

Try PineConnector — Free →

We adapted a popular PineScript on TradingView, created by KivancOzbilgic, to be compatible with PineConnector. The strategy can be used to trade forex, stocks, futures, crypto and other instruments.

We recommend that paper trading should be done first, before running on your live trading accounts. With this script, an alert will be automatically trigger and will execute a trade on your MT4/5 terminal when your terminal is connected to our server – ideal if you are day trading or swing trading.

Implementation of the strategy

1. Create a new script

At the bottom of your TradingView tab, click "Pine Editor".

image

At the bottom panel, click "Open" and then click "New blank indicator".

image

You will see the default code shown in the attached image:

image

2. Attach the code

3. Add the alert code

The alert code added should be the following:

💡
Update the License ID Instead of the License ID 60123456789, input your PineConnector License ID.
if buySignalk and showsignalsk and O1 > K2 ? AlphaTrend[2] * 0.9999 : na
    alert('60123456789,buy,' +syminfo.ticker+ ',risk=1', alert.freq_once_per_bar_close)

if sellSignalk and showsignalsk and O2 > K1 ? AlphaTrend[2] * 1.0001 : na
    alert('60123456789,sell,' +syminfo.ticker+ ',risk=1', alert.freq_once_per_bar_close)

4. Save the code

5. Add Indicator to Chart

6. Create alerts

image
Syntax Builder2Syntax Builder2