View ATASPythonSocket.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="ATAS.Indicators"> |
View pycharmbug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
from pathlib import Path | |
MT4_DIR = Path("C:\\Users\\buk\\AppData\\Roaming\\MetaQuotes\\Terminal\\") | |
MT4_MASTER = MT4_DIR / '2C68BEE3A904BDCEE3EEF5A5A77EC162' | |
BACKUP_DIR = MT4_DIR / 'backup' | |
CACHE_FILE = 'mqlcache.dat' |
View README
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
its WIP but works, just | |
1. run grafana if u dont have it docker run --rm -it -e GF_SECURITY_ADMIN_PASSWORD=admin -p 9312:3000 --network=host grafana/grafana | |
2. run run.py in folder above user_data | |
3. in grafana install plugin simplejson | |
4. make new data source in grafana simplejson with url http://localhost:3004 | |
5. place config for your strategy in user_data/configs | |
i think it's all its not complete but works maybe someone can pick it up from here |
View error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal Python error: Illegal instruction | |
Current thread 0x00007ff510b33740 (most recent call first): | |
File "<frozen importlib._bootstrap>", line 241 in _call_with_frames_removed | |
File "<frozen importlib._bootstrap_external>", line 1176 in create_module | |
File "<frozen importlib._bootstrap>", line 571 in module_from_spec | |
File "<frozen importlib._bootstrap>", line 674 in _load_unlocked | |
File "<frozen importlib._bootstrap>", line 1006 in _find_and_load_unlocked | |
File "<frozen importlib._bootstrap>", line 1027 in _find_and_load | |
File "/home/ftuser/.local/lib/python3.10/site-packages/pyarrow/__init__.py", line 65 in <module> |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG PYTHON_VERSION="3.11" | |
FROM python:${PYTHON_VERSION}-slim as builder | |
ENV PYTHONUNBUFFERED 1 | |
# todo HEALTHCHECK | |
# https://docs.docker.com/engine/reference/builder/#healthcheck | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
wait-for-it \ |
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include lib/include.mk | |
MAKEFILES_INCLUDES = help.mk print.mk git.mk | |
$(call include_makefiles_once,$(MAKEFILES_INCLUDES)) |
View bash.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spinner, progress bar | |
https://stackoverflow.com/questions/238073/how-to-add-a-progress-bar-to-a-shell-script/238094#238094 | |
# kubectl get all api resources separated by comma | |
kubectl api-resources -o name | paste -sd, - | |
# gpg print signing keys | |
gpg --list-keys --with-colons | awk -F: '/^pub:/ { print $5 }' | |
# gpg generate and export |
View cli.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
force=false | |
reg_name='test' | |
reg_port='5001' | |
pos_args=() | |
while [ $# -gt 0 ]; do | |
arg="$1" |
View Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
NewerOlder