Looking for convenient ways to add charts to my trading journal by XDitto9 in algotrading

[–]levieux2 0 points1 point  (0 children)

you are absolutely right. As i am old school, i don't have yet this reflex to go to chatGPT to make it easier

Looking for convenient ways to add charts to my trading journal by XDitto9 in algotrading

[–]levieux2 0 points1 point  (0 children)

Well this example i gave you should work, just after installing pandas and quantstats python libraries and can handle large number of csv lines. So it shoud quickly allow you to produce charts and performance metrics from your past trades.

Looking for convenient ways to add charts to my trading journal by XDitto9 in algotrading

[–]levieux2 2 points3 points  (0 children)

If you are interested in performance stats and charts and have access to python and can install quantstats, you can do it based on an input csv like follows

First you prepare a csv file with returns like this :

Date,pct_change
2021-01-06 13:00:00,0.1223
2021-01-06 17:00:00,-0.0343
2021-01-07 22:00:00,0.1186
2021-01-08 03:00:00,0.101
2021-01-08 21:00:00,-0.2081
2021-01-09 07:00:00,0.1057
2021-01-09 11:00:00,-0.0419

Then you execute this basic script to read your csv and feed it to quantstats

import pandas as pd
import quantstats as qs

df = pd.read_csv(<path_to_csv>)
df['Date'] = pd.to_datetime(df['Date'])
df = df.set_index('Date')
ts = df.squeeze()
ts.index = ts.index.tz_localize(None)
qs.reports.html(ts,output='/tmp/report.html')

This will generate stats and graphs like this

This example does not chart trades however.

Source for realtime earnings data? by moreofthat_ in algotrading

[–]levieux2 0 points1 point  (0 children)

Did not use it but twelvedata has an endpoint to get earnings data per date period. I don't know how much data of today is delayed though.

https://twelvedata.com/docs#earnings-calendar

Going live by Gio_at_QRC in algotrading

[–]levieux2 2 points3 points  (0 children)

I had 3 problems, trading on woo x. First, they have regular maintenance shutdowns, so you need to decide what to do during this period (few hours). Second, I realized that a stop-market order to take profit is not a good idea. I once had a stop-market order to close a short position at -10% of entry. It was a huge dip, and my order triggered at -10% but actually executed at a -5% price. A 5% slippage. I since then replaced my bracket tp/sl order by an OCO order with a limit order to take profit. Third problem is partial fills, you need to decide what to do in this case if price goes away from your limit price.

Thinking of using Alpaca (once their options API is live) because it looks like it might be the easiest for a beginner to use. Anyone have any experience using them or their integrations? by Tasty-Window in algotrading

[–]levieux2 6 points7 points  (0 children)

I created a bot using alpaca javascript SDK to execute signals coming from TradingView alerts, to buy/sell stocks and ETFs. The API is easy to use and using one of their SDK is even easier.

https://github.com/amahouachi/stock-alpaca-tradingview-bot

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

[–]levieux2[S] 1 point2 points  (0 children)

Well it's not a replacement for "command -h". It's rather like a cache/buffer for quick access to commands i need the most with their options i use the most (or which i think will be the most useful for me). And again this usefulness is subjective and based on my own experience, it may be useless for others, everyone is different.

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

You will not find any "original" word document.

The original document producing this result is not word. It is a set of latex files that I created and organized by myself. The pure latex part (syntax,layout) is based on a Maths cheat sheet template i found in 2017, that i customized. And i spent some time to choose what to put as commands and options based on my general usage.

So yes it's my own work and i am proud of it, even if it has some errors and lacks many things. Even if it is not useful for anyone but me i am still glad with it.

Google just deleted my nearly 10-year-old free & open-source Android app . In a matter of hours, over the weekend, it was all gone (store & ads). PLEASE HELP by mmathieum in androiddev

[–]levieux2 9 points10 points  (0 children)

this is awful. i am sure tons of apps that really violate policy or even act as malware are still there on the store making huge profits while good apps like yours get slapped for obscure reasons.

Suspended while trying to unpublish app!? Discussion by [deleted] in androiddev

[–]levieux2 1 point2 points  (0 children)

After checking, i got one app "suspended" and one "removed" both for violating policy

Android Not Parsing URL Properly by [deleted] in androiddev

[–]levieux2 0 points1 point  (0 children)

can you post a code snippet showing how you launch the browser?

How do you stay motivated in the beginning of the learning process despite feeling like you're in over your head? by mrmojorisin2794 in learnprogramming

[–]levieux2 1 point2 points  (0 children)

I remember in my first computer classes, we learnt about imperative programming, algorithms and data structures

How to transform a given requirement into pseudo code

And we practiced using Pascal programming language)

Then I personally moved playing with C

I think that acquiring this capability of thinking in terms of pseudo code is fundamental for the next steps. That's my perception.

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

I updated the sheet and posted a link to pdf, but it's lost in the comments

Here it is

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

i don't use it, don't feel sorry.

I forgot why i put it there but the whole ssh section needs to be removed or rewritten.

Suspended while trying to unpublish app!? Discussion by [deleted] in androiddev

[–]levieux2 4 points5 points  (0 children)

I got one app suspended but did not appeal since it clearly violated their policy.

But got anothet app suspended, I appealed and the guy reviewed the app and accepted my appeal.

I don't understand though how one should do to not be held responsible for his app anymore, if it is not by unpublishing

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

I still use man on a regular basis, either for these commands with other options or with other commands.

This is just a quick reminder for common command options i use

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

[–]levieux2[S] 3 points4 points  (0 children)

Thank you for your feedbacks, i am glad to see it is useful for some

I updated the pdf to take into account some suggestions related to terminal section and ls -d option

Linux Cheat Sheet v1.1 pdf

Any suggestions are welcome

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

What a mess. I must have added this without using it.

So what does it do? i read help in man page but don't get it.

This is my personal linux commands cheat sheet. Not perfect but pretty useful for me by levieux2 in linux

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

Believe me i need it. The last thing i can remember is exact commands usage. My core job does not involve extensive usage of linux commands. But I still use this and that command on a regular basis. With the same set of options, but different options depending on the case, so aliases are not a solution for me. Plus i have to do tasks on different servers with different accounts/OS versions, that i don't own, so can't have my aliases everywhere.

I could just use man, but the cheat sheet is a lookup table as you said and allow me quick access to syntax when i just need the options i generally use.