mql4

  1. Vondereich

    Help Needed: Take Profit Not Moving Correctly on Live Account with Martingale Strategy

    can someone help me why when during live account trade, my takeprofit is not moving correctly.. While using the demo account the takeprofit move flawlessly.. Here my code related to the system trade, by the way this using martingale, when more layer are open, the take profit consistently static...
  2. Jajaofopobo

    Ordermodify mt4 code issue

    i have an issue with this function code. Please any help will be greatly appreciated. No. 1: it doesnt close breakeven when it partially closes the trade. states "OrderModify error 4108 unknown ticket 1 for OrderModify function" and i have tried my best but still dont get/understand it. No. 2...
  3. Jajaofopobo

    How to get the creation time of an object

    I'm trying to get the time an object was formed on the chart and i tried using the ObjectGetInteger(0,ObjectName, OBJPROP_TIME) but it is giving me the time of the middle text of the object not the time the object was created/appeared on the chart. Is there a way i can go around it? please help
  4. shanmugapradeep

    How to get Stop Out Level and Margin call level

    Hello, Different brokers have different Margin call and Stop out level percentage. How to get that using MQL4 code? I am trying something like this but not working double marginCallLevel = AccountInfoDouble(ACCOUNT_MARGIN_CALL_LEVEL); double stopOutLevel =...
  5. faustf

    mql4 to mql5 help

    Hi guys i try to convert this function in mql5 someone can help me ? I don't know which way to go again string MouseState() { string res; res += "\nML: " + (((state & MOUSE_BUTTON_LEFT) == MOUSE_BUTTON_LEFT) ? "DN" : "UP"); // mouse left res += "\nMR: " + (((state &...
  6. J

    How to Disable Colors/Visualization tab in MT4 Indicators

    Hi, I have deloped an Indicator where I would like to hide the colors and visualization tab in MT4. Is that possible? Thanks /Josh
  7. shanmugapradeep

    [MQL4 CODING] Function to close Losing trade when it reached X distance

    Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30; if((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {...
  8. TomDominic

    MQL4 warnings: Expression has no effect

    helloo,,, i still have some warnings in my code . expression has no effect . 3 of them . What about it and how can i solve it please ?
  9. ultimate3101

    Hi! I have an Error: 138

    I Made an EA, but get an Error which sais Order Send Error 138 Can someone Help me? input double UpZone = 1.3000; // Define your UpZone value input double DownZone = 1.2900; // Define your DownZone value input int ATR_Period = 14; // ATR period input double MinATRLevel = 0.001; // Minimum ATR...
  10. TomDominic

    return value of orderclose should be checked

    how can i solve this warning..... return value of orderclose should be checked,
  11. Jajaofopobo

    MTF FRACTAL MT4 TO MT5 CONVERSION

    I attempted to convert an MT4 multi-timeframe fractal indicator to MT5 but encountered difficulties due to the differences in syntax, particularly with the absence of barshift in MQL5. I'm not acoder, I would greatly appreciate any assistance in implementing the iFractals coding (copy buffer...
  12. shanmugapradeep

    [MQL4 CODING] Target Revenue in Percentage using Account Balance and Equity

    Hello, I am adding new feature in my EA, which close trade automatically when it fulfilled defined earning set by user and than it redefine with value again with new Account balance. Example : Account Balance = $1000 Target Percentage = 10% (10% of 1000$ = $100) When Account...
  13. shanmugapradeep

    What does OrderType() > OP_SELL mean?

    Hello, What does OrderType() > OP_SELL mean? There are a few instances in the EA I am working with that have some if conditions with OrderType() > OP_SELL . I understand that OrderType() == OP_SELL means it should be equal to a sell order, and OrderType() != OP_SELL means it should not be...
  14. shanmugapradeep

    Understanding Trailing Stop Loss

    Hello, I am finding little difficult in understanding Trailing Stop loss. How does it work, does it take value from Stop Limit, Trade Entry Price or Current Price or Highest Peak in Favorable direction. After reading some blogs about Trailing Stop, This what i understand :- Condition: If...
  15. dzungsua

    [MQL4 Coding Help] Trouble with Time Filter

    Hello Enivid or any coder here ; I have a simple EA that has been working very good for me ; the only problem I have with it is the Time Filter ;the Hour funtion is OK but the Minute function is not ;if I set it to trade from 7:15 to 11:20 it still start to trade from 7 :00 and stop trading...
  16. shanmugapradeep

    [MQL4 Coding Help] Fixing News Filter EA

    Hello, Currently i am coding a news filter EA and having some errors. #import "urlmon.dll" int URLDownloadToFileW(int pCaller,string szURL,string szFileName,int dwReserved,int Callback); #import #define INAME "FFCPing"+_Symbol #define TITLE 0 #define COUNTRY 1 #define DATE 2 #define TIME...
  17. shanmugapradeep

    [MQL4 Coding Help] How to write If-else sequence in MQL4

    Hello, What is correct way to add if else statement. TYPE 1 : If else sequence separately : if (condition1) { //Condition 1 task } else { if (condition2) { //condition2 task } else { if(condition3) { //condition3 task } else { //condition else task } TYPE 2 : Else if statement sequence...
  18. TomDominic

    warnings

    how can i remove this warnings,,,,, return value of orderclose should be checked, also for orderdelete and orderselect. Also,,,,this Expression has no effect....i have three of this....please help me here
  19. Enivid

    Close All Orders (Positions)

    Please use this thread to discuss our Close All Orders (Positions) MetaTrader script. It's a simple script to mass-close orders in MT4 or positions in MT5. You can download the script from its description page (linked earlier) and ask any questions about this free script here.
  20. TomDominic

    Code questions

    i need a code to compare the bid price and the openning price....plzzz and how can i get to se the bid and open price on the screen,