Codes

Close All for MetaTrader 4

Simple code to close all opened orders

Easy Reverse for MetaTrader 4

The script reverses all the orders of the actual chart symbol

Forum

i have a doubt

i have the moving average shifted 10 and with sma i know his value(price) but it's possible get the datetime of the shifted period too? thanks in advance! double sma = iMA ( NULL , PERIOD_CURRENT , 16 , 0 , MODE_SMA , PRICE_CLOSE , 10 );

hides global declaration warnings

i often create function that hides global declarations, there somehow to avoid this problem ? i need to create several function that catch the same variable of the onstart(), to code it faster and easy to read i desire that all my functions have the same name but its another declaration, so i get

How to set ListView, checkgroup and radiogroup?

The example CPanelDialog (PanelDialog.mqh) show how to create, set an event and delete these objects. I tried, BUT i understood nothing i'm new in the programming. Someone could explain it in a simple way to how use the classes for the dialogs, ty

OBJ_BITMAP, I have problem on create this object.

i compiled this with the aim for show the icon on the chart. the object is created but i see nothing on the chart. Pliss Help me. sry for my bad english. void OnInit () { IconLabel(); } void IconLabel( void ) { string obj_icon= "IconLabel1" ; ObjectCreate ( 0 ,obj_icon, OBJ_BITMAP

Need help! with OnChartEvent comma expected error

i compiled it with the aim to show me the spread of the market when i press 'Q' but i get this error " comma expected" thx, string obj_spread = "Market Spread" ; //+------------------------------------------------------------------+ void OnChartEvent ( const int CHARTEVENT_KEYDOWN , //