Forum

Getting the Position Price

Let's say we open a position with the CTrade class. CTrade t; t.Buy( 0.1 ); What is the quickest way to get the open price and ticket of this position or detect failure? As simple as that. Thank you

What is the correct way to fill an array with Positions?

The code: void FillArray(PosArray& C) { int total= PositionsTotal (); for ( int i= 0 ; i<total; i++) { CPositionInfo p; if (p.SelectByIndex(i)) { C.InsertSort( new Pos(p)); } Sleep ( 1 ); }

What type of Card is working with the Card withdrawal method?

Where can I get a Visa or MC Card that is able to receive funds from MQL withdrawal as an EU citizen

Print(i++,i++,i++,i++)

The above code prints 3210. Is the order somewhere documented? Is it always right to left

Does it make sense to call BarsCalculated form a custom Indicator?

Hello, I have an Indicator which calls an another CPU heavy custom indicator (on 7 different currencies). So, in the Init function I create the 7 handles and within OnCalculate I use CopyBuffer to get the data. Sometimes this indicator starts normally but sometimes it seems the buffers are not ready

Standard library button behaviour

The onclick event behaviour of the buttons created with the standard library is weird. Is there any way to change that? For example: if you click on the button object but the mouse pointer is no longer pointing to the button when you release the mouse's left button, that does not fire the ONCLICK

Scaling issue on high resolution displays (CAppDialog)

Hello, The graphical objects of the standard library look really small on a high res display (header, radio buttons etc). Is there any easy way to scale the things up or this has to be handled in a custom way

Would WebRequest work on a Virtual Hosting?

if i order a VPS from mql5.com and run an EA which uses the WebRequest function , will it be able to send http requests