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

MQL5 Experts Libraries

Job finished

Execution time 1 hour
Feedback from customer
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!
Feedback from employee
Thanks!

Specification

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.

Responded

1
Developer 1
Rating
(461)
Projects
902
77%
Arbitration
25
16% / 68%
Overdue
100
11%
Free
Similar orders
please before you accept and lock fund make sure you check the indicators and confirm you can code it into ea i have two indicators want to make them ea you have option to code a new EA or modify already made ea I have source code for one and for the second indicators i dont have source code The Job entails ability to code ea that use different time frame or same time frame but different indicators to open order THE
الكمية: 0.01 متعددة : 1.5 نقاط بدء التداول: 200 الفرق: 100 متوسط ​​نقطة TP: 100 متوسط ​​السعر بالدولار الأمريكي: 0 هدف الرصيد: 0 الاسم إي: 0 وقت البدء : 23:05 وقت الانتهاء : 20:55 الكود : 13214052025 الرقم السحري: 0 ======================================== 1... إذا تحرك السعر 20 نقطة للأعلى، يبدأ الخبير بفتح صفقة بيع مباشر ثم يحدد الهدف بـ 100. إذا لم يصل السعر إلى الهدف وارتفع أعلى، يبدأ الخبير بفتح صفقة مضاعفة
I'm looking for someone with the skills to produce a trade panel for me that executes within milliseconds. It is a collection of various functions (ea's) that will be put into an easy to use interface with programmable sequences and hotkeys. I'm looking for a design similar to this The Best Trade Panel You've Ever Seen For MT4 & 5 (theforexguy.com) Please attachments for design and parameters. I have some of the
ChingChing 30+ USD
We are here to change your life and have every bills paid and live a better life.We are here to help you save your money and don’t use your salary to cover bills
Hello traders and developers, I'm a software developer myself I have been learning mql5 and creating ea's with various strategies since last month but most of them are unprofitable and some of them are inconsistent in giving profits, what I'm looking for right now is as follows, A profitable scalping ea which should take trades based on M5 or M1 timeframe since i like scalping in Minute timeframe i only want scalping
الروبوت المرفق يعمل صفقات بيع وشراء بطريقة ثابته عكس اتجاه الترند بحيث يقوم بعمل صفقات بيع في الاتجاه الصاعد وصفقات شراء في الاتجاه الهابط ويتم اغلاق الصفقات بعد جني ارباح اخر صفقتين والمطلوب من المبرمج تغيير المسافة بين المعتمده بين الصفقات بحيث يتم فتح صفقة بنفس حجم اللوتات في البوت المرفق كل عشر نقاط واغلاق جميع الصفقات اذا عكس الترند 25 نقطه واريد هذا البوت ان يعمل بنفس الاستراتيجية على الذهب والعملات
MT5 Scalping EA 30+ USD
I am using an MT5 Indicator - FX Volume, there are alerts setup on this volume indicator. What I want is an EA and the strategy is the volume indicator gives an alert everytime the volume rises or drops by 2 points (delta), if the volume drops 2 points delta, the EA will open a short position of 0.01 and take profit of 40pips, no stop loss and if the market changes, meaning that the Volume went from dropping to
I want an EA that always trades. Can buy only, sell only, or buy and sell at the same time depending on my selection. It has 5 levels of grid settings. Each grid just contiues onto the next. Not a new grid each time, the settings to continue gridding changes. I have attached an excel file with examples which should be quite self explanatory. INPUTS Initial (first trade) input double StartLot = 0.1; // Starting
Ram Reddy hedging strategy Expert Adviser (EA) – MQL 5 Please note this EA .. it is a combination of new orders along with hedging orders, averaging the order and double averaging the order to cover the loss Please understand the concept clearly, then only please accept the project Symbols: XAUUSD, GBPUSD, and other main symbols Demo: need demo mql5 file on XAUUSD please note: (in my brokerage 10 pips = 1 dollar and
MT5 EA 40+ USD
Hi i am searching for who can makes me Mt5 Robot I Need Only These Features In Robot And Add These Features In Inputs: 1: Analysis Method = RSI + ICHIMOKU + Candle 2: Takeprofit in Points 3: SL in Points and also trailingstep trailing step to secure my running trades profits 4: MaxTrades 5: Fixed Lotsize Message me for Ea parameters and for more information i want to add and also want to modify my current Mt5 Ea

Project information

Budget
10 - 20 USD
VAT (19%): 1.9 - 3.8 USD
Total: 11.9 - 23.8 USD
For the developer
9 - 18 USD
Deadline
from 1 to 7 day(s)