Daily Target, Max Daily Losses with MagicNumber – EA MetaTrader 4

Daily Target, Max Daily Losses with MagicNumber - expert for MetaTrader 4
Trading tools used by traders to make it easier for traders to control and a faster process to close order positions according to the profit target or daily loss limits. Calculation by adding up the total floating and closed orders that are pulled from the history data. If you have any questions or requests, please … Read more

daily drawdown – indicator MetaTrader 5

daily drawdown - indicator for MetaTrader 5
In the lower right corner of the page, you can see the profit or loss percentage of your account. OnInit():    CreateEdit(“Daily DD”,200,68,98,30,”Daily DD”,clrWhite,clrBlack,12);    CreateEdit(“Daily DD V”,100,68,98,30,””,clrWhite,clrBlack,12); OnDeinit:    ObjectDelete(0,”Daily DD”);    ObjectDelete(0,”Daily DD V”); OnCalculate:    MqlDateTime w;    TimeToStruct(TimeCurrent(),w);    string md=IntegerToString(w.year)+”.”+IntegerToString(w.mon)+”.01″;    double historyProfit=0,deposit=0;    HistorySelect(0,TimeCurrent());    ulong ticket_history_deal=0;    for(int … Read more

Daily Profit Function – EA MetaTrader 5

Daily Profit Function - expert for MetaTrader 5
I wrote this function as an easy template for accessing the current day’s trading history. Can be expanded upon by the user by adding additional doubles, i.e. Volume, or for different periods, by amending the start variable.  The Daily Profit value is written to the Experts Panel by default. Very simple, easily understood code. Daily … Read more

Lazy Bot MT5 (Daily Breakout EA) – EA MetaTrader 5

Lazy Bot MT5 (Daily Breakout EA) - expert for MetaTrader 5
Input parameters //Import External class #include <TradePositionInfo.mqh> #include <TradeTrade.mqh> #include <TradeSymbolInfo.mqh>   #include <TradeAccountInfo.mqh> #include <TradeOrderInfo.mqh> //— introduce predefined variables for code readability #define Ask    SymbolInfoDouble(_Symbol, SYMBOL_ASK) #define Bid    SymbolInfoDouble(_Symbol, SYMBOL_BID) //— input parameters input string  EASettings = “———————————————“; //——– <EA Settings> ——– input int      InpMagicNumber = 123456;   //Magic Number input string   InpBotName = “LazyBot_V1”; //Bot Name input string  TradingSettings = … Read more