# landim32/ladinobot architecture

> Architecture diagram of the GitHub repository landim32/ladinobot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/landim32/ladinobot
- Repository: https://github.com/landim32/ladinobot

## Overview

LadinoBot is a MetaTrader 5 Expert Advisor for configurable, strategy-driven trading. The documented workflow is to configure trading hours, entry rules, risk limits, chart timeframes and trade objectives; the robot then opens and manages positions, including exits and position changes as objectives evolve. The tree separates the EA entry point, strategy implementations, trade handling and chart views. No source excerpts were provided, so edges are limited to relationships stated in the README; module-level call ownership cannot be verified.

Main entry points: [`Include/LadinoBot/LadinoCore.mqh`](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoCore.mqh) (Bot Core), [`Experts/LadinoBot.mq5`](https://github.com/landim32/ladinobot/blob/master/Experts/LadinoBot.mq5) (Expert Advisor), [`Include/LadinoBot/Trade/TradeIn.mqh`](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeIn.mqh) (Trade Entry), [`Include/LadinoBot/Trade/TradeOut.mqh`](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeOut.mqh) (Trade Exit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["EA Runtime"]
  node_ea["Expert Advisor<br/>[LadinoBot.mq5]"]
  node_core["Bot Core<br/>[LadinoCore.mqh]"]
  node_base["Base Logic<br/>[LadinoBase.mqh]"]
  node_bot["Bot Interface<br/>[LadinoBot.mqh]"]
end

subgraph group_signals["Trading Signals"]
  node_trend["Auto Trend<br/>[AutoTrend.mqh]"]
  node_candlestick["Candlestick Strategy<br/>[Candlestick.mqh]"]
  node_hilo["HiLo Strategy<br/>[HiLo.mqh]"]
  node_sr["Support Resistance<br/>[SR.mqh]"]
  node_indicator["Gann HiLo Indicator"]
end

subgraph group_execution["Trade Management"]
  node_tradein["Trade Entry<br/>[TradeIn.mqh]"]
  node_tradeout["Trade Exit<br/>[TradeOut.mqh]"]
  node_trade["Trade Logic<br/>[LTrade.mqh]"]
  node_utils["Trading Utilities<br/>[Utils.mqh]"]
end

subgraph group_presentation["Chart Views"]
  node_view["Chart View<br/>[LadinoView.mqh]"]
  node_log["Log Panel<br/>[LogPanel.mqh]"]
  node_language["Language Resources"]
end

node_trader(("Trader"))
node_mt5["MetaTrader 5"]

node_trader -->|"configures"| node_ea
node_ea -->|"runs on"| node_mt5
node_ea -.->|"uses strategies"| node_core
node_trader -->|"sets parameters"| node_core
node_core -.->|"opens trades"| node_tradein
node_core -.->|"manages exits"| node_tradeout

click node_ea "https://github.com/landim32/ladinobot/blob/master/Experts/LadinoBot.mq5"
click node_core "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoCore.mqh"
click node_base "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoBase.mqh"
click node_bot "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoBot.mqh"
click node_trend "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/AutoTrend.mqh"
click node_candlestick "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/Candlestick.mqh"
click node_hilo "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/HiLo.mqh"
click node_sr "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/SR.mqh"
click node_indicator "https://github.com/landim32/ladinobot/blob/master/Indicators/gann_hi_lo_activator_ssl.mq5"
click node_tradein "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeIn.mqh"
click node_tradeout "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeOut.mqh"
click node_trade "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/LTrade.mqh"
click node_utils "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Utils.mqh"
click node_view "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Views/LadinoView.mqh"
click node_log "https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Views/LogPanel.mqh"
click node_language "https://github.com/landim32/ladinobot/tree/master/Include/LadinoBot/Languages"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ea,node_core,node_base,node_bot toneBlue
class node_trend,node_candlestick,node_hilo,node_sr,node_indicator toneAmber
class node_tradein,node_tradeout,node_trade,node_utils toneMint
class node_view,node_log,node_language toneRose
class node_trader,node_mt5 toneIndigo
```

## Components

### EA Runtime

- [Expert Advisor](https://github.com/landim32/ladinobot/blob/master/Experts/LadinoBot.mq5): `Experts/LadinoBot.mq5`
- [Bot Core](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoCore.mqh): `Include/LadinoBot/LadinoCore.mqh`
- [Base Logic](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoBase.mqh): `Include/LadinoBot/LadinoBase.mqh`
- [Bot Interface](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/LadinoBot.mqh): `Include/LadinoBot/LadinoBot.mqh`

### Trading Signals

- [Auto Trend](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/AutoTrend.mqh): `Include/LadinoBot/Strategies/AutoTrend.mqh`
- [Candlestick Strategy](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/Candlestick.mqh): `Include/LadinoBot/Strategies/Candlestick.mqh`
- [HiLo Strategy](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/HiLo.mqh): `Include/LadinoBot/Strategies/HiLo.mqh`
- [Support Resistance](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Strategies/SR.mqh): `Include/LadinoBot/Strategies/SR.mqh`
- [Gann HiLo Indicator](https://github.com/landim32/ladinobot/blob/master/Indicators/gann_hi_lo_activator_ssl.mq5): `Indicators/gann_hi_lo_activator_ssl.mq5`

### Trade Management

- [Trade Entry](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeIn.mqh): `Include/LadinoBot/Trade/TradeIn.mqh`
- [Trade Exit](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/TradeOut.mqh): `Include/LadinoBot/Trade/TradeOut.mqh`
- [Trade Logic](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Trade/LTrade.mqh): `Include/LadinoBot/Trade/LTrade.mqh`
- [Trading Utilities](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Utils.mqh): `Include/LadinoBot/Utils.mqh`

### Chart Views

- [Chart View](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Views/LadinoView.mqh): `Include/LadinoBot/Views/LadinoView.mqh`
- [Log Panel](https://github.com/landim32/ladinobot/blob/master/Include/LadinoBot/Views/LogPanel.mqh): `Include/LadinoBot/Views/LogPanel.mqh`
- [Language Resources](https://github.com/landim32/ladinobot/tree/master/Include/LadinoBot/Languages): `Include/LadinoBot/Languages`

### Other components

- **Trader**
- **MetaTrader 5**

## Connections

- Trader → Expert Advisor: configures (evidence: `README.md`)
- Expert Advisor → MetaTrader 5: runs on (evidence: `README.md`)
- Expert Advisor → Bot Core: uses strategies
- Trader → Bot Core: sets parameters (evidence: `README.md`)
- Bot Core → Trade Entry: opens trades
- Bot Core → Trade Exit: manages exits
