Forum

a critical look at my code please

Hello, sorry for my bad english To continue learning MQL4 , I wrote this simple code. There is a detecting 2 Moving Average crossings . This code works correctly , but I'm open to constructive criticism to learn and improve Thank you for your comments

Warning with build 604

Hello, Sorry for my bad English. I compile my old EA in the build 604 format and I receive a warning " Check operator precedence for possible error; use parentheses to clarify precedence" on the OrderSelect line. I try to integrate parentheses, but the warning stay. If someone had a idea to delete

Your opinion on this small code please

Hello, Can you tell me your opinion on this piece of code please. Its goal is to count the total number of active orders (op_buy and op_sell only, no pending) in progress on several EAs. Thanks , Emmanuel. Total_Orders = OrdersTotal (); Compteur = 0 ; for (Position_Index = Total_Orders - 1 ;

Help to close OP_BUYLIMIT

Hello, Sorry for my bad English, I'm Frenchy...., I'll try to be clear In my code, when conditions replies, the OP_BUYLIMIT (Achat_1) is open and a I place a new OP_BUYLIMIT pending. If Achat_2 is active, a new OP_BUYLIMIT (Achat_3) is pending . There is additional code between these lines, useless

Line connecting open and close trade

Hello, Sorry for my bad English. When I test my EA under MT4, a blue line connect the open and close trade When I trade in my real account , no line appear. I suppose I need include a code in my EA. If someone have a example. Thanks Arsouille

How To Limit To One Trade Per Stochastic Crossing

Hello, Newbie, I created my Stochastic EA to learn MQL4. Sure , my code could be more beautiful , but it works. Below the code for opening a Buy and closing it. Seeking to improve , my question is as follows : You can view on the same bar , I get several Trades when I have a small "TakeProfit"

ObjectSetText and variable

Hello, Sorry for my bad english, I'm Frenchy -:) Newbie, I try to use ObjectSetText. I managed to display correctly a ObjetSetText when it is a comment Exemple : ObjectCreate ( "Texte" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetText ( "Texte" , "Hello" , 8 , "Times New Roman" , White ); ObjectSet ( "Texte"

iMA, iMACD and iStochastic

Hello, Sorry for my bad English, if you can give me a little advice on my code. I think it can be used also to other newbie. I created a EA that works correctly (no error) , however, I would like to be inserted on conditions. I joined the conditions of two moving averages , a MACD and stochastic