Code Monkey home page Code Monkey logo

trading_bot's Introduction

Trading_BOT

ENG: This is the repository for the code I use in my youtube channel!

  • Python trading bot: This folder is the one developed in the (Python trading bot playlist).
    • Python trading bot/src/: This folder contains the first bot I created in our channel (Python trading bot playlist).
    • Python trading bot/backtesting/: This folder contains the code for backtesting data using the bot strategy.
  • mql5: In this folder there's the code for the MQL5 different bots I have created.
  • ta: This folder contains bots using the ta library, the to_candle file to load candles, and notebooks where you will see how to load different indicators in python.
  • tutoriales: This folders contains the code I use in my different tutorials of programming languages.

ESP: ¡Este es el repositorio para el código que uso en mi canal!

  • Python trading bot: Esta es la carpeta donde desarrollamos el bot de python (Bot de trading playlist).
    • Python trading bot/src/: Esta carpeta contiene el primer bot que creé en nuestro canal (Bot de trading playlist).
    • Python trading bot/backtesting/: Esta carpeta contiene el código para hacer backtesting de datos usando la estrategia del bot.
  • mql5: En esta carpeta está el código para los diferentes bots que hemos hecho en MQL5.
  • ta: Esta carpeta contiene bots usando la librería ta, el archivo to_candle para cargar velas, y el notebooks donde se puede ver como cargar los diferentes indicadores en python.
  • tutoriales: Esta carpeta contiene el código que uso en mis diferentes tutoriales de programación.

https://www.youtube.com/channel/UCWpGnaeyh0nmB-ltvp6FxIg

trading_bot's People

Contributors

kecoma1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trading_bot's Issues

Bollinger.py

Hi Kevin,

Big fan of your youtube channel, learnt quite a bit about python thanks to you.

I have a question/request.

How would you create a bollinger.py similar to your MACD.py to keep track and create a signal and operate with your bot/order.py

As an example I found this python code that identifies BB pattern.

Would be great if you could take a look!

Problemas tickets on Buylimit

Buen día Kevin. Espero todo vaya súper, te escribo con un asuntico que tengo en un algoritmo que estoy haciendo, quisiera si puedes por favor darme algo de luz con esto.

Mi algoritmo tiene unas condiciones basadas en medias móviles y velas para encontrar el punto de entrada. Y tiene una gestión de operaciones con Break even y trailing Stop usando los tickets asignados a las operaciones .

trade.Buy(0.3, _Symbol, Ask, stoploss , takeProffit, "Operación 1");
trade_ticket_operation_1 = trade.ResultOrder();

En general funciona bien utilizando órdenes al mercado pero cuando utilizo el buy limit la plataforma no reconoce los tickets y no lleva a cabo la gestión de break even y trailing Stop

trade.BuyLimit(0.3, BuyLimitOrder10, _Symbol, stoplossVCycC3, currentHigh, ORDER_TIME_SPECIFIED, expirationTimeBuyLimit, "Operación 1");
trade_ticket_operation_1 = trade.ResultOrder();

Los tickets que se generan con órdenes al mercado son distintos de los generados con órdenes pendientes?
O de qué forma se manejan los tickets de las Buylimit?

Por otro lado tengo una función que determina si en el momento que encuentra entrada hay órdenes Buy limit puestas, para no poner mas
En el momento que hay operaciones abiertas (no ordenes buylimit) y encuentra una entrada debería poner las órdenes sin afectar las operaciones abiertas. Pero pone las órdenes Buy limit y cierra las operaciones abiertas.

bool validateBuyLimitAlreadyExist() {
bool result = false;

for(int i = OrdersTotal() - 1; i >= 0; i--){
ulong currentPositionTicket = OrderGetTicket(i);
ulong currentPositionType = OrderGetInteger(ORDER_TYPE);
if(currentPositionType == ORDER_TYPE_BUY_LIMIT){
result = true;
}
}
return result;
}

Te agradezco en lo que me puedas ayudar o orientar.

Cordial saludo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.