Expert Advisors and Automated Trading - page 127

  Freelancing not an option.  (16   1 2)
Hello all, I am new to MT and looking to automate a strategy for MT4. Freelancing is not an option because there is no way to verify whether a developer can build it. The platform locks the money until it is done and could be locked forever. Thank you
Hi all. It is my understanding (please correct me if I'm wrong) that I can follow the instructions here to build the equivalent of an EA in python instead of MQL5, calling the python functions on that documentation page to handle all the broker interaction, and all the other logic and calculations
[Deleted]
void OnTick () { int HC3 = iHighest ( NULL , PERIOD_D1 , MODE_HIGH , WHOLE_ARRAY , 0 ); double HC33 = High[HC3]; double BearMarket = (((HC33-( SymbolInfoDouble ( Symbol (), SYMBOL_BID )))/ HC33) * 100 ); } Trying to find if the price is in a bear market on the daily chart while looking for
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
Maybe I am not using the right search terms in google or on this forum (if so, please enlighten me so I can find the golden key). I cannot find easy solutions to aligning my timezone with my broker's timezone in the strategy tester ... and take into account DST. So, I kludged my way through it as
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