Expert Advisors and Automated Trading - page 65

I have created a custom symbol using CustomSymbolCreate(). The sole purpose of this symbol is to create a chart that will be used for displaying data, so I am not interested in any tick data. When I run my EA, I switch to the new symbol using... ChartSetSymbolPeriod ( 0 , "MySymbol" , PERIOD_M1); My
I have 8 Core with 32GB RAM, still get this error. 2024.07.26 18:10:35.495 Core 1 not enough available memory, 11500 Mb used, 16322 Mb available, maximal available block is 16322 Mb How can I handle this? Thanks and regards
Hello fellow traders, I'm running optimizations on an EA I'm currently developing and when I backtest on a 4 years period from 2020.01.01 to 2024.01.01, this is the results I get: And when I backtested it on a 3 years period from 2021.01.01 to 2024.01.01 here are the results I get: I don't
Hi, I have a MQL VPS bought recently. I am using an EA which requires an indicator. When I setup the chart and try to upload it says, 2024.07.25 14:06:44.504 Terminal ' ': 0 charts, 0 EAs, 0 custom indicators, signal disabled, last known ping to Access Server - Singapore is 2.35 This indicator
Hi guys, i have this code: bool PriceMovedFar() { double distance = 0.0; double pipValue = SymbolInfoDouble(_Symbol, SYMBOL_POINT); distance = (price2 - price1) / pipValue; return distanceInPips > 50 ; } if i use this code in usdjpy, that function return true as soon as the price moves higher
Hi I like to copy my trades from an account to other. But I already use an EA with specific HotKeys. Is there a technical solution to copy the trade between accounts to this situation
Hello, Can I use the zero value of a magic number in a EA to control the manual trades I opened? thanks GL
i have an EA that continuously loose money what should i do to inverse it effect
Hello All, I'm sure the answer is buried deep within this forum and I have attempted to look just didn't find anything I might be able to use. Well any ways. Here is what I am trying to do. Basically once an order is closed I want the take profit booleans to be set back to false that way the current
Hi, I'm traying to add ONNX models without using resource (because I want to add them to the parameters input). Is there any way around to make this possible
Hello, i have problem with my ea. I have more order limit at level price. But EA creat many order with duplication price. I want count order price at level. And I will filter order duplication. How to fix? int OpenSellOrders( double Level) { int sellorders= 0 ; int selllimit= 0 ;
Hello, i have a very simple strategy based on 3 indicators that i would like to turn into an EA for better Backtesting and trading if it turns out to be profitable. My problem is that i cant code at all so im looking for someone who maybe would code this for me. I think it would not take too long to
Good evening, I am trying to create my own expert advisor for the U.S. indices, I have implemented various controls and they seem to work well, such as whether a symbol is valid, whether the market is closed or open, the program shows me the moving averages and RSI correctly but when it tries to
I am trying to get a total count of buy (open buy + buylimit + buystop) and sell (open sell + selllimit + sellstop) orders at a particular price level. The following function code seems to get the count correctly in some instances but shows a zero count in other cases. I am not able to figure out...
Hi friends Please I have an indicator which have 3 buffers. The 3rd buffer should return EMPTY_VALUE for buy condition OR same value as second Buffer in sell condition. But in strategy tester, the indicator constantly returns thesame value for first and second buffers. Please help me take a look
Why is it i failed the validation for OrderSend due to invalid trade volume but i am able to send orders in the strategy tester
hello every one I failed to write code that enables me to close all opening orders and pending after achieving a specific profit on a specific symbol and need to make that profit as a variable
Hi, I observe weird behavior on this method. There are cases that I can reproduce every time but also there are those which seem like random... Package version: 5.0.36 OS: Windows 10 NOTE: I have deals on every (working) day in last 30 days, so there should be a lot of deals listed. Observed
My goal is to create some code that I can add to me EA. I would like the ability to have my EA trade the Asian session, the London, Session and the New York Session. Sometimes I might only want it to trade during the London or New York Sessions. I am very new to coding. If anyone could take a look
[Deleted]
I’m looking for a function that returns if the last trade was a win or lose trade. In other words, if the price hit the take profit or the stop loss of the last trade. If someone decide help me, so, PLEASE, give-me a function that you have sure that work correctly, because I’m not programmer and I...
Does anyone know if there is software available that allows for MANUAL backtesting in MT5? I know MT5 has the Strategytester to backtest automated strategies but I would like to test Semi Automated strategies where I manually place discretionary trades. I was looking for something that does chart
Hi, while backtesting, there are tons of messages that I don't need: - order performed - deal performed - position modified - stop loss triggered - market buy - market sell - deal #100 done - etc. If there are 100 of the above messages every second, it is difficult to keep track of the important...
The DD% in the tester optimization is "Equity DD% Maximal", but I want to see "Equity DD% Relative", what should I do? please help, thank you
When i try this code to get the number of events; It doesnt give any results in strategy tester but it works in real data. Why doesnt it give any data in the backtest? How can i fix my code? Thanks void OnTick () { datetime start_of_day = iTime ( _Symbol , PERIOD_D1 , 0 ); datetime end_of_day =
Hello. I have code that opens a file using int file_handle = FileOpen (file_name, FILE_READ | FILE_COMMON | FILE_TXT ); ...... FileClose(file_handle); If I run it with optimization disabled and visual mode disabled, it runs fine the first time, but after that any additional runs return
I have an EA as below. I want: - limit the number of ending order = 20 (EA place ~200 order) - When there is a profit of 200 points (20 pips), shift the SL and TP by 20 pips (using CheckAndAdjustProfitableOrders () and ModifyPosition ()) - At the same time, close half the volume of active position
  Help open parenthesis expected  (22   1 2 3)
I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same '' 'if' - open parenthesis expected '' and when i click on this error it leads me to this point in the code which i cannot rectify void tick22() {if {tick22==true} { and
  MQL VPS Service  (7)
Hi, I'd like to have few infos about how that service work. I found it very convenient as you can set it up on the fly with no login on a server etc. But ... The terminal I used to sync it on : Once migration done, is it still connected on my side ? If it's still connected do I have to...
Hello I have this problem, can someone helps me to fix it? Thanks
Hi I am a newbie who doesn't know how to write the code properly and found this kind of error using ai, please help fixing this I am hopeless TT Error logs & MQL5 Respectively Description File Name Line Column 'SELECT_BY_POS' - undeclared identifier Lastone.mq5 168 29 ' OrderSelect