Expert Advisors and Automated Trading - page 50

I opened a Demo account in the broker called <name of the broker was deleted by moderator> and when I tired to realize some backtests was not possible but later I discovered that I need to set USDT, no USD. Until this point OK, but when I did it appeared a new drop-list showing values from 0 to 8
Im confused by the parameters of the CTrade OrderOpen method. I'm not sure how to to skip the "limit_price" parameter and send a simple pending order (not the buy_stop_limit kind for example) this is the way I'm sending a buy stop order and Im not sure If I'm doing it the right way. please do not
Hi guys, I need a help regarding the lot multiplier. I've made a multiplier that follow step balance - so it increases first lot accordingly to the balance of the account. However I have a problem setting up the multiplier. So far I've found the ROUND UP option but it's not good, for example when
if (G1[GridArrayLevel].Grid_Buy_Pos== 0 && CurrentLevel!=CurrentLevelCopy) //open buy order { ZeroMemory (request); ZeroMemory (result); request.magic = g_4magic; request.action = TRADE_ACTION_DEAL ; request.type = ORDER_TYPE_BUY ;
Anyone aware of a MT5 utility program that allows one to set a trailing stop loss based on volatility? ie. TSL = 1.5 ATR
hi how to do " Shift end of the chart from right border" in EA?
Hello! I just released an EA. It is listed on the www.mql5.com website but it isn't available in the Metatrader. If you click on "download now" (The EA is free) and click on "open in Metatrader 5" it just shows a Page with "No Data". If I search in the MQL Store within the MT5 terminal, my product
While using external DLL in services / eas when they are stopped the terminal can freeze when in middle of external calculations. Are there any concepts of graceful shutdown, like a function in the .mq5 script that can handle this
Hi, When I send an array of ints from MQL to C# DLL I only received one of them. In C# im just looping through the int values and attaching them to the return string, also attaching count of array elements to the return string. C# using System; using System.Collections.Generic; using System.Linq;
Guys, I have to use some functions of an native DLL. It is implemented like this in C, I think. Notice the inner structs. Here is the exposed struct; In C it is called like this: But I could not make it work in MQL5. Is it possible? In MQL5 I could typdef the and expose just the
I want to have a anti- trend EA, and have double size when recently high. how to code with the price example? THX
Hey all, I was wondering why do I see in my backtesting results a line with filled state but with 0 price and no comments. Thanks
Hello i need a telegram trade copier with sample
trying to draw on a different chart while backtesting does not work. The ChartNext is always coming -1
[Deleted]
  project on rsi  (3)
this is how it should work, there are 2 MA´s, one with Period 5 and the larger one with Period 50 if them are crossing each other i want to open a long or a short Position. that were my thoughts about the entry now the close of the positions i want to use the Rsi for example. If we have a open long
do i have to get the SL value and place it again if i want to change only TP value ? cause placing a 0 delete my SL value . thanks
// Trying to make an EA based on these Rules: //Buy: //1. Open buy trade when rsi touch 70 with 10 pips tp and open buy stop and buy limit with a gap of 10 from the previous buy trade. //2. When rsi 70 is touch, sell orders are not allowed. //3. When rsi 30 is touch, all buy orders will be closed
Before (Without Array ) :- static datetime prevTime= 0 ; datetime lastTime[ 1 ]; if ( CopyTime ( _Symbol , _Period , 0 , 1 ,lastTime)== 1 && prevTime!=lastTime[ 0 ]) { prevTime=lastTime[ 0 ]; // ... } It is working one
[Deleted]
I read the documentation for using virtual in class but I cant set virtual to a string or double variable when i use it with bool or void it works fine How can i use it in double, string or int variables inside a class
If I open a SELL STOP LIMIT pending order, the trade is executed once the price moves bellow a certain value and then back up past this value again. But how do I open a SELL STOP LIMIT pending order which is executed once the price moves above a certain value and then back down past that value
I am trying to make a pointer to a method. When I try to compile it says "Pointer to this function type is not supported yet". I don't understand what the function type in this error means. Is it the return type? The method I am calling is a static function but is in a virtual child class. (the
Wondering if anyone knows if pythons still available on metatrader? Ea use to run perfectly fine a couple months back... still runs, says it's placing orders, but when I go to the terminal it hasn't placed any orders. No errors... says market orders placed but never does
I am trying to run walk forward optimization usually my total steps list is around 220k results and I found this warning but test shows as completed, is this fine or should I think some results are going missing
1.How many vps terminals can metaquotes vps host? 2. How many chartwindows does your vps host
Hi all, Clearly there are huge differences in results between back testing using OHLC and 'Every Tick based on Real'. My strategy is catching small pullbacks on the 1m XAUUSD in the NY session i.e. when price is really moving. But it only opens/closes trades after a candle close. I'm not concerned
I have created a basic Expert Advisor which triggers a buy signal each time the short term EMA crosses above the long term EMA, when the buy is triggered a trailing stop loss at 2*ATR is set which gets updated each time a new candlestick is formed. I tested this strategy on EURUSD H1 timeframe. When
any script to expost MT5 Terminal bid/ask prices & spread to an excel file
Hi , I want to optimize a strategy with many parameter. It is advise to do it maximum 3 parameter per optimization to avoid overfitting, so the optimization will be run twice. Let's say I have 6 parameter to optimize 3 parameter for entry (indicator parameter) and the other 3 for exit (tp sl). As
Errors: 'TimeHour' - undeclared identifier Line 19 Column 28 'currentTime' - some operator expected Line 19 Column 37 'OP_BUY' - undeclared identifier Line 31 Column 46 'OrderSend' - wrong parameters count Line 31 Column 27 'OP_BUY' - undeclared identifier Line 50 Column 54 'OrderSend' - wrong
Hello everyone, I am new with VPS, so let me describe my situation: - I created my EA by myself and did the test with data in the past, the result is fine. - My EA has a function to hedge after putting a position in one pair with another pair. For example: Sell EURUSD and hedge with a Buy AUDUSD. -