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
Оценка
(461)
Проекты
902
77%
Арбитраж
25
16% / 68%
Просрочено
100
11%
Свободен
Похожие заказы
Looking for experienced programmer to create a trend line breakout and trend line bounce indicator that send alert with arrow on screen without open trades multiple currency pairs time frame M15 H1 H4 D1 W1 MN
Hello programmers, I need a coding assistance to do the following job. Currently the EA opens two different trades one has a comment "Originial" and another has comment "Series" The job is if the Original trade is negative by x pips, open a hedge trade(Hedge1#-OrderTicket of the soruce trade) along with one buystop and a sell stop order and the comment of the trade will be "Recovery#1-+OrderTicket() of the original
Profit EA 50+ USD
//+------------------------------------------------------------------+ //| SimpleEA.mq4 | //| Generated by MetaEditor | //| https://www.mql5.com/en/docs&nbsp ; | //+------------------------------------------------------------------+ #property strict // Input parameters input double LotSize = 0.1; // Lot size input int MovingAveragePeriod = 50; // MA
I have a EA and A Indicator I want to upgrade with some new features I want to add to the Indicator And The EA Also there is a memory error in the system that is showing up in the journal after the ea is ran on multiple charts I will need to get this fixed as well Indicator is 528 lines of code EA is 703 lines of code Dashboard I want to add is 1974 lines of code Indicator Changes I want to change the indicator The
An ea with 4 moving average, and two time frame confluence. Option to add risk to reward and percentage of balance to trade. Message me remaining for the more info
Hi All, I will try to be as precise as possible. We can discuss if you have any questions. I need an indicator to be developed for MT5 for detecting Engulfing Failed Zones. Requirement (in H4/ H1/ M30 Time frames only): Identify Engulfing Buy/ Sell Candle. Identify when the Engulfing Buy is failed, or Engulfing sell is failed. Draw a zone for that area of Engulfing Buy/Sell Fail. Invalidate the zone or delete the
Hi. I want to fix my EA. The concept of lowestBid- There aree 3 levels of price. Price1 at the top, Price 2 in the middle and Price3 at the bottom. When the EA starts it start at Price1. And lowestBid is set to Price1. When the price hits Price 2, lowestBid=Price2. When price hits Price3, lowestBid=Price3. When Price come back up to level2, lowestBid=Price2 ....so on and so forth. lowestBid will keep changing with
Expert Advisor (EA) will provide automatic entry and exit using Black Dragon indicator as per the description below. Long (entry): on the first blue candle. Long (exit): on the first red candle, stop loss or take profit/break-even. Whatever happens first. Short (entry): on the first red candle. Short (exit): on the first blue candle, stop loss or take profit/break-even. Whatever happens first. Long (stop loss value)
FOREX trading robot 30 - 35 USD
Creating a powerful forex robot capable of handling multiple timeframes and efficiently identifying trades within a short span of 10 minutes requires a well-thought-out design encompassing robust technical and algorithmic frameworks. The goal is to develop a system that can process a significant number of entries across various timeframes (5 minutes, 15 minutes, 1 hour, 4 hours, and weekly) while ensuring accuracy
looking for experienced programmer to create trend reversal I want indicator that send alert with arrow on screen without open trades Uptrend Let’s say there is an uptrend on the chart. The first high (H) is followed by the first low (L), which in turn is followed by the second high (HH – higher high). After that, if the price drops out of the trend structure and forms a

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

Бюджет
10 - 20 USD
VAT (19%): 1.9 - 3.8 USD
Итого: 11.9 - 23.8 USD
Исполнителю
9 - 18 USD
Сроки выполнения
от 1 до 7 дн.