Code a function that has the last X ticks available for further reference in my EA

Работа завершена

Время выполнения 1 час
Отзыв от заказчика
Everything did go absolutely smooth and perfect from start to the end: quick turnaround time of only 1 hour, absolutely professional and perfectly working code without any adjustments needed, friendly and fast (all my messages have been answered in under 5 minutes each time) communication in perfect English... what more could you ask for?? 1A+++++ HIGHLY RECOMMENDED!
Отзыв от исполнителя
Thanks!

Техническое задание

I have my own EA that needs an extension. It runs on the M1 timeframe and hence refers price action in the form of Open[0] Open[1], etc etc... But I want that I can also refer the last X ticks. Since Metatrader can´t run tick-charts, I need a function that logs the ticks that come in from the broker and I want then be able to refer to them within the EA itself. So I want to be able to not just (example) do a "if Close > Open[0]" within my EA, but also "if Close > Ticks[10]" for example, hence expressing that the current Close (so the current tick) is greater than the price 10 ticks ago.

Such a function should be easily doable for a pro-coder that is capable of loops / arrays. I definitely will need it as a function that I can reference to within the EA and would like to pass it the period of the ticks to refer back and it returns the price as double. So if I call the function with "Ticks(10)", it would then return the price of 10 ticks ago. If I call it with "Ticks(20)" it would return the price 20 ticks ago, etc.  Of course it would also make sense to put a final limit of how many past ticks the function stores, that should also be a configurable variable since I will most likely not need to look back more than 200 ticks - but it should definitely be able to be changed.

P.S.: There is no need for you to check if the price of the incoming tick is equal to the previous tick and then skip it, since many brokers deliver the same tick in a row without a price change, I already have a filter for that in place on the global scope within the EA so that it only processes if the new price of the new tick is different from the last tick price.

P.S.2: I forgot to add that the function should of course  separately log Ask and Bid prices - just the same functionality as above but separately for Bid / Ask.

Откликнулись

1
Разработчик 1
Оценка
(508)
Проекты
976
74%
Арбитраж
27
19% / 67%
Просрочено
101
10%
Работает
Опубликовал: 1 статью, 6 примеров
Похожие заказы
Trade, buy and sell stocks for me. A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my android app and buying and A bot to help create my
Ca$h robot 32+ USD
A robot that can learn from errors read and decide and research companies at the time of using multiple resources in the web all.sites Yahoo Google forbes the actual.business or financial web domains able t sell buy trade currency stocks crypto on multiple platforms allowed in here and always generate profits even small amounts daily hourly on top of able t mine coins as many as possible mining for generating profits
Hi, I require a robot that can read this non MT4 object . Trade opened when the object shows ' Look to sell / Buy'. The closing logic is based on the crossing of another custom indicator . Stop loss based on Fib levels. Take profit and partial take profit also required using these levels. A more detailed breakdown of the logic to be provided. The robot/EA is to be created and installed on MT4 on my VPS
Hola comunidad, Estoy buscando un desarrollador que tenga el archivo de instalación de MetaTrader 4 build 1443 o que pueda ayudarme a volver a esa versión. Tengo un robot (EA) que funcionaba perfectamente en build 1443, pero mi plataforma se actualizó automáticamente a build 1470 y ahora el robot ya no funciona correctamente. Necesito alguien que: • Tenga el instalador de MT4 build 1443, o • Sepa cómo reinstalar esa
have the Beatrix Inventor Expert Advisor (EA) that was profitable in the past but has been losing money recently. I need an experienced EA developer/optimizer to study the trade history (especially Stop Loss hits, drawdown periods, SL/TP behavior, win/loss ratio, etc.) and recommend + implement specific tweaks so it becomes consistently profitable again. Your job: 1. Deep analysis of why the EA is no longer
Project: Ready MT5 Multi-Symbol Expert Advisor (No Grid/Martingale) Platform: MetaTrader 5 (MQL5) Type: Fully automated Expert Advisor (EA) Strict mandatory requirements: - Absolutely NO grid trading in any form - Absolutely NO martingale (no lot multiplication on losses, no averaging, no anti-martingale if risky) - No other high-risk money management (e.g., no unnecessary hedging or aggressive entries) - At least 1
want to develop a trading robot (EA) for MetaTrader 5 based on 10 specific rules. The robot should include a professional interface to control all settings, including: Fixed lot size (0.50), Stop Loss (10 USD), RSI indicators for entry/exit, News filter, Trailing stop, and daily profit targets. I have the full logic ready to discuss with the developer. Please ensure high-quality code and testing
Hi everyone! 👋 I’m searching for an experienced MQL4 / MQL5 programmer who is not focused only on big money , but is interested in working on very interesting trading projects that have the potential to conquer the market 📈🔥 💡 I have several unique EA ideas and trading tools in development. ⚡ I’m looking for someone who is available , communicates well , and can deliver projects relatively quickly . 🤝 I prefer
The improvements requested focus on: Faster range setup Automatic Fibonacci target calculation based on range size Cleaner and smaller control panel More visual workflow directly from the chart 1. Quick Range Setup (Automatic Range Creation) Currently, when clicking Add Range , the values are initialized as 0.0 . Instead, the EA should automatically create a default range around the current market price. Desired
We are seeking an experienced MQL5 developer to design and develop a high-performance Expert Advisor (EA) for trading Gold (XAUUSD) on MetaTrader 5 . This project is intended for large-scale capital deployment , with an available trading capital exceeding $8,000,000 USD . As such, we are looking for a developer capable of building a robust, scalable, and risk-controlled algorithmic trading system suitable for

Информация о проекте

Бюджет
10 - 20 USD
Сроки выполнения
от 1 до 7 дн.