FlintMonk

PlurexSignalIntegration

Library "PlurexSignalIntegration"

Provides tools for integrating Strategies and Alerts into plurex.io signals.

plurexMarket() Build a Plurex market from a base and quote asset symbol.
  Returns: A market string that can be used in Plurex Signal messages.

tickerToPlurexMarket() Builds simple Plurex market string from the syminfo
  Returns: A market string that can be used in Plurex Signal messages.

simpleMessage(secret, action, marketOverride) Builds simple Plurex Signal Messages
  Parameters:
    secret: The secret for your Signal on plurex
    action: The action of the message. One of .
    marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
  Returns: A json string message that can be used in alerts to send messages to Plurex.

executeStrategy(secret, openLong, openShort, closeLongs, closeShorts, marketOverride) Executes strategy actions with Plurex Signal messages
  Parameters:
    secret: The secret for your Signal on plurex
    openLong: Strategy should open long if true, aggregated with other boolean values
    openShort: Strategy should open short if true, aggregated with other boolean values
    closeLongs: Strategy should close longs if true, aggregated with other boolean values
    closeShorts: Strategy should close shorts if true, aggregated with other boolean values
    marketOverride: Optional, defaults to the syminfo for the ticker. Use the `plurexMarket` function to build your own.
Библиотека Pine

В истинном духе TradingView автор опубликовал этот код Pine как библиотеку с открытым исходным кодом, чтобы другие разработчики Pine из нашего сообщества могли использовать его повторно. Поблагодарим автора! Вы можете использовать эту библиотеку приватно или в других публикациях с открытым исходным кодом, но повторное использование этого кода в публикации регулируется Правилами поведения.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать эту библиотеку?

Скопируйте текст в буфер обмена и вставьте в свой скрипт.