Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use tradingview Index to dock the inventor's Real disk Robot

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to use tradingview indicators to dock the inventor's real disk robot. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you.

1. background introduction

TradingView is a very good quotation drawing tool ~

Pine script is also a variety of fairy operations, powerful and mighty!

Back test, alarm, all kinds of docking, is a very perfect financial tool ~

But there are two things that have been bothering fat friends...

one is the expensive membership system.

Second, the signal can be traded directly very few exchanges, seems to be two or three.

Today, our article is to take everyone to solve the problem of exchange docking ~

2. implementation method

The overall thinking is like this.

TV pine script-> signal alarm webhook -> local webhook server forward request-> FMZ bot receive request to operate

Then what about us, just take it step by step ~

...

first of all, you have a TV.

https://www.tradingview.com/

Next, let's set up an Alert first. See the picture below for details.

There are a few things to note in the diagram, when generating Alert,

Validity period, webhook address, Message content, must be done well.

"I know," he said,"but I don't know.

Webhook address, we put it down here first, wait for the local webhook service to be done and then come back and fill it in.

Message Here, it is best to have a design, in order to bot good distinguish which Alert sent the message,

Lentils Here is the general information-> XXX strategy, order volume, direction

Okay, that's it, the TV part is basically done!

...

Next, we'll fix the local webhook service!

this kind of thing, Google, everywhere is this framework, that framework.

Lentils are no longer recommended, just say their own kind.

It's a simple Python framework,

GitHub: https://github.com/shawn-sterling/gitlab-webhook-receiver

Safe, simple and convenient, of course... there are pits.

This little frame, it will!! Suicide! Please pay attention to this ~

so, i wrote another script on the server.

When he was in the middle of the night, he had a good time, and when he was in the middle of the night, he had a good time, and he had a good time. Give him a restart. It's been about two months now, and there hasn't been any signal loss ~

There is another point, TV only recognizes port 80 ~ service Don't mistake the port ~

Get here,

We've taken care of the Alert Message from TV,

So how do we get Bot?

I don't know if you've noticed FMZ's interface document at the bottom ~

We can pass some commands to our own little Bot via api!

The specific request example is here, the red box part is the request we need ~

There's also some preparation here,

FMZ API(avatar-> account settings->API interface),

A Bot that has been started (we want to get its ID, no matter what, first create a new ID), the number in the url of the general robot is ID ~

All right!

Come here!~ Let's modify the webhook service so that it automatically forwards messages to our lovely FMZ Bot~!

Finally, don't forget to backfill the webhook address to the TV Alert ~

(Format: http://xx.xx.xx.xx:80)

The following is the service code of the slag lentil change, you can refer to it

3. FMZ policy implementation

it talked about communication implementation.

well, in fact, we also need to do corresponding treatment in our Bot strategy.

To fix our reception process.

For example, Alert Message was originally designed.

I can do some play methods according to my preferences and specific designs ~ This depends on everyone's brain holes ~

The code is as follows, get the information, filter, do the operation, end ~

About how to use tradingview index docking inventor real disk robot to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report