PYTHON - Trading Optimization Parameter Finder

Python Sripts Asesoramiento Python

Tarea técnica

In the attach image you will find the function that is the core of the entire notebook ( https://colab.research.google.com/drive/1jVZ0R_MSMHS5DQrPa399fyioEvI2zn5S?usp=sharing)


I need to change this function from itinerating with lengths to itinerating trough columns that have values as 1 and 0 where 1 is to enter or close a Long trade and 0 is to do nothing.


This exercise is only intended to find the best combination for Long trades. I do not need short trades.


On the next lines a short description of what the code does and what the code should do:


What the code actually do:


1 Provides the data frame where the code should run
2 Establish which technical indicators should be use
3 Defines the variable that allows the system to iterate with different lengths
4 Creates the input variable to create the trading logic

5 I THINK creates the loop for running all over the data frame

6 creates the trading logic:


Long position: sma_diff >0 Long
Short Position: sma_diff <0 Short


Entering and closing trades: if the previous signal is equal to actual signal do nothing
If actual signal is Short and previous was long, close Long trade and open Short trade
If actual signal is Long and previous was Short, close Short trade and open Long Trade


What the code should do:


1 Maintain the same data frame
2 instead of defining the indicators select and create all possible combinations from a series of columns that Start with the Long word
3 The columns have 2 values, 1 and 0, 1 means to enter or close and 0 means do nothing.


4 Logic:


If the system find the value 1 in one column or in all columns from the combination provide by the iteration ENTER Or Close the trade

         If the system finds in a combination of 3 columns the next values (1,0,1) this means do nothing. 


The objective is to find the most profitable combination for Long trades according to the preestablish indicators.

The rest of notebook must be adjust to these new logic and also need to get a cdv file where I can find the next info:


And finally I will need  csv file that contains the next info:


Open Trade Date-Time

Open Trade Close Price

Close Trade Date-Time

Close Trade Close Price

Trade Type (Long / Short)


In these 2 videos you will find the description from the original notebook:


Part # 1 (10 min)


https://youtu.be/c55Chqim3hY


Part # 2 (7 min)


https://youtu.be/3nLTXTf1fao






Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(63)
Proyectos
68
25%
Arbitraje
12
42% / 42%
Caducado
4
6%
Libre
Solicitudes similares
Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the open): Draw a Fibonacci Retracement: From the highest price to the lowest price of this candle. Check the
My Goal: I want to make an EA that makes money using AI.. with zero losses and 100% winning chances and we will continue to upgrade and design the EA until we reach our goal. this could be a long term project
hi, I have a strategy coded in Python on Jupiter but I have trouble converting it to Quantconnect. Could you do that? The strategy is based on trading with 10 most liquid crypto coins on Binance rebalanced each month and tracking when the price break 20 day high or low plus some other indicators
Hello, I’m looking for an experienced coder to help with algorithm development. Specifically, I need assistance with converting a MetaTrader Expert Advisor (EA) into TradeLocker. Additionally, I would like to have a new EA built in TradeLocker that mirrors the logic of the original MetaTrader EA, including the specific rules and conditions I need. Please contact me only if you have prior experience converting scripts
Hi, To help with algorithm development, I need an experienced PineScript and TRADELOCKER coder to convert an indicator from TradingView to Tradelocker, then create an expert advisor (EA) with the same logic as the indicator and the features I want in the expert advisor (Rules & Conditions). Please only apply if you have experience converting scripts from TradingView to Tradelocker. I also need to make sure that the
Hello, I need a seasoned PineScript and MQL coder to help with an algorithm development by converting an indicator on TradingView to TRADELOCKER then build an EA with the same logic of the indicator and in addition to the ideas I want in the expert advisor(Rules & Conditions) of exactly the features needed for implementation to have the expert advisor designing as my expected products, ONLY REACH OUT IF YOU HAVE BEEN
Hello, I need a coder to help with an algorithm development by converting METATRADER EA INTO TRADELOCKER then build an EA with the same logic of the METATRADER and in addition to the ideas I want in the expert advisor(Rules & Conditions) of exactly the features needed for implementation to have the expert advisor designing as my expected products, ONLY REACH OUT IF YOU HAVE BEEN CONVERTING SCRIPT FROM METATRADER TO
My requirements are the following. I am ordering, I need an expert consultant on EA matters and an indicator in the trade pairs of XAUUSD and XAGUSD, we also need powerful robots for changing prices in the market. the market conditions, i.e. flexibility, then the business should be beneficial for all
I am looking for an experienced programmer who can convert my existing MetaTrader 4 (MT4) Expert Advisor (EA) into a fully functional version compatible with the TradeLocker platform. The goal is to maintain the EA's performance and functionality while ensuring full compatibility with the TradeLocker API and environment
Project Overview: I would like you to develop a Moving Average Crossover Trading Bot for MetaTrader 5 (MT5), compatible with all trading instruments (Forex, Stocks, Indices, Commodities, etc.), that incorporates machine learning algorithms to improve the strategy’s performance. The bot should be customizable, allowing users to adjust various parameters such as risk percentage, moving average periods, stop loss, take

Información sobre el proyecto

Presupuesto
50 - 100 USD
Para el ejecutor
45 - 90 USD
Plazo límite de ejecución
de 1 a 5 día(s)