Forum

How to calculate pips distance from volume and profit.

Dear, I want to create a function to return pips value base on my volume and profit in currency. I already create a function but not working. int PointFromAmount( double LotSize2, double RecoveryLoss) { double UnitCost = MarketInfo ( Symbol (), MODE_TICKVALUE ); double TickSize = MarketInfo

Use NormalizeDouble without round the number

Dear, I wrote the code below. int LOT_PRECISION= 2 ; sLots = 0.02 ; Multi = 1.83 ; double mLot = NormalizeDouble (sLots * Multi,LOT_PRECISION); So actually calculation is 0.02*1.83=0.0366 and i want only 2 digit without round the number like = 0.03 just leave "66" but above coding mLots show 0.04

How i create Blank Input

I am developing a EA. I am new in MQL, i just want to organism my EA's input. Like below image. How i create a blank input and how i create input with space . Please some one help me coding example how can i create blank input

List of Open Order in Hedge Account MT5

Dear, I wrote a function for get total profit to open by EA. but my function not work. I notice OrdersTotal() only send pending order only, but how i get open order only. Please someone help me to correct below coding. int Profit() { double total_profit= 0 ; ulong ticket; for (i=

MQL function day of First Friday every month?

Dear Guys, is any MQL function , how i know what is the date of the first friday every months. Example : in February 2016 first Friday of the month, date is : 05-Feb-2016 how i know by MQL function or coding. Please help me Thanks

Need help on OrderSelect()

Dear, I am little bit confuse with OrderSelect(). I wrote below functions Alert ( OrderSelect ( 15958423 , SELECT_BY_TICKET, MODE_HISTORY) + " " + OrderSelect ( 15958612 , SELECT_BY_TICKET, MODE_TRADES)); open trade open then MODE_HISTORY show true and MODE_TRADES also show true. as i know history

How do i change a Pair property for backtest in MT5

Dear Guys, I am using MT5 Metaqoute demo server. EURUSD property is below : EURUSD stoplevel show 18 points . when i backtest my EA also EURUSD stoplevel count as 18 points. is there any way i want backtest my EA with stoplevel 0 points or any others EA property like spreads, contract size for

How i get MA value with Previous Indicator's Data in MQL

Dear guys How i get MA value with Previous Indicator's Data in MQL. double MA_Value= iMA ( NULL , 0 , 14 , 0 , MODE_SMA , PRICE_CLOSE , 0 ); EMUM_PRICE_APPLY only show price not show Previous Indicator Data. Like below. but i want to do it in MQL coding

Why Most of forex broker not allow US client.

i have a question in mind. I notice many broker not allow US client. I don't know why. Is there any legal issue for US people to trade in forex

MQL function for get value of property version

Dear, Is there any function of MQL i get value of property's version. #property version "1.00" How i get this value of version from MQL code. Thanks in Advanced