Giter Club home page Giter Club logo

ptmagic's People

Contributors

djbadders avatar hojoufotytu avatar jackterok avatar legedric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ptmagic's Issues

Unable to start PTMagic

Hi there.

I have gone through the installation steps for PTMagic and it is unable to start. Please find below error.
image

I have net enable IIS on my server. Do I need to do this?

I look forward to your response.

Active Global Settings always say Default?

Is this normal? Looks like it hasn't changed anything other than putting some coins into SOM. It is only using my default Pairs settings for values in "Active Settings" on the dashboard.

Cant see the GUI correctly

The GUI only shows Hyperlinks, some of the functions work but it's not looking good.
For some reason it's not loading the GUI
screen shot 02-19-18 at 05 54 am
I've tried several browser but with no luck. please help me :)

ARCHIVE HELP settings.analyzer.json

Guys need help, could you give me a strategy for me to use the original MAGIC configuration? Are you using LOWBB? I do not know which one to use.

please tell me what you think of my original

LOWBB = 25
GAIN = 0.5
PROFIT TRAILING = 0.05

I am a layperson and would like at least 2% a day, my wheel 24 hours a day in VPS

AND I'M VERY HAPPY TO BE PART OF THIS TIME MAGIC

Unhandled Exception

schermafbeelding 2018-02-17 om 14 49 17

Tried to use PTMagic also for my Binance. Monitor works here but the bot spits out this message.

Telegram chat ID issue

If the chat ID is too big, the following error is displayed in browser:

Error.
An error occurred while processing your request.
Request ID: 0HLBMR8RCS0RQ:00000001
Failed to convert '-1234567891234' to type 'System.Int32'.

I guess it's because the id is bigger than 2,147,483,647

Multiple bot instances

Hey guys, love your work! I run multiple bots on my VPS. What is required to set up PTMagic to support multiple bots?

Forced to rename configuration filenames

On linux, my files are named like so:
PAIRS.properties , DCA.properties ...
as you know, linux is case sensitive, and your code tries to open PAIRS.PROPERTIES, even though i changed it to PAIRS.properties in the analyzer.settings .

Copy your PAIRS.PROPERTIES, DCA.PROPERTIES and INDICATORS.PROPERTIES from your Profit Trailer

Hi

I have done this, does that mean PTMagic will use these settings as default? Because I have changed these in the location in the guide and the monitor showed that it had set it self to "Default settings" but Profit trailer still using its own settings.

Though I can see that PT Magic has updated the Profit Trailer settings as it has updated with it's own messages on what it is doing.

Also, one more question, can we use PT Magic base settings or is it recommened we change these?

Many thanks
Gary

Supporting Poloniex, would it be possible ?

Thanks for great tool.
I'm setting up the ptmagic, and I found out that it supports currently exchange bittrex and binance, but not poloniex.

I temporary set-up to poloniex configured Profit Trailer with Binance setting. Well monitored but incompatible result, because as you know, added currency settings are improper to Poloniex.

So, would you have a plan to support Poloniex ?

ETH Balance Tracker

image

Does PT Magic recognize the value in ETH if you're trading on the ETH market?

Monitor HTTP 500

# curl -vvv http://localhost:5000
* Rebuilt URL to: http://localhost:5000/
*   Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 5000 failed: Connection refused
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 5000 (#0)
> GET / HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/7.55.1
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 16 Feb 2018 16:27:18 GMT
< Server: Kestrel
< Content-Length: 0

Absolutely no errors in the Monitor process output (actually no useful output at all).

# dotnet --version
2.1.4
# cat /etc/issue
Ubuntu 17.10 \n \l
# dotnet Monitor/Monitor.dll 
Hosting environment: Production
Content root path: /PTMagic
Now listening on: http://0.0.0.0:5000
Application started. Press Ctrl+C to shut down.

DCA calculation is incorrect

In each trigger, the bot buys the amount you currently have, but with the new price.
so if you buy with 1 BTC at first, and your first buy trigger is -3,
you'll buy at the price of 0.97.

Can you take into consideration all the buy triggers?

missing a file

When calling dotnet PTMagic.dll on *nix, it gives the following error:

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/ptmagic/'.

Everything is configured in accordance with the guide provided for *nix systems. Here is the dotnet --info output:

.NET Command Line Tools (2.1.4)

Product Information:
Version:            2.1.4
Commit SHA-1 hash:  5e8add2190

Runtime Environment:
OS Name:     amzn
OS Version:  2
OS Platform: Linux
RID:         linux-x64
Base Path:   /usr/share/dotnet/sdk/2.1.4/

Microsoft .NET Core Shared Framework Host

Version  : 2.0.5
Build    : 17373eb129b3b05aa18ece963f8795d65ef8ea54

I don't have any experience with .NET, so at this point it's hard to figure out whether the problem is with my system, with the way I'm trying to launch PTMagic, or with the archive. I tried to look up the missing file but I don't think it'a part of any library.

PTMagic Monitor failed to update data

I've got everything up and running, cmd screen for the monitor is on and I can connect to localhost but then receive this message:

Monitor update failed!
PTMagic Monitor failed to update data. If this error does not go away by itself, please check the connection to your hosting

I've checked everything from the wiki twice. Can't seem to find a solution...

Monitor.dll / Frontend not Working properly

Hi there,

when I'm trying to access the Monitor my Monitor.dll process wents up to 90% CPU load.

I cant access the Dashboard and the Sales analyzer:

Monitor.dll:

image

PTMagic.dll:

image

Webinterface:

image

And sometime I get an JSON error at the Sales Analyzer Tab. I've set "StartBalance" manualy. Running in TestMode version 1.0.2 on dotnet 2.3.1 on Ubuntu Linux

Any ideas?

Just Tracking

Hi man,
There's no real issue. I use feeder and want to use this program for profit tracking as I love how it looks. How would I make it do this (i don't want it to trade or change any settings)? My trade history is on 99999

Telegram - Test Connection

Is there a way to test the telegram connection to PT Magic to ensure it is set up properly? Also, what messages should we expect to receive on Telegram?

Add PM2 Process File for Easy Process Management

I think this file should distributed with the PTMagic, and add it to the Mac/Linux wiki instructions.

Here's the file(s) I use for both PTMagic & PTMagic Monitor:

pm2-PTMagic.json:

{
  "apps": [
    {
      "name": "pt-magic",
      "cwd": ".",
      "script": "PTMagic.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": true
    }
  ]
}

pm2-PTMagic-Monitor.json:

{
  "apps": [
    {
      "name": "pt-magic-monitor",
      "cwd": ".",
      "script": "Monitor/Monitor.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": true
    }
  ]
}

This makes managing the PTMagic process on Linux/Mac machines and VPS servers.

getting the following error when starting Monitor.dll

root@profi:/var/opt/PTMagic/Monitor# dotnet Monitor.dll
Error:
  An assembly specified in the application dependencies manifest (Monitor.deps.json) was not found:
    package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1'
    path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
  This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
    aspnetcore-store-2.0.3.xml
root@profi:/var/opt/PTMagic/Monitor# 

What standard buy strategy for PTMagic?

After I run PTMagic they have parameter ALL_buy_value for various strategies.
I use LOWBB before with ALL_buy_value positive values, so your ALL_buy_value have negative values - So what strategy you use for standard from the box - EMASPREAD, EMAGAIN, LOWBB or etc.?

How to start PTMagic with pm2

Hey folks,

you can start the bot using pm2 with the following File:

pm2.PTMagic.json

{
  "apps": [
    {
      "name": "PTMagic",
      "cwd": ".",
      "script": "PTMagic.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": false
    }
  ]
}

Now the Monitor:

pm2.PTM-Monitor.json:

{
  "apps": [
    {
      "name": "PTM-Monitor",
      "cwd": ".",
      "script": "Monitor/Monitor.dll",
      "node_args": [],
      "log_date_format": "YYYY-MM-DD HH:mm Z",
      "exec_interpreter": "dotnet",
      "exec_mode": "fork",
      "autorestart": false
    }
  ]
}

Put both files in the PTMagic dir and start the processes with:
pm2 start pm2.PTMagic.json
pm2 start pm2.PTM-Monitor.json

This might be easier to handle for some people.

Best Regards

ERROR ON OPEN, DOES NOT WORK HELP ME

I did the whole procedure according to the wiki, I installed everything I needed, I followed the manual, but only from error when I open it, can anyone help me please? follows the error that I have attached, I already tried everything and nothing to give RIGHT
1

ERROR - Trading settings directory not found (/var/opt/pttrading/)

I am trying to run the command:

dotnet PTMagic.dll

But I am getting this error:

2018/02/17 12:37:47.598 ERROR - Trading settings directory not found (/var/opt/pttrading/)

What am I doing wrong?

my pt directory is "/var/opt/pt/"

I don't know where I change the "Trading settings directory"

Open Sub-Category for PTMAGIC on Discord.

Hi Developer, I hope you don't mind. PTMAGIC still very new & many of us is still very confusing on how to use it. Please allow me put a discord link to gather more people who is interested on PTMAGIC, either is installation issue & file settings.

Please join us for any discussion about PTMAGIC.

https://discord.gg/bYkmE4E

Can't connect to localhost

Everything went fine until i tried to connect to the monitor. Command window running with no errors. Tried in Chrome and IE. Get the same error, "This page can't be displayed"

Error on starting PTMagic...

Hi,

I am running this program on my computer but I am getting this error message whenever I try to start it up. I don't why it is saying anything about a D drive.


2018/02/19 12:35:16.008 FATAL - Error loading configuration! System.FormatException Could not parse the JSON file. Error on line number '6': '"TestMode": true, // If TestMode is active, no properties files will be changes
"ProfitTrailerPath": "C:\Users\Dave\Desktop\MainProfitTrailer\", // Path to your Profit Trailer main directory (use double backslashes for windows like C:\ProfitTrailer\)'. at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Globals.SystemConfiguration.LoadSettings(String basePath) in D:\Tools\PTMagic\Globals\SystemConfiguration.cs:line 24
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 41

Unhandled Exception: System.FormatException: Could not parse the JSON file. Error on line number '6': '"TestMode": true, // If TestMode is active, no properties files will be changes
"ProfitTrailerPath": "C:\Users\Dave\Desktop\MainProfitTrailer\", // Path to your Profit Trailer main directory (use double backslashes for windows like C:\ProfitTrailer\)'. ---> Newtonsoft.Json.JsonReaderException: Bad JSON escape sequence: \D. Path 'GeneralSettings.Application.ProfitTrailerPath', line 6, position 39.
at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
--- End of inner exception stack trace ---
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 59


Dotnet has stopped working. What did I miss?

C:\Users\Administrator\Desktop\PROFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\PT
Magic>dotnet Monitor/Monitor.dll

Unhandled Exception: System.FormatException: Could not parse the JSON file. Erro
r on line number '3': '"PTMagicBasePath": "C:\Users\Administrator\Desktop\PR
OFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\"
"Logging": {'. ---> Newtonsoft.Json.JsonReaderException: After parsing a value a
n unexpected character was encountered: ". Path 'PTMagicBasePath', line 3, posit
ion 2.
at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSett
ings settings)
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadS
ettings options)
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings sett
ings)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(
Stream input)
at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Str
eam stream)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean
reload)
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 provide
rs)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Monitor.Program.Main(String[] args) in D:\Tools\PTMagic\Monitor\Program.cs
:line 21

C:\Users\Administrator\Desktop\PROFITTRAILERMAGIC\PTMagic.1.0.2\PTMagic 1.0.2\PT
Magic>pause
Press any key to continue . . .

Monitor not work?

I install this project as the steps on wiki, PTMagic.dll is running looking good.
But Monitor.dll seens not work,I try to connect to http://localhost:5000/,nothing show up.
I also try to change the port in settings.general.json, then run monitor again,but the port not changed.

About the "Will PT Steal my API and whatnot..." topic here on GitHub

Hi guys,

when I woke up today I just saw that issue #18 somehow disappeared here on our GitHub.
Just in case you are wondering, we did not remove the issue! In fact, you cannot even delete issues on GitHub for a good reason (making good answer unavailable) and we were kinda shocked when we saw that the issue is no longer with us.

However, I already contacted GitHub about this issue but it seems like the user that created this issue deleted his entire GitHub account and so all his content he ever created here got removed, including this issue with all its answers and comments...

Please use this topic now to answer questions regarding this topic and we will see what GitHub may be able to do to restoe this original issue.

Best regards,

Legedric

Futurte release for Apple users?

Looks like a great add on!
And would definitely like to try it, however.. I am running PT on a Mac..
Will there be a version for Mac users in addition the current Windows and lLinux versions? Would be great.
Good luck and keep it up!
Grtz Robarbo

MAC OS help

Can't get this to run on Mac...any decent guide? The directions are lacking in information.

Error when run Start PTMagic.cmd - Fixed

I have everything in place. Path etc.
But in end Start PTMagic.cmd gives:

Unhandled Exception: System.ArgumentException: An item with the same key has already been added. Key: XMRBTC
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object key)
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at PTMagic.PTMagic.MarketTrendCheckTimer_Elapsed(Object sender, ElapsedEventArgs e) in D:\Tools\PTMagic\PTMagic\PTMagic.cs:line 580
at PTMagic.Program.Main(String[] args) in D:\Tools\PTMagic\PTMagic\Program.cs:line 177

The file is missing: LastRuntimeSummary.json

After launching dotnet Monitor/Monitor.dll I get this error in the browser:

Could not find a part of the path '/home/user/ptmagic/ptmagic/_data/LastRuntimeSummary.json'.

Indeed, there is no such file. The '_data' folder isn't there either.

The version of ptmagic I'm using is 1.0.1

Market trend check throwing forbidden

market trend is every so often throwing a fatal error:

2018/02/19 12:36:48.715 INFO - Starting market trend check with Version 1.0.2
2018/02/19 12:36:49.095 FATAL - The remote server returned an error: (403) Forbidden. System.Net.WebException The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse()
at BusinessRules.MarketAnalyzer.BaseAnalyzer.GetSimpleJsonObjectFromURL(String url, LogHelper log) in D:\Tools\PTMagic\BusinessRules\MarketAnalyzer\BaseAnalyzer.cs:line 45
2018/02/19 12:36:49.103 INFO - CoinMarketCap - Getting market data...
2018/02/19 12:36:49.154 INFO - CoinMarketCap - Market data received for 100 currencies

Does seem to work fine regardless. My interval is set to 1 minute.

Switching to default settings every minute

Hi,

I have followed the tutorials and managed to get PTMagic working without much hassle which is great. However i've set up my telegram bot and constantly every minute I get a message saying the settings have been switched to "Default". Is there a defect in the sense that if the settings are already default should it be constantly switching to it regardless instead of just doing a check to see what state it's currently in first.

I'm getting no errors from the logs from what I can see so I imagine i set it up correctly. (VPS Ubuntu if that helps)

side note: just want to say a big thank for for creating this addon with the aim of keeping it free - fantastic work and the community appreciates it!

Raspberry Pi

Has this been installed and tested on a raspberry pi? - As a side note, amazing project! Can't wait to get this up and running!

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.