This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//+------------------------------------------------------------------+ | |
//| Expert initialization function | | |
//+------------------------------------------------------------------+ | |
#property strict | |
#include <Trade/Trade.mqh> | |
CTrade trade; | |
input double LotSize = 100; // Default Lot Size | |
input int MagicNumber = 960713; // Magic Number for identifying trades | |
input int MaxBuyBarCount = 30; // Maximum number of bars to hold a buy position (-1 to ignore) |