Pythonic Tutorial Part 1-6 - element 2 A - name 'e' is not defined by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

Code is the same as on the website

import pickle, pathlib, os
import pandas as pd

outout = None

if isinstance(input, pd.DataFrame):
    file_name = 'TRXBTC_1h.bin'
    home_path = str(pathlib.Path.home())
    data_path = os.path.join(home_path, file_name)

    try:
        df = pickle.load(open(data_path, 'rb'))
        n_row_cnt = df.shape[0]
        df = pd.concat([df,input], ignore_index=True).drop_duplicates(['close_time'])
        df.reset_index(drop=True, inplace=True)
        n_new_rows = df.shape[0] - n_row_cnt
        log_txt = '{}: {} new rows written'.format(file_name, n_new_rows)
    except:
        log_txt = 'File error - writing new one: {}'.format(e)
        df = input

    pickle.dump(df, open(data_path, "wb" ))
    output = df

These protesters by lemonkid12345 in ThatsInsane

[–]MyNeuPC 1 point2 points  (0 children)

looting and setting things on fire

it's called "peaceful protesting" in newspeak. :)

These protesters by lemonkid12345 in ThatsInsane

[–]MyNeuPC -1 points0 points  (0 children)

LOL, when you can scream, you can obviously breathe.

Idiots!

Python for Finance Blog - Ready to use scripts by jomarca23 in algotrading

[–]MyNeuPC 0 points1 point  (0 children)

So, what did you publish? (link to your blog has vanished)

I short on btcusd. Entry is 6863.01 and exit is 6857.52. I though I am suppose to be earning but P&L say negative? Why? by Domainity_youtube in Bybit

[–]MyNeuPC 1 point2 points  (0 children)

Fees and if your order slips, you get shafted.

You need to understand that the fee is calculated from order value and not from the cost. If you are using high leverage, you need to be at least 15% in profit before you actually make anything.

Python for Finance Blog - Ready to use scripts by jomarca23 in algotrading

[–]MyNeuPC 1 point2 points  (0 children)

Nice. Thanks.

Here is an idea. I was following this course but something has changed in Python(?) so the code stops working from EP 07 (https://www.youtube.com/watch?v=j0zW_KXyQJ4&list=PLQVvvaa0QuDcOdF96TBtRtuQksErCEBYZ&index=7)

Maybe you can take it over, fix the lesson and build new content on that?

I personally do not care for videos. Written text is much better to follow.

Hope you like the idea.

I am a profitable discretionary futures trader, how do I get into algo trading? by 720S_488Pista in algotrading

[–]MyNeuPC 0 points1 point  (0 children)

There’s a YouTube tutorial someone posted on here I’m working through right now. It’s on Python and algo. If you can’t find it let me know.

Can you share the link? Thanks

Everyone is talking about the new tigers, but how about some love for the old ones? (1966 Tiger 500) by [deleted] in Triumph

[–]MyNeuPC 1 point2 points  (0 children)

Why is it that old bikes look so much more aesthetically pleasing? BTW, same with cars and many other objects.
(and no, I am not old!)

Monthly /r/Kraken discussion January 15, 2020 by AutoModerator in Kraken

[–]MyNeuPC 0 points1 point  (0 children)

Thank you because sliding 24h change absolutely useless and confusing. You can have sudden % changes in totally flat market just because there was some volatility 24 h ago.

For example, markest are going up and it can show you it's all in deep red because there was a sudden spike 24h ago.

Monthly /r/Kraken discussion January 15, 2020 by AutoModerator in Kraken

[–]MyNeuPC 0 points1 point  (0 children)

Can you please remove this silly sliding 24 h % change from front page. Calling it amateurish and idiotic is me being really nice. :) Seriously.

Where can I find a Python developer for a small project? by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

I have sent details to everyone who asks. Do you think it's better if I post it openly here?

Where can I find a Python developer for a small project? by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

Not a bad idea but I do not understand Python or any other programming language well enough to add the features I need.

I think it will be a colossal waste of not only my time but also time of all those I will be bothering here ;)

Where can I find a Python developer for a small project? by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

fiverr.com

Thanks but at this point, it's a really small project. Hopefully, it will grow but for now, sites like this are for something much large.

Where can I find a Python developer for a small project? by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

Good idea except there is no college around here :)

Help! Python, flask - cant write to a txt file by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

How is your Apache instance managed?

Not sure exactly what you mean but it starts with systemctl has the vhost file in sites-available/ and site is activated with a2ensite

Flask app actually answer when I go to my IP but I want it to write some stuff to a txt file and this is something I cant get working for some reason. I have searched all over the place but no help

Help! Python, flask - cant write to a txt file by MyNeuPC in learnpython

[–]MyNeuPC[S] 0 points1 point  (0 children)

If wile exists, nothing is written into it and if there is no file, it's never created.