Initial commit: MQL5 Scripts Collection (MetaTrader 5)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,21 @@
|
||||
# 🚀 Unlock the Power of Trading!
|
||||
|
||||
Welcome to this open-source trading project. Here you will find powerful tools to enhance your trading journey. If you find this project useful, please consider starring ⭐, sharing, or donating to support further development!
|
||||
|
||||
---
|
||||
|
||||
**Support the project:**
|
||||
- Star this repository on GitHub
|
||||
- Share it with your trading friends
|
||||
- [Donate here](https://www.paypal.com/donate/?hosted_button_id=YOUR_BUTTON_ID) to help us grow!
|
||||
|
||||
---
|
||||

|
||||

|
||||

|
||||
|
||||
## Source Files
|
||||
- `objectstotal.mq5`
|
||||
|
||||
---
|
||||
> Made with ❤️ for the trading community.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,29 @@
|
||||
//+------------------------------------------------------------------+
|
||||
//| ObjectsTotal.mq5 |
|
||||
//| Copyright © 2015, Vladimir Karputov |
|
||||
//| http://wmua.ru/slesar/ |
|
||||
//+------------------------------------------------------------------+
|
||||
#property copyright "Copyright © 2015, Vladimir Karputov"
|
||||
#property link "http://wmua.ru/slesar/"
|
||||
#property version "1.00"
|
||||
#property description "Returns the number of objects of the specified type."
|
||||
#property script_show_inputs
|
||||
//--- input
|
||||
input ENUM_OBJECT inpObject=OBJ_ARROW_THUMB_UP; // object type
|
||||
input int inpSub_Window=-1; // window index ("-1" all subwindows)
|
||||
//+------------------------------------------------------------------+
|
||||
//| Script program start function |
|
||||
//+------------------------------------------------------------------+
|
||||
void OnStart()
|
||||
{
|
||||
//---
|
||||
int intCount=ObjectsTotal(0,inpSub_Window,inpObject);
|
||||
string count_windows="";
|
||||
if(inpSub_Window==-1)
|
||||
count_windows="all subwindows";
|
||||
else
|
||||
count_windows="subwindow ¹ "+IntegerToString(inpSub_Window);
|
||||
string text="In "+count_windows+" is "+IntegerToString(intCount)+" "+EnumToString(inpObject);
|
||||
Alert(text);
|
||||
}
|
||||
//+------------------------------------------------------------------+
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user