Giter VIP home page Giter VIP logo

parsesig's Introduction

Parsesig

A Telegram program that forwards Forex Signals from one Telegram group or channel to another

Listens for message events on CHATINPUT channel that matches the Regex pattern ^(BUY|SELL)\s([A-Z]*)\s[\(@at\s]*([0-9]*[.,][0-9]*)[\).] and passes it with pasig() Engine

                                |     #EURUSD
BUY EURUSD (@ 1.0877)           |     BUY📈1.0877
Take profit 1 at 1.0897         |     ✅TP 1.0897
Take profit 2 at 1.0927         |     ✅TP 1.0927
Take profit 3 at 1.0977         |     ✅TP 1.0977
Stop loss at 1.07978            |     🛑SL 1.07978

Sigparser takes the following environment variables or configure .env file in the project directory Main pair

CHATINPUT=-12345678901234
CHATOUTPUT=-1234567890123

Test pair

TESTINPUT=-12345678901234
TESTOUTPUT=-1234567890123

All matching messages from the channel set in the CHATINPUT environment variable is forwarded to the channel set in the CHATOUTPUT environment variable same goes for the test variables

Heroku setup


  • Create new Heroku app on your Heroku account.

  • Link app to using the gihub option and select the repository

  • From terminal set git heroku remote url

    git remote set-url --add heroku https://git.heroku.com/{your_app_name}.git
    heroku login
  • After build and deploy succeed, check for the number of running dynos

    heroku ps

    this application is define from the Procfile as a worker process, on first build number of dynos=0

  • Set environment variables on heroku, goto settings and reveal config vars and set key:value Start up one dyno with a single process

    heroku ps:scale worker=1

parsesig's People

Contributors

richardokonicha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.