Forum

WebRequest no communicate with API

hello good day, i´m trying to send some simple data from my EA in mql5 to an API. i wish send the follow string "id_ea=2&symbol=EURUSD&operation=SELL&value=1.3142 " a my index.html void Enviar() { string url= "http://127.0.0.1:8080/" ; char post[]; char result[]; string headers; int res;

draw Line

Good day, How can i use the function Line, It is in clase CCanvas. For use this call a library #include <Canvas\Canvas.mqh> after i give name a objet CCanvas miLinea; For draw adk the follow parameters (x1, y1, x2, y2, color) all integers. know what x1, x2 are times and y1, y2 are prices, how i use

How draw Line

Hello good day, i am trying draw line in the windows chart with the class CCanvas, want connect two points for one line, how follow: CCanvas miLineaUp; atrhighVal[2]=maVal[2]+atrVal[2]*2.5; // EMA(21) + ATR(14)*2.5 atrhighVal[1]=maVal[1]+atrVal[1]*2.5; // EMA(21) + ATR(14)*2.5 y1=atrhighVal[2];

Closed position, touched takeprofit or stoploss?

Good day traders , when i place orders i also place the takeprofit and the stoploss, I can also determine if the transaction has been closed by: if (myPositions.Select (_Symbol) == false) But I do not know how to determine if the price has touched my takeprofit or stoploss, since I ask the question

Use indicator in other indicator

Hello, in the programming of my indicator i need the output data of two indicators, one of them is called X-ZZ.ex4 Use the iCustom function to call it, as follows: double valor=iCustom(NULL,0,"..\\Indicators\\X-ZZ.ex4",0,0,1); However i get an error in this line, saying not to recognize the file