거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

1 Click To Close All Open Positions at Current Attached Chart - MetaTrader 4용 expert

조회수:
19093
평가:
(30)
게시됨:
2016.02.22 16:08
업데이트됨:
2016.03.24 16:12
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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 Simple Multiple Timeframe Moving Average

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 Predictor Marks for Renko, Mean Renko and Range Bars

The indicator places two price marks for the expected candle close, based on the candle range and the chart type.

3ColorMACD 3ColorMACD

Standard MACD diagram with bullish and bearish bars colored differently.

Kaufman's AMA from wellx Kaufman's AMA from wellx

Non-optimized version of Kaufman's adaptive moving average.