Expert Advisors and Automated Trading - page 84

I'm learning about mql5 programming and I'm trying to make a function that identifies minimum and maximum prices and adds Fibonacci. I managed to insert fibonacci in the chart but I don't know how to customize the values after 100 and before 0 (yes, I want to put negative values!). I tried several
Something strange happening. I'm attaching my EA to the main chart but it throwing error saying cannot load custom indicator 4802 It runs perfectly on strategy tester with no issues I've searched the forum but can't find a similar problem. Below is the attachment of the EA and indicator TDI auto is
Hi to all, I have a few questions to ask help because i didn't find clear answer in forum... I am trying to finish my EA in MT5 unsing some indicators , specifically :iMA, iATR, iMACD also I set the timeframe to H4 for the pair XAUUSD and for indicators. 1 ) FIRST the logic is that when I receive
Please i need help with logic. I created an ea to buy sell but I'm finding it hard to get the logic right. my problem is when I use all conditions inside of if statement it doesn't work properly on chart To validate buy; Green line <= 32, Green line must go below red line , Green line below blue
Some experts please tell what is wrong with the below code, it is not counting the open orders? int Nropen( int option){ int nrop= 0 ; for ( int ord= HistoryOrdersTotal ()- 1 ; ord>= 0 ; ord--){ ulong ticket= OrderGetTicket (ord); if ( OrderSelect (ticket)){ if (
Hi guys, Can you help me with my code, i need to close all current position when there is a new signal. Example: i'm currently on a Sell position, when there's a buy signal, i want the sell signal to close at market price and open a new buy position. Thank you! My code
hello everyone, i'm trying to write EA that decrease the current sell limit price every minute by one tick volume. but i get errors always can anyone help. the errors are: 'slippage' - undeclared identifier bbbb.mq5 33 12 return value of 'OrderSend' should be checked bbbb.mq5
I tried placing my intended function at the beginning of OnTradeTransaction, but my intended function is being executed after the trade request has already been executed
Hi  with the below function ,i can find if a symbl synchronized and updated or not.. is there there any way to synchronized a Symbol if its not synchronized?  SymbolIsSynchronized for example on my market watch i have 400 symbols, and till now i only used 5 of them ... so because regularly i use...
I have an EA, that I do not have the code for. It pops up a box with a yes or no question. Is there a way I can automate the clicking of the yes or no button
Hi When I want to get PositionOpenPrice for stoploss modification using CTrade , I have to write while(PositionSelect(symbol) == false); before PositionGetDouble(POSITION_PRICE_OPEN); otherwise EA can't get PositionOpenPriceand and so the Buy key on panel is only able to buy once not more Please
I have written an expert advisor (admittedly first attempt) which uses a canvas as well as a cAppDialog to simulate the TradeView trade visualiser and it works great. However, when removing the EA using the "Expert List" option on MT5, it also closes the chart to which the EA is bound. I am clearly
Can I make an EA in MetaEditor using python and after that to make some strategy tester in MetaTrader 5
Hello there sirs, I've run into a strange situation where my EA placed multiple orders even though I'm only alloting to perform CTrade PositionOpen if there is no open position. This is a very simplistic approach from what I'm using: void OnTick () { if ( PositionSelect ( _Symbol ) == false ) {
[Deleted]
Hello, I have this code to get the GMT in second, it give warning that I convert from datatime to int, yes, I know that. How to get rid of the warning? Can someone please help? int GetGMTinSec () { return ( TimeTradeServer ()- TimeGMT ()); }
  Learning mql5  (4)
Hi Guys, im learning the basics at the moment just scratching the surface really, i learnt python a while ago so i get the concept i have printed to the experts tab figured out the basics of variables ect i want to add some text to the chart window from what i can see this is possible am i on the
  Py into ex5  (5)
Hello! I've just wrote a strategy in a python script. Is it possible to transform it form .py into .ex5 and use it as a EA? Thank you
  Mql5 OHLC, ATR  (2)
Hello, when i'm building EA sometime i get ATR/OHLC wrong values. After few attempt they start getting correct and they never becomes incorrect. I have no idea why exactly this happening. I'm guessing it happens when i change timeframe, or when EA is just attached to chart, somehow it needs to load
Hi all, I'm currently PositionInfo's pricecurrent to check my position for take profit and experiencing sever slippage will changing to symbolinfotick improves the situation? Is there any difference between these two method? if (position.PriceCurrent() - position.PriceOpen() >= tmpTP *
What i want to do: When there is a transaction request(whether it comes from a stop loss order, target price order, or EA), i need to run a function to check something.If the function returns true,i need to stop the transaction before the request has been executed. What i tried: Put my function at
How do I remove the auto trade and these blue and red arrows that appear
I have an MQL VPS server running, but it's producing no terminal or expert logs in the journals' viewer for the server
Is there an existing article or code or even an open code pinescript in which we can understand the mathematics and logics behind the concept and practical use of the so-called "currency strength" in a way possible to reproduce it in EA's or indicators
Now I need to write an EA that can trade in multiple symbols and multiple timeframes of each symbol. Preliminary ideas as follow: 1 Write only one EA, and the EA can normally place orders in multiple symbols and multi timeframes of them without interference. 2 Write one EA, which can only trade in a
Hi, I'm working to create a function to store current open position assets name and volume in multi currency pair situation. The actual value would be like this, string CurrPortAssets[] = { "AUDCAD" , "EURUSD" , "GBPJPY" , "USDCAD" }; double CurrPortLotSizes[] = { 0.1 , - 0.1 , 0.15
HI, everyone Please help to advise. My optimization too long waiting time, now MT5 agent can calculate at 27905 of 129024 steps use time feel day 20:42:52/95:44:21 time remain for 4 days (I think time 95 hour for my cpu 8 core right?) My laptop is core i7 2.8 MHz processor local 8 core agent, it
  Delaying an EA ...  (10)
Hi to all, Let's say I started Metatrader at 6 am in the morning, but I want my EA to delay until 7 am. In MQL 4 my code was ... while (TimeHour( iTime ( "EURUSD" , PERIOD_M30 , 0 )) < 7 ); But as there is no TimeHour function in MQL 5 it gets compiler error. How can I translate it in MQL 5? Thanks
Is it possible to start a strategy tester session without a balance row on the history tab
Hello, im new on EA´s i currently have one problem, my EA seems to not be running (not displaying any comments, and suddenly on certain symbols it starts working an not on others, attached my on tick code and a picture of 12 symbols running my EA and only some have the comments and are operating
I'm asking because for what I'm doing I'm worried about overloading the memory