Expert Advisors and Automated Trading - page 42

I've been using an specific broker for not that long, like 5 months. I've developed my own EA and until a few weeks ago I noticed every now and then, not always, during my backtesting I would see ticks starting at 13:00 hours but the Symbol Specification in MT always showed quotes and trading
Hello everyone, I hope you're well. Is there a quick shortcut system (hotkeys) for opening and closing orders? Are there any ready-made solutions or compatibilities with the Stream deck? Or maybe scalping links or tutorials where I could find things that look similar? Best Reguards, ZeroCafeine 🙂
Novice question for sure but... am i able to safely backtest on a live account? It strikes me the spread is different between account types from the same broker, and i want to test against actual historical data from the data stream yhat i would be using. I assume Id choose an historic time frame
As beginner I want to know, resumed but step by step that I need to do for a fully automated trading , without human intervention, and the price to get a complete system. to do the fully automated training with a broker selected
I am programming an EA which accesses data from previous bars, makes calculations and based on that determines the signal. It operates on D1 only. It firstly determines the max shift from the current day (one which tester is set up to start) to the last day in the database. In my case it is
Hi all, I'm trying to detect the last profit/loss in the transaction history (which I think I've got right), but something unexpected is happening, hopefully someone will have an idea. Here's the snippet: void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest &
I have pine connector EA set up connecting Trading View and MT5 on the 5%ers Prop Firm download of MT5. I have target type set to price, volume type as percentage calculated based on Loss (which is calculated based on risk). My EA should receive a signal with a risk %, a buy/sell command, the
Dear technical team I have an EA which is working on my local pc but when i migrate it to vps its not opening closing trades EA is very simple and small and not using or calling any DLL files. i checked vps journel and found these error lines showed in screen shot. please advise what to do thank you
Me and a couple other people experience a bug where the forward test results are incorrect. In order to see how well a pass actually did I have to manually run a single test on it. It isn't possible for me to manually check thousands of passes. I am wondering if I could automate it or is there a way
Hey guys! I have been facing some issues adding commission for the metals assets, mainly gold and silver. Can I ask if anyone might know what I have been doing wrong? Thanks in advance! P.S Snapshots below illustrates the issues better
In strategy testing, after the order has reached SL, then an opposite order is created, can this be prevented
Hello Programmers I am in the middle of programming my own EA. I'm not very experienced, so was wondering if someone could help me out here. In my EA, I first declare a long breakout like this: int longBreakout = 0; When my Buy Stop Order gets filled I want the value of 1 to be assigned to the
  Macro-bug since MT5-Update?  (17   1 2)
Dear MetaQuotes and affiliates, thank you for making MetaTrader! However, to my great dismay, I just noticed that the following code, specifically the macro definition... #define isNew(var, ID) isChanged ##ID(var) ...which still worked on 2nd August 2023, today no longer works (compiles)! ## ...is
  Help pls, EA  (3)
Hello traders, I'm building an EA, How can I get the difference between the initial tick and the current tick at a given time
void Close_position_withDistance2( double distance_) { double open_price = 0 ; datetime last_position_time = 0 ; for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) { ulong position_ticket = PositionGetTicket (i); double bid = SymbolInfoDouble ( Symbol (), SYMBOL_BID );
Is SymbolIsSynchronized returning true when the symbol on the terminal has the latest bar similar to the trade server or if it has "chart bars" data similar to the trade server
Hello im new to coding 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...
i'd like to make my EA to close a position if any of these conditions were met : -profit on the position is 100 points -price hit RSI 30 OR 70 depending if it's a Sell or buy Here's my code but for some reason it doesn't work !! Also i'm not quite sure whether "PositionGetDouble " return profit
  suffix .a  (4)
My broker has said that the currency pairs have a suffix .a requirement. This is IC Markets. I am wondering IF anyone can tell me what I need to do to change my code to work in their system. Otherwise I will have to find a new broker
I tried to make an EA based on Ichimoku Clouds and soon ran into a silly mistake. When all the conditions are met, the EA opens a trade. For example, long. If you're familiar with Ichimoku Clouds, you know what those conditions are. So the trade hits take profit and closes the trade. And guess what
Hi all, Moderately experienced VBA Coder just getting into Forex and MQL5 coding here. Novice level MT5 user and coder, I can mostly follow the code done intuitively but there are some structures I struggle with (compounded by the usual issues of reading someone elses code). The guy I followed in
I'd like to use CHARTEVENT_KEYDOWN with the event handler OnChartEvent(), To detect keystrokes and assign them to functions, I'm noticing that the keys are not the same depending on the type of keyboard used in Windows (AZERTY / QWERTY / QWERTZ) and also the lparam codes. How do you manage this type
  Trade History  (2)
Hi, please can anyone help me with the correct code to get the Deal Entry Price? HistorySelect ( 0 , TimeCurrent ()); //--- create objects string name; uint total= HistoryDealsTotal (); ulong ticket= 0 ; double price; double profit; datetime time; string symbol;
I am trying to follow the code this person is providing in his example (Code pasted below) #include<Trade\Trade.mqh> Ctrade trade; input int SmallMovingAverage= 20 ; input int BigMovingAverage= 50 ; void OnTick () { // Calculate Ask price double Ask= NormalizeDouble ( SymbolInfoDouble
Hello everyone I write a bot and save it with name test.mql5 and compile was successfully and the test.ex5 created too. the file is exist in Experts folder but when I want to start backtesting in Journal tab says the file not found what is the problem
[Deleted]
where i can create an Expert Advisor with my own strategy
hi i want list or find all wParam in PostMessageA for MT5 ? any want can help me
As the title, TimeDaylightSavings() doesn't work when I run backtest for a year, it always Print out "true". Expected: I want to detect the time while running the backtest is considered daylight saving time or not int OnInit () { //--- trade.SetExpertMagicNumber( 1 ); //--- return (
Getting this error in MT5 backtesting. Plz help to fix it. Plz let me know if i need to provide more details. IM 0 11:49:25.084 Core 1 2023.01.04 01:28:01 OrderSelect( 37183, SELECT_BY_POS, MODE_HISTORY ) - Error #4755
Hello everyone! I've found a pretty good system that makes solid trades on the H1 time frame EUR/USD. Now, all it needs is an EA to stack some serious cheese! Here it is: MACD: Fast-5 Slow-12 Signal-100 RSI: 21 Period If the RSI is above 50, look only for longs, if it is below 50, look only to go...