명시
Good day
Please refer to this post (reply from emmzett on 21 March 2024 at 11:12pm
https://www.forexfactory.com/thread/1274095-how-to-refresh-offline-charts-without-restarting-mt4
I need someone to assist me with either option 1 or 2.
Extract from the forum on forexfactory.
(1) First option: You programatically detect in your indicator whether you are running in an online or offline chart. There are various ways to do this. Now when you now that you are in an offline chart, instead of recalculating only the last invalid offset of your indicator buffers (bar 0) you always recalculate all bars. Thus bringing offline file and indicator forcefully in sync with every new tick. The drawback of this option: If you use many bars in your chart or indicator computations are expensive resource-wise, then this will slow down your terminal/charts significantly. Option 1 is the easy option.(2) Second option: Typically one uses the function IndicatorCounted() or parameter 'prev_calculated' of function OnCalculate() to determine the number of bars to update/recalculate. In offline charts this function doesn't work as expected. It always returns all bars as changed (essentiallly enforcing the solution of option 1). Instead we can emulate the online functionality and if we detect new bars coming in, then we do manually what the terminal would do in an online chart. We shift our indicator buffers with calculated indicator values manually by the number of incoming bars. This shifting can be done in pure MQL but it's slow. I use a DLL function to let C++ do the job for me which is lightning fast. There is one function per buffer type and these functions are part of my MT4Expander which is open-source and available on Github. However, this solution is only suitable for very experienced programmers. In code it looks like in the 3rd screenshot and is part of start() or OnCalculate().
응답함
1
등급
프로젝트
32
25%
중재
3
0%
/
33%
기한 초과
1
3%
작업중
비슷한 주문
Need add a custom indicator to my EA
40 - 50 USD
I want indicator that prevents adding to a position, Essentially, I want to set a maximum position limit, ensuring that neither live nor pending orders exceed 20 micro lots for example. Additionally, I would like to incorporate a lock feature, preventing the removal of this limit within a specified time window. it needs to override all other indicators as i use a custom chart Trader, not the default one. Here is a
I have this ex4 file of Ranko Street Trend Indicator. I want to get a similar indicator made. That indicator should work in the same way as this indicator works. There should be no difference between the two. I want another indicator made which works exactly like this indicator but there should be no difference between the two
Freelance Coder Requirements for Developing the AI-Enhanced Expert Advisor Below is a detailed outline of the requirements for hiring a freelance coder to build the described Expert Advisor (EA) for MetaTrader 5, along with the necessary skills, timeframe, indicators, and responsibilities. Project Overview Create a sophisticated, AI-enhanced Expert Advisor (EA) for MetaTrader 5 (MT5) that implements a trend-following
A telegram bot that allows users to chat together send pictures and videos and also have crypto payment system for all users more information in DM A telegram bot that allows users to chat together send pictures and videos and also have crypto payment system for all users more information in DM
I have a short tradingview pine script code, And want it convert to mt4, In this indicator, I wont need any visualisation on charts--- Just Buy/sell arrows printed, Make sure the previous buy/sell arrows can also be viewed if I scroll back i will pay $20 for this
I am looking for a developer with knowledge about SQL Databases, MQL5/MQL4, PHP and/or any website design. You will develop a MT5 Expert advisor that will send data every X Seconds to the SQL database, and it will show on the website. The idea is that every user will be able to see the live data of an account bound to them. The data needed will be: - Account Number - Account Name - Balance - Equity - Current Drawdown
Please read description before you bid, Send bid only if you accept please, Thank you, I need an expert to convert 1000+ lines of tradingview pinescript code to mt4, It will be a job i need very soon, If i can see someone that can finish it in 3 days, it will be great, And i will pay $40, This is how it will go, I will need you to send me the ex4 file first to see if it is working as i want, Because i have got
Hello Everyone, I want to create an Expert advisor with a simple logic of taking trades at a specific price position over a period of time with a capability of increasing the lot size if the bid closed at a loss from the initial position. So what happens is that at beginning of installation, the market identifies the high price and low price position after the installation. It then uses a gap position (in real price)
프로젝트 정보
예산
30 - 100 USD
고객
넣은 주문1
중재 수0