Expert Advisors and Automated Trading - page 191

Is it possible for an EA/script to save ALL chart templates that are open in the terminal? I know the chart operations are available but how do I search for the values of the chart ID's that are open? If I can pull a list of the open chart ID's can I use ChartSaveTemplate to reference each...
I have an EA in which i need to get the result of the latest deal, to see if it closed in profit or loss which works perfectly in a graph, however, when running the strategy tester, as soon as it reaches the code to check the deal history the tester permanently freezes. The code only runs once
Hi, My orders go through almost all the time but one order did not overnight and the only thing it says is Request rejected. Along with a retcode of 10006. It doesn't offer anymore details on it. I just tried another order and it went through fine, so I'm a little puzzled by this? I recently went
Hello, I am writing a code to close trades when Account Equity is greater that Account Balance. My target is to reduce risk for another martingale EA. so I exit at neutral point (No Loss / Profit) after the EA open 5 trades or more. My question is: is there is any way to close orders based on the
Hello Community :) This is my first Topic here so i come for help .. I know there are some guys here who are very advanced . The problem i face is i couldn't compare if Macd main/signal line is above/below Momentum . I can't write .. "if(iMomentum>iMACD) " Because as you know each indicator...
Hi, My OrderSendAsync returns true (sent ok) but the order isn't executed. I suppose this is because of request.deviation (because if I put a higher value, then orders are executed). How can I determine, for sure , that my orders are rejected because of a request.deviation that is too low? Thanks
Hi, I have tried several panels to help me react faster than the buy and sell option built into MQ5, but regularly, the panel does not respond anymore, I am forced to delete it and add it again to be able to use it... and I don't know why, I have tested without putting any indicators, only the panel
Is it possible to create a drop down menu that shows you available pairs and changes an indicator's values depending on what pair you pick from the EA settings drop down menu? Would that be variables? I haven't even tried messing with variables yet as I don't understand what that's about. I only
Hello Guys Regarding with my scalping strategy, in very short time I am looking for script to close all order whether it profit or loss... with one click.. Thank you
Hi there, I've tried to build a notification following the MQL5 guidelines, that's something like this: string CC= StringFormat ( " [" ,CustomComment, "]" ); string PTC= StringFormat ( "Positions to close: " ,TC); string LS= StringFormat ( ", loss: "
Hi, I want to activate trailing stop loss for my trades in MetaTrader 5 using Python, however, I cannot find any built-in function in MT5. Do you know what I must do? Thanks
How do I make an EA to trade exactly the same on "open bars" and "Every real tick" settings on history? I did create a function that only allows the EA to trade on the first tick if (iVolume(Symbol(),PERIOD_M15,0 )!= 1)return; But I get a diffrent equity graph than when setting the settings to
  Moving Average  (8)
``` void OnTick () { //--- double MA[]; // array for iMA indicator values //---- handles for indicators int MA_handle; double open = iOpen ( NULL , 0 , 0 ); double close = iClose ( _Symbol , PERIOD_CURRENT , 0 ); double Ask = NormalizeDouble (
As the title suggests its supposed to only fire of a single trade per candle. Im guessing my loops have an issue or something I disregarded. Can someone with fresh eyes kindly assist. #include <Trade/Trade.mqh> #include <LotSizeCalc.mqh> //enum IndexList{BUY=1,SELL=0,}; //input IndexList PROGRAM =
  Closing graphs  (8)
Hi; anyone know how close all graphs at same time? tks
Hello, I am new in MQL5 programming language and creating a simple expert advisor . The problem is I've placed an order and then modified using Stop-Loss and Take-Profit. But I want to remodify my Stop-Loss and Take-Profit for the same order on specific market condition. But I can't do that. It's
[Deleted]
Hi Is it possible to calculate in sequence; 1. Market low. 2. then a Bounce. 3. then a Pullback. 4. then a Break upward. If so, were would I begin
Hi. I would like to obtain the price values, up middle and low, of a bollinger indicator to send them into a csv file in real time to feed the data to an external program. I've already have the mql5 program to send the data using a modified program that saves ticks into a csv file, I just need some
Hi, How would I go about connecting MT5 to Excel and exporting trades in real time to Excel automatically? Thanks
I Can't Uplaod EA for Sell in MQL5.Before I can upload more 20 EA for SEll
Hello,everyone Is there a function that able to set live trading on/off ? It is same as turn on/off live trading by click on terminal. thank you
Hello, does someone know a condition to trade only once per hour in mql5, i'm a begginer and having trouble to find something that i can undestand. Or some ressource to learn more about it Thank you
Hey all, I have forward tested an EA that is supposedly meant to pass prop firm challenges. As far as it's performance in my test, it did what it said that it would do and so far as that test shows, it would have passes the prop firm challenge. My questions is, is there any reason to believe that it
Hi, An EA I purchased, and am already using on MT5, just released an updated version. I went to the market page/my profile/purchases and for this EA the only link i see is to "install on the terminal"- I've done that already so that link (install on terminal)is useless. Where/how do i find the "
i am looking for a expert advisor bot trading wch gives maximum profit and minumun losses. please suggest and let me know the good bot for MT5
Hello board, I'm troubleshooting a problem for some days now, but did not found a solution for it. My EA sometimes can't perform a stop loss modification order giving this error: 2022.06 . 22 07 : 53 : 21.837 Core 1 2022.06 . 15 14 : 58 : 00 order performed sell 1 at 104975 [ # 94 sell 1 WINQ22
Hello, I've worked through issues I was having with behavior of a subclass of CPanel used in a custom indicator of mine. My primary remaining issue was maintaining the maximized/minimized state of the panel when changing timeframes. I solved this (after implementing other solutions toward this goal)
Hi, I'm running several strategies on the same symbol on MT5 (hedge). Is there a way I can visualize on the chart the deal history for each magic number? If no, I thought of creating an Indicator to plot "manually" the objects to create the entry point, the exit point and the line connecting them
First i want to modify the system into break even then after 30 pips in profit i want to carry it with 20 pips trail. if its gets worked with break even it wouldn't work with trailing or if its worked with trailing stop i would not work some other condiotion. Please help