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

MQL5 Experts Bibliothèque

Tâche terminée

Temps d'exécution 1 heure
Commentaires du client
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!
Commentaires de l'employé
Thanks!

Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(509)
Projets
977
74%
Arbitrage
27
19% / 67%
En retard
101
10%
Gratuit
Publié : 1 article, 6 codes
Commandes similaires
Donie 30 - 1000 USD
I need a scalping bot that can analyse the market and execute trade on its own, that makes more productive results everyday hence enhancing my trades, i beed a friend
I am looking for a serious marketer with experience in promoting trading tools or Expert Advisors for MetaTrader 5. The product is an automated MT5 trading EA focused on Gold trading, with risk-management tools and trading filters designed to improve trade quality. For credibility, I will provide: An Investor Account for a live/demo account where the EA has been running for a while Backtest reports for the EA Clear
i want to study how to trading i want to be a rich man in the world i want to help people in my town i want to give some money for the charity
I am looking to purchase a ready-made trading bot / Expert Advisor that is already developed, tested, and can be used immediately. Requirements: - Must have proven live results or verified backtest performance - Maximum drawdown around 3% - Target win rate / success rate of 60 - 70% - Strong and stable risk management - Must include Stop Loss, Take Profit, Breakeven, and Trailing Stop Trading Preference: - Preferably
I'll do as you say whenever someone need me I'll be the as a forex trader who want evert one to be profitable in the coming years.always pushing and giving others good
A market structure shift EA for volatility on deriv and gives a mobile alert... EA should also identify market structure shift only for spikes in boom and crash...Demo would be appreciated for quick selection
I am looking to purchase a ready-made trading bot / Expert Advisor that is already developed, tested, and can be used immediately. Requirements: Must have proven live or verified backtest results Maximum drawdown around 3% Target win rate / success rate of 80% to 90% Stable risk management, not martingale or high-risk gambling style Must include proper Stop Loss, Take Profit, Breakeven, and Trailing Stop Preferably
I am looking for someone who can create a Forex EA for the MT5 platform based solely on observing how the program works on the MT5 platform. I have login credentials to the platform where the robot is operating. My priority is to precisely copy the strategy. It is hedging strategy
FINAL EA STRATEGY DOCUMENT (Chandelier Exit + EMA Breakout System) ------------------------------------ CORE INDICATOR - Chandelier Exit (MAIN LOGIC) - ATR Period: Editable (Default 22) - ATR Multiplier: Editable (Default 3) IMPORTANT: - ATR must NOT be shown as a separate indicator - ATR must be used ONLY internally inside Chandelier Exit - All SL & trailing must strictly follow Chandelier Exit line
1. I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 5% or higher a month consistently (provide source code after final deal) 2. Looking for a highly profitable EA 3. Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test

Informations sur le projet

Budget
10 - 20 USD
Délais
de 1 à 7 jour(s)