Forum

How to hide a CLabel

Hello to everybody; I am new to MQL5 and I am trying to experience in making a simple form, for now. My goal is to hide a CLabel , once c reated it and added to the form. In the Create() method bool CFormDialog::Create( long chart, string name, int subwin, int x1, int y1, int x2, int y2) {

Subscribe for a signal

Hello to everybody... I want to subscribe for a particular signal; I want to know how to do. It's a stock exchange signal

Identity Certificate vs. ID Card

Hello to everybody, My goal is to register myself as a seller, but it is not clear for me which is the exact difference among Identity Certificate and ID Card. Better if an Italian user could reply me. Davide

Closing a deal

Hello to everybody, My goal is to write an EA which react in a particular way once I close a specified deal; i.e. suppose I have just closed a specified deal by the following code ticket = PositionGetTicket (i); print( "Opened order ticket no.: " + IntegerToString (ticket)+ " closed" );

CTrade.PositionClose()

With reference to this page: https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradepositionclose , I want that once a deal is just closed whit this chunk of code: int posOpened = PositionsTotal (); for ( int i= 0 ; i<posOpened;i++) { ticket = PositionGetTicket (i);

Pointer to a funcion in MQL5

Hello to everybody, My question is quite simple and I want to know if MQL5 supports the pointer to a function paradigma exactly like in C++... is yes where can I find an exhaustive tutorial ? Regards

Buy Operation not Ok

Hello to everybody, I try to run this chunk of code double price = 0 ; double sl, tp; price = SymbolInfoDouble ( Symbol (), SYMBOL_ASK )+offs*point; sl = price-stopLoss*point; tp = price+takeProfit*point; if (m_trade.BuyStop( 0.01 ,m_symbol.Name(),price,sl,tp, ORDER_TIME_GTC , TimeCurrent ()+

Check order status

Hello to everybody, I have a little problem, because of my little knowledge of MQL5 language... Once I open an order, using OrderOpen() of Ctrade class, now I want to know to check its status at every tick; i.e. I want to know if it is still opened or instead closed because of TakeProfit or StopLoss

ASK vs. BID

Someone of you, could be so kind to explain me which is the differencie between ASK and BID quotations, and how these quotations are related whith the values I get from CopyHigh and CopyLow mql functions ? How could I use these values in my trading systems ? Thanks to everybody will reply me. Davide

Price for pending orders ASK vs. BID

Hello to everybody... Even though I know very well the art of the computer programming, I do not know almost anything about coding for trading online... My need now is to get price for pending orders so, if I well understood the differencies about ASK and BID price I should write this code else