IG Trading Algos and Scripts in Python

Overview

IG_Trading_Algo_Scripts_Python

IG Trading Algos and Scripts in Python

This project is a collection of my work over 2 years building IG Trading Algorithms + Scripts, and Donations would be much appreciated.

The Data Folder holds instrument data, raw and cleaned: .csv files are intended to be used for pandas dataframes

The algorithms follow a mvc format each controller calls a algorithm to run (some have been commented out)

Create a file holding your API keys and state its path in predefined_functions -> initialisation.py

Add your own details to trading_ig_config.py

Check the video for more details:

IG Trading Python Algo collection - Github installation and running

Subscribe to my youtube channel to find similar content.

Donations.

Just a few more notes: The core scripts used in trading_IG (license in root folder) and some of the scripts in test and the config are from: https://github.com/ig-python/ig-markets-api-python-library

All the other scripts + algos have been developed by me.

This project has a number of different algorithms, some had interesting results and others not so: The most interesting of those, I’ve documented in my videos:

https://www.youtube.com/watch?v=9i5Rvi8XLwE - create positions on both sides of a single instrument (this has a part 2 at the end screen)

https://www.youtube.com/watch?v=VO9KsEVHeBk - create working orders before markets opens

You might also like...
Python based scripts for obtaining system information from Linux.

sysinfo Python based scripts for obtaining system information from Linux. Python2 and Python3 compatible Output in JSON format Simple scripts and exte

Repo Home WPDrawBot - (Repo, Home, WP) A powerful programmatic 2D drawing application for MacOS X which generates graphics from Python scripts. (graphics, dev, mac)

DrawBot DrawBot is a powerful, free application for macOS that invites you to write Python scripts to generate two-dimensional graphics. The built-in

A Curated Collection of Awesome Python Scripts
A Curated Collection of Awesome Python Scripts

A Curated Collection of Awesome Python Scripts that will make you go wow. This repository will help you in getting those green squares. Hop in and enjoy the journey of open source. 🚀

A simple python script to convert Rubber Ducky payloads into AutoHotKey scripts

AHKDuckyReplacer A simple python script to convert Rubber Ducky payloads into AutoHotKey scripts. I have also added a sample payload for testing. I wi

A collection of daily usage utility scripts in python. Helps in automation of day to day repetitive tasks.
A collection of daily usage utility scripts in python. Helps in automation of day to day repetitive tasks.

Kush's Utils Tool is my personal collection of scripts which is used to automated daily tasks. It is a evergrowing collection of scripts and will continue to evolve till the day I program. This is also my first python project.

Some Python scripts that fx(hash) users might find useful.

fx_hash_utils Some Python scripts that fx(hash) users might find useful. get_images This script downloads all the static images of the tokens generate

Timetable scripts for python

Timetable Scripts timetable_to_json: https://beta.elektronplus.pl/timetable classes_taught_by_teacher: a.adam (aa) ['1Tc', '1Td', '3Te', '3Ti', '4Tf',

Basic infrastructure for writing scripts in Python

Base Script Python is an excellent language that makes writing scripts very straightforward. Over the course of writing many scripts, we realized that

Collection of Python scripts to perform Eikonal Tomography

Collection of Python scripts to perform Eikonal Tomography

Comments
  • runAlgo_Take_Opposite_position_over_sharp_price_changes

    runAlgo_Take_Opposite_position_over_sharp_price_changes

    I took your idea of runAlgo_Take_Opposite_position_over_sharp_price_changes and coded it up with a slight variation. I have worked with IG Index API for quite some time now (Check my profile) I watched your videos and I've tested it over a month and it seems to produce decent results.

    opened by tg12 7
  • Make use of config.acc_number

    Make use of config.acc_number

    For some reason IG removed optino to set default account in demo account and my one is set to CFD. I would suggest to add ig_service.switch_account() to have possibility of switching demo accounts. I tried to amend initialisation class but I couldn't make it work.

    opened by Andrew-Horton 1
  • ModuleNotFoundError: No module named 'trading_ig'

    ModuleNotFoundError: No module named 'trading_ig'

    Hi there,

    I've just downloaded your scripts and am curious to see how they work. The only problem is that I'm getting the error, "From trading_ig import IGService, IGStreamService ModuleNotFoundError: No module named 'trading_ig'".

    I'm running a python venv and pip installed as per requirements and your video.

    Do you have any idea how to fix this?

    Kind regards, Steve.

    opened by GreyAssoc 2
Owner
null
python scripts - mostly automation scripts

python python scripts - mostly automation scripts You can set your environment in various ways bash #!/bin/bash python - locally on remote host #!/bi

Enyi 1 Jan 5, 2022
An unofficial python API for trading on the DeGiro platform, with the ability to get real time data and historical data.

DegiroAPI An unofficial API for the trading platform Degiro written in Python with the ability to get real time data and historical data for products.

Jorrick Sleijster 5 Dec 16, 2022
Stocks Trading News Alert Using Python

Stocks-Trading-News-Alert-Using-Python Ever Thought of Buying Shares of your Dream Company, When their stock price got down? But It is not possible to

Ayush Verma 3 Jul 29, 2022
Graphene Metanode is a locally hosted node for one account and several trading pairs, which uses minimal RAM resources.

Graphene Metanode is a locally hosted node for one account and several trading pairs, which uses minimal RAM resources. It provides the necessary user stream data and order book data for trading in a format one would expect from a centralized exchange API.

litepresence 5 May 8, 2022
A pairs trade is a market neutral trading strategy enabling traders to profit from virtually any market conditions.

A pairs trade is a market neutral trading strategy enabling traders to profit from virtually any market conditions. This strategy is categorized as a statistical arbitrage and convergence trading strategy.

Kanupriya Anand 13 Nov 27, 2022
Senator Stock Trading Tester

Senator Stock Trading Tester Program to compare stock performance of Senator's transactions vs when the sale is disclosed. Using to find if tracking S

Cole Cestaro 1 Dec 7, 2021
Run python scripts and pass data between multiple python and node processes using this npm module

Run python scripts and pass data between multiple python and node processes using this npm module. process-communication has a event based architecture for interacting with python data and errors inside nodejs.

Tyler Laceby 2 Aug 6, 2021
python scripts and other files to generate induction encoder PCBs in Kicad

induction_encoder python scripts and other files to generate induction encoder PCBs in Kicad Targeting the Renesas IPS2200 encoder chips.

Taylor Alexander 8 Feb 16, 2022
Use `forge` and `cast` commands in Python scripts

foundrycli.py ( ?? , ?? ) foundrycli.py is a Python library I've made for personal use; now open source. It lets you access forge and cast CLIs from P

Zero Ekkusu 17 Jul 17, 2022
These are the scripts used for the project of ‘Assembly of a pan-genome for global cattle reveals missing sequence and novel structural variation, providing new insights into their diversity and evolution history’

script-SV-genotyping These are the scripts used for the project of ‘Assembly of a pan-genome for global cattle reveals missing sequence and novel stru

null 2 Aug 26, 2022