und werden Sie Mitglied unserer Fangruppe
Veröffentliche einen Link auf das Skript, damit die anderen ihn auch nutzen können
Bewerten Sie es im Terminal MetaTrader 5
![Expert Advisors](https://c.mql5.com/i/code/expert.png)
1 Click To Close All Open Positions at Current Attached Chart - Experte für den MetaTrader 4
- Ansichten:
- 19680
- Rating:
- Veröffentlicht:
- 2016.02.22 16:08
- Aktualisiert:
- 2016.03.24 16:12
-
Benötigen Sie einen Roboter oder Indikator, der auf diesem Code basiert? Bestellen Sie ihn im Freelance-Bereich Zum Freelance
Click "Close All" button to close all your open positions at current attached chart.
Select CloseOnlyManualTrades = true to close only manual trades.
Select CloseOnlyManualTrades = false to close manual trades and/or other trades opened by an Expert Advisor.
This new version doesn't contain the code written below that previous versions had which may cause an infinite loop .
if(checkOrderClose==false) continue;
but instead brings an error control system to prevent an infinite loop while still closing all trades.
if(checkOrderClose == false) { int errorCode = GetLastError(); if (errorCode == 1 || errorCode == 2 || errorCode == 5 || errorCode == 6 || errorCode == 64 || errorCode == 65 || errorCode == 132 || errorCode == 133 || errorCode == 139) break; else continue; }
![Simple Multiple Timeframe Moving Average](https://c.mql5.com/i/code/expert.png)
Multiple Timeframe Moving Average. It is set to look at H4 and H1 time frames. This code is for anyone who wants to use a different timeframe than on the current window.
![Predictor Marks for Renko, Mean Renko and Range Bars](https://c.mql5.com/i/code/indicator.png)
The indicator places two price marks for the expected candle close, based on the candle range and the chart type.
![3ColorMACD](https://c.mql5.com/i/code/indicator.png)
Standard MACD diagram with bullish and bearish bars colored differently.
![Kaufman's AMA from wellx](https://c.mql5.com/i/code/indicator.png)
Non-optimized version of Kaufman's adaptive moving average.