Skip to content

Instantly share code, notes, and snippets.

View zmlu's full-sized avatar
🦖
Happy

zmlu zmlu

🦖
Happy
  • Frankfurt am Main
  • 11:31 (UTC +02:00)
View GitHub Profile
@zmlu
zmlu / zmlu_gold_trader.mq5
Last active November 19, 2024 02:21
Gold Trader
//+------------------------------------------------------------------+
//| 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)