The Architect of the Digital Market - 商业企划

The Architect of the Digital Market

评分人数不足

故事简介

Step into the high-tech world of Alex, a master developer striving to create the ultimate trading algorithm. This story explores the intersection of complex mathematical logic and the unpredictable pulse of global finance, following the journey from chaotic code to a masterpiece of precision. It is a captivating look at the persistence required to master the digital frontier.

语言:英文
发布日期:
阅读时间:1 分钟

关键词

生成提示词

1. You are a MT5 developer with years of experience. You know all the mql5 documentation to write efficient and stable expert advisors. You also know mathematical logic and algorithms. Create a MT5 expert advisor. Do not use any MT4/mql4 code. Just focus on mql5 code. Create the program without any errors. The program should contain the following: System logic: Identify highs and lows in the market in any given timeframe to find trading signals. Timeframe should be selectable in the program inputs. Figure out a logic for these highs and lows and define some rules for it so it will be completely objective and does not need human interpretation. The highs and lows should be visualized in the chart. Also the same should be done in another timeframe (another user input). This second timeframe will be used to identify the bigger trend in a higher timeframe. The highs and lows from this higher timeframe should also be visualized in the chart (in any selected timeframe) with different colors and symbols than the signal timeframe. All of the highs and lows should be final once identified and drawn. They should not be repainted or recalculated from this point on. So find a logic that respects this rule. General: The program should work in any MT5 symbol. It always uses the current chart symbol and it's parameters for all the calculations. Entry logic: First we analyze the higher (bigger trend) timeframe. If there are x (user input) consecutive higher highs and lows then it is an upwards (long) trend. If there are x consecutive lower highs and lows then it is a downwards (short) trend. Once a trend starts it should be visualized in the chart with chart objects. They should be visible in any timeframe. A trend will be valid as long as there are more consecutive highs and lows in either direction. Once the trend is broken it stops and the program will wait for a new active trend. A trend is broken when the price drops below the last low in a long trend or above the last high in a short trend. If there is an active trend on the bigger trend timeframe then the program looks for entry signals on the signal timeframe. To have a valid buy signal there should be at least y (user input) consecutive highs and lows in the signal timeframe and an exisiting long trend in the bigger timeframe. After finding y highs and lows it should immediately open a buy position. For sell positions it should be the same process but only if there is a short trend in the higher timeframe and also in the signal timeframe. Exit logic: Buy trades will be closed once the buy trend on the higher timeframe breaks. Short trades will be closed once the short trend on the higher timeframe breaks. Trade parameters: Every trade should have a risk in a given amount (money) that can be defined in the inputs. Also the take profit and the stop loss can be chosen by the user separately in either points or percent of the position open price. There should be the option to trade without tp. Do not build this expert advisor yet but first check this description and ask if there is more information needed. Think about the program and the strategy first. If there are multiple solutions to solve certain problems then compare them and find the one that provides most stability. This strategy should not focus on many trades but rather trades that offer a good risk reward ratio. 2. Answers to your questions: yes user input. default 5 yes both required y higher h/l yes optional on the last swing point dynamic based on bid/ask price this should be a user input. if the user chooses 1 then only the first signal in a new (higher timeframe) trend will be executed but if it is for example 3 then the first three trades will be taken. for the visuals please use both for the swing highs/lows and the trend lines that connect the trend points. also create an input so the user can choose if he wants to use the rectangles. the text is not needed. Please create the expert advisor. Afterwards also analyze the program for possible problems and point them out. Make sure that the program is stable and does not contain errors. Use the best and most logical programming approach. You can use object oriented programming if needed. 3. sometimes the program just opens and closes a lot of positions after each other. this creates huge losses. how is this possible? check again the logic and make sure that this does not happen. 4. now it only opens a few positions and then no more positions. fix 5. the program is very slow. increase the efficiency and prevent unnecessary calculations 6. make separate inputs for the swing depth for the signal and the filter timeframe

评论

加载中...