Codes

Symbol Movement for MetaTrader 4

This custom indicator will show you 28 pair's daily candle range, High-Low range, candle bullishness or bearishness from real tick market. So you can understand the overall market situation very short time. You can change the default timeframe from Daily to any period and default candle (bar) number

Forum

Want to get max and min price from a loop

Hello dears! I want to find/get max and min price from a certain loop. Example: there are 3 orders are running in EURUSD. now I want to get max price and min price among the running orders. double max_running_price = 0 ; double min_running_price = 0 ; if ( OrdersTotal () > 0 ) {

How to count how many currency pair(s) running with active order(s)

Hello! Can anyone help me to code, how to count total number of running currency pair(s) with active order(s). In the picture, there are 4 active orders running with 3 different currency pairs. Here, I don't need to count total orders using OrdersTotal() function. Also I don't need to identify

Decreasing loop for history deals not work in MQL5

I want to count history deals from down to up. But my code not work perfectly. Please help me anyone. HistorySelect ( TimeCurrent (), 0 ); if ( HistoryDealsTotal ()> 0 ) { for ( uint i = uint ( HistoryDealsTotal ()- 1 ); i >= 0 ; i--) { if (Deal.SelectByIndex(i)== true

Help to create global variables with separate words

Hi, I want to create global variable's word with separation. I can create like below: But I want to create like below: If any one help me this simple/ critical issue, I would be very grateful to him/ her