Forum

Get Trendline price with calculation

I know there is the function "ObjectGetValueByShift" where you can get the price of the trendline, but i need to know how you can get the price of the trendline when you only know the values on which points the trendline is draw and then with the calculation you can get also the price, i am looking

Custom HST files iClose() getting newest data

I have a script which create hst files, i want to use this chart data from the hst files for some indicators but i see when i use iClose() function that the latest close price is only giving back correctly when i open a offline chart from the hst file and when i update this offline chart, then i see

Does it still make sense to build on MT4

Hello everyone, I've been struggling with a stupid problem for a few days now, and I've come to the realization that MetaTrader 4 simply doesn't offer a way to update .hst files so that functions like iClose() can always read the latest candlesticks from the file. Somehow, the iClose function keeps

Counting Partial Close for a trade

When you close a trade partial, you see it get a comment "from # ticketnumber" and in the order history it get the comment "to # ticketnumber" When i want to code 3 partial close areas for a trade, then i need to count how often i have already close partial from the first trade, but i am looking for

Are there Tips and Tricks to Avoid Overload in MetaTrader EA

Hello, I am seeking some advice and tips regarding an issue I'm facing with MetaTrader Expert Advisors. I have noticed that when I run the EA on multiple charts and occasionally compile the source code while it's running, MetaTrader starts to become unresponsive and overloaded. It seems to get stuck

Calculate risk based lotsize

I have here a function which i find in this forum: // Function to Determine Pip Point Value in Account Currency double dblPipValue( string strSymbol ) { double dblCalcPipValue = MarketInfo( strSymbol, MODE_TICKVALUE ); switch ( int (MarketInfo(

What does symbol SUMMARY mean

I have in my Tradehistory some entrys where the symbol name is SUMMARY, you can see in the attached picture . I dont understand this, it looks like withdraw or deposit but the order type is show as and it have also lotsize of 0.01, you can see in the picture also there are normal withdraw or deposit

Mt5 python access accounts

I have a question about this mt5 python solution, do i understand this solution correctly, you need to install for every mt5 account into which you want to login also a seoerrate mt5 terninal on the same comouter? Or can you just login to any mt5 account with this python libary without need to

OnChartEvent Mouse Move

I wonder why the following code does not make any print, i did think the Mouse Move Event is clear thing, but looks like dont work? void OnChartEvent ( const int id, // Event identifier const long & lparam, // Event parameter of long type const double &

Resource Files for Market Product

I want to create a tradepanel where i use different picture files to style it a bit, how many files can i extra upload beside of the EA file when i want to put it in the market? i remeber just last time when i have try to upload something i did see just one formular where i can upload the ex5 file