PYTHON - Trading Optimization Parameter Finder

İş Gereklilikleri

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






Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(64)
Projeler
68
25%
Arabuluculuk
12
42% / 42%
Süresi dolmuş
4
6%
Serbest
Benzer siparişler
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
"Hello! I am an experienced programmer specializing in automated trading software for MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5). My goal is to help traders turn their manual strategies into fully automated robots (Expert Advisors) and custom indicators. My services include: Developing Expert Advisors (EA) from scratch based on your strategy. Creating Custom Indicators and Scripts. Modifying existing EAs (adding
I have a simple strategy that need coding on tradingview Strategy using high low at seleted time and when breakout to entry buy sell. Everything will be explained on private
I am looking for an experienced MQL5 developer to modify and enhance my existing Expert Advisor, "Gold Levels Trader". The current version has a low win rate (~30%) and issues with ATR-based Stop Loss execution. I want to replace the current "pips drop/rise" logic with Fibonacci Retracement levels for entry signals, implement a Daily Drawdown Limit , and add Pending Orders functionality
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
So the things we need in algorithm of mql5 language EA in mt5 1. Depending on timeframe it can recognise the previous swing high and low 2. Timeframe is 5m,15m,1h,4h 3. It can recognise the basic Market bias that is market is bullish or bearish we can identify using (ema,rsi,basic smc bias,ict bias structure mapping) or use anything to find bias structure 4. EA should have option to change timeframe and change risk
require the development of a high-speed, fully automated trading Expert Advisor (EA) for MetaTrader 5 , optimized for live trading on both Deriv and Exness . The EA must be designed for fast execution, low latency, and reliability on real-money accounts , with full compatibility across broker-specific contract specifications, tick sizes, tick values, pricing formats, and volume rules. It should automatically detect
# Copyright 2025, MetaQuotes Ltd. # https://www.mql5.com import importlib . util mt5_spec = importlib . util . find_spec ( "MetaTrader5" ) if mt5_spec is None : mt5 = None else : import MetaTrader5 as mt5 # pyright: ignore[reportMissingImports] def main (): if mt5 is None : print ( "MetaTrader5 module not available" ) return print ( 'Python executable:' , __import__ ( 'sys' ).executable) ok = mt5
Scope of Work Develop 15 individual Expert Advisors (MT4 and/or MT5) Each EA will have: Unique trade logic and execution rules Configurable inputs (risk %, lot size, TP/SL, filters, sessions, etc.) Clean, modular, well-commented code Error-free compilation Backtest-ready functionality Core Features (Across EAs) Market & pending order execution Risk-based position sizing Time/session filters Trade limits (per day /

Proje bilgisi

Bütçe
50 - 100 USD
Son teslim tarihi
from 1 to 5 gün