expertremove

Author: Lucik, 2023
0 Views
0 Downloads
0 Favorites
expertremove
//+------------------------------------------------------------------+
//|                                                 expertremove.mq4 |
//|                                                      Lucik, 2023 |
//|                              https://www.mql5.com/ru/users/lucik |
//+------------------------------------------------------------------+
#property copyright "Lucik, 2023"
#property link      "https://www.mql5.com/ru/users/lucik"
#property version   "1.00"
#property strict
//--- input parameters
input double   FreeMargin=90.0;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(IsTesting()&&AccountInfoDouble(ACCOUNT_MARGIN_FREE)<=FreeMargin) ExpertRemove();
  }
//+------------------------------------------------------------------+

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---