Skip to content

Instantly share code, notes, and snippets.

View ibaris's full-sized avatar
🤡
Failure is not an option – it comes bundled with Windows.

Ismail Baris ibaris

🤡
Failure is not an option – it comes bundled with Windows.
View GitHub Profile
@ibaris
ibaris / basmap2qgis.py
Created September 21, 2023 06:51
Adding basemaps in QGIS
"""
This script should be run from the Python consol inside QGIS.
It adds online sources to the QGIS Browser.
Each source should contain a list with the folowing items (string type):
[sourcetype, title, authconfig, password, referer, url, username, zmax, zmin]
You can add or remove sources from the sources section of the code.
Script by Klas Karlsson
@ibaris
ibaris / 3d3u_backtest.py
Last active August 22, 2024 12:37
3 Down, 3 Up Strategy on Nasdaq - The Backtest
# -*- coding: utf-8 -*-
# pylint: disable=E1101,W0221,R0913,E1136
"""
3 Down, 3 Up on Nasdaq - The Backtest
=====================================
*Created on 22.08.2024 by bari_is*
*Copyright (C) 2024*
I came across a [post](https://medium.com/@algomatictrading/3-down-3-up-on-nasdaq-8ba4e8108a54) yesterday that presented a straightforward mean-reversion strategy for the Nasdaq-100.
The concept was intriguing: the market rarely declines for too many days in a row before bouncing back,