Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

COrdersManager class - library for MetaTrader 4

Views:
6606
Rating:
(25)
Published:
2015.08.25 16:01
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

It is a simple but good class for orders management. I know there should have been management of magic numbers and so on, this is just a taste.

Usage:

COrdersManager Orders;

Orders.DeleteAll();              // Close and delete all orders (open and pending)
Orders.CloseOpen()               // Close all open orders
Orders.CloseSell()               // Close all SELL orders
Orders.CloseBuy()                // Close all BUY orders
Orders.DeletePending()           // Delete all pending orders
Orders.CheckOpenOrders()         // Returns amount of open orders
Orders.CheckOpenBuyOrders()      // Returns amount of buy orders open
Orders.CheckOpenSellOrders()     // Returns amount of sell orders open
MySQL library for MQL4 with proper memory management MySQL library for MQL4 with proper memory management

Library provides functions for management of MetaTrader 4 to MySQL database connections. Fixed memory allocation and release problems of the original library.

Flag and Pennant patterns Flag and Pennant patterns

This indicator shows Flag and Pennant patterns.

Histogram Blanket Histogram Blanket

This new representation helps to see charts in a new different way.

ATR 3 LWMA ATR 3 LWMA

This indicator shows 3 periods ATR LWMA.