Expert Advisors and Automated Trading - page 37

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
As I'm going through my backtest report. I was looking at this and thinking if this information is important. If the average position holding time is very low, does it means that my EA is more accurate and robust compare to a value that is higher? and where can I get this for use in Custom Max
[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. -
Hello guys, i am having issue to convert this function "as is" to mql5. I include at top thiis library: #include <Trade\SymbolInfo.mqh> #include <Arrays\ArrayString.mqh> #include <MT4Orders.mqh> #include <InitMQL4.mqh> #include <mql4compat.mqh> the function is this one Decompiled source code removed
Hi everyone, Is it possible to display the constant as text, for example: TRADE_RETCODE_DONE , instead of the return code: 10009 , I thought of the EnumToString function, but to do that I'd have to get the enumerator name? Thank you in advance for your insights Best Reguards, ZeroCafeine 😉
Hello, I have just set up my new laptop and I have a problem with the backtest speed. By running the same backtest, with the same EA, with the same parameters, on the VPS I was using till today it takes around 1 hour. VPS RAM 4GB VPS Processor 8 cores On my new laptop it takes a lot more. New Laptop
datetime day_time = iTime ( Symbol (), PERIOD_D1 , 2 ); double day_price= iHigh ( Symbol (), PERIOD_D1 , 2 ); int shift= iBarShift ( Symbol (), PERIOD_M15 ,day_time); datetime actual_time = iTime ( Symbol (), PERIOD_M15 ,shift); double actual_price = iHigh ( Symbol (), PERIOD_M15
Hi! I'm running a bot that i like very much. Anyway, would like to know if is it possible to add some general risk management directly in the account, bypassing the single chart with the single ea running in. From my search, the only way that seems possible is to do sorta of copytrading and add some
Is this a typo or does this make some sense? https://www.mql5.com/en/docs/basis/types/classes#initialization_list class CPerson { string m_first_name; // First name string m_second_name; // Second name public : //--- An empty default constructor
I know OrderCalcProfit() returns the profit/loss of a hypothetical position based on open price, close price, volume etc. how can one do the reverse calculation ? I need it co calculate the price for trailing SL. for an open position (which Open Price, Volume, and Symbol are known) how can I
Hi, I am using mt5. history_deals_get to download all deals. One issue I am facing is when multiple position is opened , and if I close them in a different order, it is quite difficult to identify which one is closed. There is no common identifier for the same trade (deal showing as as separate open
Hello everyone am have been trying to count down or simply count a boolean condition where So in the code below I have tried to go over 20 bars and using time differnce check if there is a double ma cross over but unfortunately this code doesnt seem to work it neither recognizes the first nor the