PYTHON - Trading Optimization Parameter Finder

Python 脚本 咨询 Python

指定

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






附加的文件:

反馈

1
开发者 1
等级
(64)
项目
68
25%
仲裁
12
42% / 42%
逾期
4
6%
空闲
相似订单
Hello, I want a grid trading bot for the Gate.io crypto exchange. I currently have a working grid bot written in MQL5, and I want a similar bot implemented in Python. The MQL5 bot can be translated, but the codebase is large and it was not designed to be easily ported to Python. Therefore, I prefer that the final Python bot preserves the same core grid logic, but is implemented cleanly in Python rather than doing a
Phahla fx boto 30+ USD
99.99% signal accuracy 10-15 trades distribution all currency trade and meta AI assistance on loss[advice] stop and start robot cyber security firewall protection activation code: 20060605TLP20 Please create a trading bot with any logo with the name elevation
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
Here is what I’m looking for: • Signal source: On-chain wallet address monitoring. I want to copy trade high win-rate meme coin wallets (smart money / profitable traders), not Telegram signals. • Market: Crypto (primarily meme coins). • Execution speed: Very important — I want as close to sub-second execution as possible. Low latency is a top priority. • Infrastructure: I’m open to self-hosted VPS or cloud setup if
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
I’m hiring an experienced MQL5 developer to finish and fix an existing project (NOT building from scratch). I have: An existing MT5 EA (.mq5 + .ex5) that is based on my TradingView logic A TradingView indicator version used for signals/alerts The EA works but has logic/consistency issues and needs improvements + cleanup Goal Make the EA reliable and consistent: Ensure entries/exits match the intended logic Fix
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger
What informtion would you need for Ninjatrader futures automated trading and how long would it take ? if anyone can give me answer i will be happy to discuss more about the project thanks fill free to bid to the project thanks
I’m seeking an experienced developer to create an AI-powered trading system integrated with MetaTrader 5. The scope includes delivering a fully functional MT5 module, an AI component a compatible language, and complete source code for both. This will focus exclusively on the core trading logic and AI integration UI elements or dashboards are not required. Apply only if you have proven experience with AI integrations

项目信息

预算
50 - 100 USD
截止日期
 1  5 天