Forum

Indicator Load multiple times

Hello guys, I have an issue with calling an indicator in my EA. It is loading multiple times as. I call this EA in a function as below: void OnInit () { double BV( int buff, int shift){ return ( iCustom ( _Symbol , 0 , "BetterVolume 1.4" ,NumberOfBars,MAPeriod,LookBack,buff,shift));} ) /// /// ///

PipSize

Hello! I have one doubt about computing PipSize I have This: double Pip() { // double pip = 0 ; int dig =( int )MarketInfo( _Symbol ,MODE_DIGITS); switch (dig) { case 2 : point= 0.1 ; break ; case 3 : point= 0.01 ; break ;

Pending Orders Entry Price

Hello! I have one question … lets say that I set pending order open price at 0.1234… and the price… from 0.1230 jumps to 0.1238… let’s say during High Volatility times like news or rollover or something. At what price will the pending order turn into a market order

Position Size

double LotSize( int SL, double mRisk, double MaxLot) { double lotSize; SL=SL* 10 ; double lotstep=MarketInfo( _Symbol ,MODE_LOTSTEP); double lotdigit=MarketInfo( _Symbol ,MODE_DIGITS); double tickvalue=MarketInfo( _Symbol ,MODE_TICKVALUE); double risk = mRisk * AccountBalance()/ 100 ;

Include files in EA

Hi! I have recently found out that indicators can be loaded in EA as a resource. I was wondering if include .mqh files can be loaded in the same manner

Strategy Tester

Hi! One question: I am testing this EA with strategy tester , I test using open prices, and on 1Hr I get positive results. Then I test again on 4Hr and I get negative results. And I change again to 1Hr and I get negative results. I am using always same dates for testing, same currency, all I am

Add on winning trade

Hello! So I have made this EA which is very simple, once a condition is met it will open a trade. And it will keep adding another 4 trades if conditions are met. All ticket numbers are stored in global area int Ticket1= 0 ,Tikcet2= 0 ,Ticket3= 0 ...Ticketx= 0 ; if (condition1) { Ticket1 =

Margin

Hello! I have one question: If I calculate margin like this: double lot=0; for(int i =OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS)) { lot+= OrderLots(); } } int leverage= (int)AccountInfoInteger(ACCOUNT_LEVERAGE); double marginterminal=AccountInfoDouble(ACCOUNT_MARGIN); double

Metaeditor mql5 not opening Help Topics

Kindly advise why Help Topics wont open on metaeditor 4/5 . Thanks

Renko

Hello guys! So I have this renko indicator and the thing is , that is printing renko bars after 1 minute candle is closed ( on chart from where is taking signal from). So, for example, if I set 50 points renko bars, I would expect that a renko bar is printed when the price traveled 50 points. But