Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

1 Click Button To Close All Open Positions - MetaTrader 4 için Uzman Danışman

Görüntülemeler:
68900
Derecelendirme:
(37)
Yayınlandı:
2016.02.16 15:45
Güncellendi:
2016.03.24 16:15
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Click "Close All" button to close all your open positions (regardless of the pair) at once.


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;        
         }   

Example of RSI Automated Example of RSI Automated

This is my 1st published code, it is very simple code example: RSI 14 (price close) — open buy when it is < 25, close buy when it is > 50, open sell when it is > 75, close sell when it is < 50.

FloatingSpread FloatingSpread

The indicator for the floating spread. Displays the change in spread of multiple currency pairs.

Not Only Spread Not Only Spread

Spread, its moving average (EMA), its maximum and minimum, and ticks per second (market speed) in the Comment. The version 1.01 is made with the normal average, instead of the moving average.

Example of Stochastic Automated Example of Stochastic Automated

The main idea of this Expert Advisor is to trade by the basic concept of Stochastic oscillator in its basic parameters, with ability to change these parameters via the EA inputs.