Forum

Total Bid and Ask volume in mql5

Hello, It's the 1st time i try to code in mql5 and i'm trying to calculate the total ask volume and bid volume of the previous candle. Is this value stored somewhere or i have to do a cycle for each previous candle and add each bid/ask value to a variable for every single tick of that candle? If

OrderSend error 4107

Hello community, i'd like to ask if someone else encountered this weird error that can only appear during backtest (and not on demo or live): OrderSend error 4107. The error should be related to: Negative values in price , stoploss or takeprofit parameters of the OrderSend() or OrderModify()

Change candle border color in mq5 (MT5)

Hello folks, i'm trying to edit the code of heiken ashi indicator so i can also change the color of the border of the candle but since i never coded in mq5 i can't make it work. Can anybody suggest me how to do it please? This is the original code: //--- indicator settings #property

Withdraw problem

Hello folks, it's more than 1 month that i'm trying to withdraw money from my account and it says: "Withdrawal unavailable: We need to perform additional verification of your account. This is a standard procedure meant to ensure the security of all MQL5.community members. Currently, no action is

Expiry date and strategy tester

Hello, if i set an expiry date in my EA, is it normal that in the strategy tester the EA still opens trade? Or i did something wrong? This is the code i used. datetime expiryDate= D'2021.04.21 11:35' ; void OnTick () { if ( TimeCurrent ()>expiryDate) { Comment ( "Expired" );

Chart size and position

Hello, may i ask why i can't set the height, width and position of a chart after opening it? This is the code i use: // General Variables bool ChartSetInteger (); // function void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string &sparam) { if (id==

How to keep zeros after converting from string type

Hello, I'm coding a basket indicator which alerts me when/if a pair from the list reaches a round number (000/500). I've been able to obtain the last 3 digits from each pair as string (with StringLen and StringSubstr) but when i try to convert them to double or integer all the zeros got removed from

Marketplace rental products.

Hello everybody. I'd like to ask how it works when i decide to rent a my product to the market. If i just post the full product, how the product is modified or set up for working just for the rental period? Thanks