Skip to content

Commit

Permalink
Updates README
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Nov 7, 2021
1 parent 398c4fa commit d659c9a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
# MD013 line-length - Line length
MD013:
line_length: 120
# MD033 no-inline-html - Inline HTML
MD033:
allowed_elements: [details]
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Projects implementing this framework:
Multi-strategy trading robot.
- [EA31337-strategies](https://github.com/EA31337/EA31337-strategies):
EA strategies.
- [EA31337-indicators-other](https://github.com/EA31337/EA31337-indicators-other):
3rd party indicators

## Conversion

Expand All @@ -65,6 +67,8 @@ This framework can be used to convert your MQL4 code to be compatible with both

Find below the table of conversion (replace code on left with the right one):

<details>

| MQL4 (original) | MQL4 & MQL5 (replace with) | Required include file |
|:---------------------|:---------------------------|:----------------------|
| `WindowRedraw()` | `Chart::WindowRedraw()` | `Chart.mqh` |
Expand Down Expand Up @@ -124,21 +128,27 @@ Find below the table of conversion (replace code on left with the right one):
| `OrderType()` | `OrderStatic::Type()` | `Order.struct.h` |
| `OrdersTotal()` | `TradeStatic::TotalActive()` | `Trade.mqh` |

</details>

Here are the special [predefined variables](https://docs.mql4.com/predefined) conversion:

<details>

| MQL4 (original) | MQL4 & MQL5 (replace with) | Required include file |
|:---------------------|:-----------------------------|:-----------------|
| `Ask` | `SymbolInfo::GetAsk()` | `SymbolInfo.mqh` |
| `Bars` | `Chart::iBars()` | `Chart.mqh` |
| `Bid` | `SymbolInfo::GetBid()` | `SymbolInfo.mqh` |
| `Close[]` | `Chart::iClose()` | `Chart.mqh` |
| `Digits` | `SymbolInfo::GetDigits()` | `SymbolInfo.mqh` |
| `High[]` | `Chart::iHigh()` | `Chart.mqh` |
| `Low[]` | `Chart::iLow()` | `Chart.mqh` |
| `Open[]` | `Chart::iOpen()` | `Chart.mqh` |
| `Point` | `SymbolInfo::GetPointSize()` | `SymbolInfo.mqh` |
| `Time[]` | `Chart::iTime()` | `Chart.mqh` |
| `Volume[]` | `Chart::iVolume()` | `Chart.mqh` |
|:---------------------|:-----------------------------|:--------------------|
| `Ask` | `SymbolInfo::GetAsk()` | `SymbolInfo.struct.static.h` |
| `Bars` | `ChartStatic::iBars()` | `Chart.struct.static.h` |
| `Bid` | `SymbolInfo::GetBid()` | `SymbolInfo.struct.static.h` |
| `Close[]` | `ChartStatic::iClose()` | `Chart.struct.static.h` |
| `Digits` | `SymbolInfo::GetDigits()` | `SymbolInfo.struct.static.h` |
| `High[]` | `ChartStatic::iHigh()` | `Chart.struct.static.h` |
| `Low[]` | `ChartStatic::iLow()` | `Chart.struct.static.h` |
| `Open[]` | `ChartStatic::iOpen()` | `Chart.struct.static.h` |
| `Point` | `SymbolInfo::GetPointSize()` | `SymbolInfo.struct.static.h` |
| `Time[]` | `ChartStatic::iTime()` | `Chart.struct.static.h` |
| `Volume[]` | `ChartStatic::iVolume()` | `Chart.struct.static.h` |

</details>

## Classes

Expand Down

0 comments on commit d659c9a

Please sign in to comment.