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

MiniVirtualAccount - MetaTrader 4용 라이브러리

조회수:
8624
평가:
(18)
게시됨:
2008.12.24 07:49
업데이트됨:
2016.11.22 07:32
\MQL4\Include\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Author:

Russell

At times one wants to see how an EA is performing without the clutter from other EA's you're running. MiniVirtualAccount (MVA) monitors data in your EA. Like EA Balance, EA equity, EA profit, etc.

Full List:

MVA_BALANCE
MVA_PROFIT
MVA_MARGIN
MVA_FREEMARGIN
MVA_EQUITY
MVA_TOTAL_SELL
MVA_TOTAL_BUY
MVA_LOT_PROFIT


Example code:


#include <MVA_v1.0.3.mqh>


extern string General = "---------------";
extern int    Slippage = 2;
extern int    MagicNumber = 74783;
//etc

int giSlippage, giMagicNumber; 


int init(){
      
   giSlippage     = Slippage;
   giMagicNumber  = MagicNumber;    
   //etc

   MVA_init(giMagicNumber);
 
   return(0);
}

int deinit(){
   return(0);
}

int start(){
   
   //manage trades SL + TP   
   
   MVA_main(0, giMagicNumber, PUT); 
   
   if (start_filter() == FALSE){
      showComments();
      return(0);
   }

   
   double ldFreeMargin = MVA_main(MVA_FREEMARGIN, giMagicNumber);
   double ldEquity = MVA_main(MVA_EQUITY, giMagicNumber);
   double ldLots = lotSize(ldFreeMargin, ldEquity, giMagicNumber);
   if (ldLots == 0){
      showComments();
      return(0);
   }
    
   // other code to open

   showComments();
   return(0);
}

void showComments(){
   
   if (IsOptimization() == FALSE){
      Comments(StringConcatenate(
      "Balance : ",    MVA_main(MVA_BALANCE,     giMagicNumber),
      "\nEquity : ",     MVA_main(MVA_EQUITY,      giMagicNumber),
      "\nMargin : ",     MVA_main(MVA_MARGIN,      giMagicNumber),
      "\nFreeMargin : ", MVA_main(MVA_FREEMARGIN,  giMagicNumber)));      
   }
}

Waddah Attar Weekly Fibo Waddah Attar Weekly Fibo

Another Fibo indicator.

Backbone Backbone

The EA is based on the permanent variation of the direction of the trades depending on the TakeProfit, StopLoss and TrailingStop levels. It demonstrates how to create a profitable trading system without any indicators, mathematical models and other wisdom

MultiNeyro MultiNeyro

The algorithm of tuning (optimization) by two ranges with the two-level three-stage optimization is used in the EA.

Ryan_Jones_SM Ryan_Jones_SM

It shows where to buy and where to sell via the arrows. If a trend occurs then it will bring profit, if there is no trend, there will be no profit.