How to use Morphlin delegation strategy to connect with TradingView?

Created by Developer Morphlin, Modified on Tue, 8 Nov, 2022 at 5:10 AM by Developer Morphlin

This article describes how to use the strategy on TradingView to place the delegation order using Morphine.

Please follow the process below:


Create alerts in TradingView

In order to be able to use TradingView's webhook feature, you need to have a paid TradingView account.


Sending alerts Morphlin

Here are the steps to create an alert and send to Morphlin:

  1. Create a New layout to start adding a strategy.
  2. Click on "Pine Editor" and start editing your pine source code, then select "Add to chart".

  3. After adding the strategy successfully, you can see the strategy displayed on the upper left of the chart. And click "...", then select "Add alert on...".

  4.  At the Create Alert section, you need to copy the Webhook URL provided by Morphlin and paste into the "Webhook URL" field under "Alert actions".
  5. Then paste the message provided by Morphlin in the Message field, and click "Create" to complete the setting.


After completing the above settings, when your TradingView alert is triggered, Morphlin will place an order for you to your designated exchange through the webhook of the received signal and content.  

Morphlin will assist you to open new positions, increase positions, reduce positions, and close positions according to the market price and the signal content. The Message provided by Morphlin already contains the required judgment content.

A new position will not be opened if:

  • Delegation strategy is not active. 
  • The exchange margin is insufficient. 
  • A signal to reduce the position when there is no open position.


What strategies or signals can I use?

You can find several strategy signal in Morphlin's Market. After purchasing the strategy, you can use the delegation strategy to connect to the exchange. In order to achieve the purpose of automation revenue. 

Or you can search any open source strategy in TradingView and connect Morphlin to start delegation trading.


Close delegation strategy

If you need to inactive he Morphlin delegation strategy, you can disable the bot on Morphlin's Strategy page. Or remove the alert from TradingView.


Can I use signals from non-Tradingview sources?

Morphlin supports any signals from non-Tradingview sources, as long as they are in the correct format.


What is Morphlin's message template?

The following are Morphlin's message template, the information content required by the delegation strategy to place an order. The only thing you need to do is paste this content into the Message field of the TradingView Alert to complete the setting.


{
    "exchange": {{exchange}}.
    "symbol": {{ticker}},
    "side": "{{strategy.order.action}}",
    "type": "market",
    "price": "{{strategy.order.price}}",
    "quantity": "{{strategy.order.contracts}}",
    "triggerTime": "{{timenow}}",
    "positionSize": "{{strategy.position_size}}",
    "marketPosition": "{{strategy.market_position}}",
    "marketPositionSize": "{{strategy.market_position_size}}",
    "prevMarketPosition": "{{strategy.prev_market_position}}",
    "prevMarketPositionSize": "{{strategy.prev_market_position_size}}",
    "memo": ""
}


Notes

- User should responsibility for your position management, Morphlin's is a tool to assist you on order management.

- The memo in the message template can use any custom text, but there is a length limit.

- By using TradingView, delegation orders only support TradingView's strategy type.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article