Expert Advisors and Automated Trading - page 268

Hello, I cannot change data in the Inputs when I try to test any AE.  After the change, it goes back to defaults. Can you advise what can be wrong? Thanks
How do i create an Array to store the "NewCalculatedValue" values and access those values when needed ? since the handle is an integer. The New value is Calculated value on every tick and only checked at the Open of every candle ( e.g M15 ) #include <Expert/Expert.mqh> #include
hi iam using robot for trading i would like to know the the trade size mathematic formula to hold a position down to 40 pip loss for usdjpy stop out 50% leverage 500 i thinks its like that i have calculate this 40 pip of loss=400$ for usdjpy for a balance of 600$ leverage 500 stop out 50% so i
Hi, I'm new with building trading systems and started to implement a basic buy/sell martingale system. All goes well with the back testing, when in 9th March 2020 (covid19 panic, i guess), I found this pattern. Any of you knows how I can detect and avoid this kind of market trend? The price
Is there any EA, where I can select fixed loss per instrument, and it will close all position on that instrument when total loss gets to preselect amount? For instance: EA attached to WTI and parameter set to total loss 500 USD, 1st position is open, goes in loss 100 USD, than 2nd position is open
Hello I lost my one activation on all my EAs when I got windows update on Sep 18, 2020 Please can you give me back one activation on these EAs. <Deleted> Thank You
  EA coding or KEY  (3)
hell guys say i created an EA how can i have it password protected or coded or keyed
Hi. I am having problems writing code using Meta editor. The frame suggests when the code is partially missing. Hints are not found. My monitor is at 1920x1080 resolution. Thanks :) MT5 keeps getting better and better
Hello, i like commissions to be respected in backtest and it seems settings you can do when clicking "emulate slippage..." on backtesting settings have no impact. In order to test, i created an own commission row for the instrument of backtest. GBPUSD. Then i set the commission to 0. (Where
I recently formatted my computer and lost a script code that did this function . I tried to recreate it but was unsuccessful. it was like this datetime now = TimeCurrent (); datetime nowTF = now - now % ( 60 * time[ 0 ]); datetime period = iBarShift ( NULL , 0 , nowTF); datetime openprice = iOpen (
Hey guys I am curious to see what people have to say. If the overall trend of a market is clearly sideways. Will a trend following ea work or fail in that type of market if we are stickily trading the 1 hour time frame ? Any thoughts and opinions would be great
This code always returns zero for commissions void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest & request, const MqlTradeResult & result) { if (trans.symbol == Symbol ()) { if (( int )
Hi, is there an equivalent for Open[], High[], .. Volume[] of MQL4 in MQL5? Actually I am using Volume[i] in OnInit for a volume-indicator in a separate chart-window to set the max. and min. int OnInit() {    ...    while(b-->0) {       lMin = fmin(lMin,Volume[b]);       lMax = fmax(lMax...
double dailyPriceInfo[ 4 ]; void OnTick () { daily_price_info(dailyPriceInfo); Comment ( "Daily High " , dailyPriceInfo[ 0 ], "\n" , "Daily Low " , dailyPriceInfo[ 1 ], "\n" , "Daily Range
I notice that even after backtesting the same instruments frequently, MT5 seems to spend a lot of time downloading data. Does MT5 download the same data with each test? This wouldn't seem to be very inefficient
Good day everyone, I'm new to MQL coding. The code below if I run in Strategy Tester, the ChartOpen returns value 0 and no new chart is open. But if I ran in live chart in demo account, new chart GBPUSD is created and the new chart ID is successfully return as non zero value
I have been trying to open a chart (CChart) during the "int OnInit()" phase of my EA. It doesn't work. I tried using the old MT4, non object oriented, version of this function, ChartOpen, and still no joy. I get an error ID. I can't find any more documentation or example code on this anywhere. This
Why ChartApplyTemplate() in OnInit() doesn't work when testing? What should I do to change the properties of a chart on Strategy Tester? Thanks!
Hello everyone! I am having problems with the validation in the mql5 market, I use this EA for days and i have no error, however when validating in the mql5 market there is always an error related to invalid volume, for example 1.53 or 0.17 all in EURUSD where theoretically these valid volumes. an
Highest price is successfully registered, but I would like to keep the fixed CCI value corresponding to the highest until future changes. void OnTick () { MqlRates rates[]; ArraySetAsSeries (rates, true ); int Data = CopyRates ( Symbol (), Period (), 0 , 10 ,rates); int CCI = iCCI ( Symbol
I would like to know where my ea runs, so is there a way to let the ea send some kind of notification without having to manually add an email adress or metaquotes ID in the settings? Thanks
I have 1 EA that uses iCustom function to get Fisher indicator data When back test there are too many windows of the Fisher indicator. Please help me fix this Thanks for reading int OnInit () { ArraySetAsSeries (priceInfo, true ); ArraySetAsSeries (fisherArray, true ); return (
Ever since I have subscribed to MT5 VPS My expert advisor has been opening twice the same positions is it because my system is duplicated and active on VPS plus my computer? Could it be that my system is duplicated or running simultaneously on both ends
(see picture) every few candles (but not in a pattern as far as i can see) my ea opens the same indicator window again, resulting in many open windows for the same indicator. It starts with one window as it should and then continues to open new ones. Is there a solution to this? Thank you
Hi guys, I would like to create a function that would change my stop loss value from preset one to a next pending order level (if the distance is smaller than preset stop loss). Basically I would like to make the pending order close the opposite open one if the distance between them is smaller than
  demo or real  (3)
Hello I'm new to trading. I downloaded a demo bot. then several days later I bought the bot. I now have the bot on my meta trader5 terminal. And on MQL5 it says I purchased the bot. But I don't know if the bot is the demo bot or the real bot. How do I tell the difference between a demo bot and a
Hello guys, I'm looking for a EA that use zone recovery strategy for manual trades or other EA opened trades. If somebody knows that kind of EA please let me know. The EA must handle several zones at once. Thanks
I've downloaded free and bought paid EAs (trading robots) all of them are losing their deposits faster than I do it manually. My question is if there are any Expert Advisors that make money on a real account, and not only in the strategy tester . I was a billionaire in the Strategy Tester, and I
Hi, I recived the message Stop Loss invalid: 2020.09.14 22:47:26.559 2020.09.01 09:04:04 failed modify #306 buy 5 WINV20 sl: 100470, tp: 100490 -> sl: 100472, tp: 100490 [Invalid stops] 2020.09.14 22:47:26.559 2020.09.01 09:04:04 CTrade::OrderSend: modify WINV20 (sl: 100472, tp: 100490) [invalid
I'm suddenly not seeing the EA's I choose to demo in my list in MT4. When I click on the Demo button under the EA website, it opens a dialogue box asking me wether I have MT4 or not - I click yes and MT4 opens. But the EA is not present. I've tried closing and opening MT4 terminal, but doesn't help