Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Easy Object - MetaTrader 4 Library | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

Easy Object - library for MetaTrader 4

A simple class to simplify the manipulation of objects.

Here's the thing:

 Object Create ( 0 , "Name" , ObjectText , 0 , 0 , 0 ); Object Set String ( 0 , "Name" , OBJPROP_TEXT , "Hello World!" ); Object Set String ( 0 , "Name" , OBJPROP_FONT , "Calibri" ); Object Set Integer ( 0 , "Name" , OBJPROP_FONTSIZE , 16 ); object set integer ( 0 , "name" , OBJPROP_COLOR , lime green ); object set integer ( 0 , "name" , OBJPROP_Anchor , ANCHOR_LEFT_LOWER ); object set integer ( 0 , "name" , OBJPROP_TIME , time current ()); // * 
 Object Set Double ( 0 , "Name" , OBJPROP_PRICE , Q ); // * 
 // *Used to move objects after creation

It becomes like this:

 _( "Name" ) //! Name is required . type( object text ) //! Type is required .text( "Hello world!" )
 .font( "Calibre" )
 .font size( 16 )
 . Color ( lime green )
 . Anchor ( ANCHOR_LEFT_LOWER )
 . time( timecurrent ())
 . price( ask ); 

Easy Object - library for MetaTrader 4

Method names are mostly consistent with standard constants.


Attachment download

📎 easyobject.mqh (16.29 KB)

📎 scr_easyobject.mq4 (1.08 KB)

Source: MQL5 #23261

Verification code Refresh