Please help and advice about the static variables behavior.
The problem, let x be such static counter as shown below.
Suppose that, x=5 at the previous ticks.
At the current tick; assume that, the "condition" is met...
Kindly help me configuring the following issues:
It return the account leverage as per MQL docs; but, I've notice that, brokers would offer (say 1:200) for currencies while (say 1...
My EA is set to EachTick, but my objects does not update values/location when orders gets opend or closed.
my code structure as following:
According to the account types:
Lot per ticket is restricted to 100 lots max. for Micro account, and 50 lots max. for the standard one.
Now, suppose that I need to send order having 330 lots with Micro account upon triggered signal.
Kindly explain to me what are the main differences between the variables declared in the global scope of the program and GlobalVariable...()?
Another question is jumping in my mind as per the following case ...
I understood that,...
I've a major problem with My EA as detailed below; please help and advice with partially written CODE as possible.
My EA is instructed to start by certain neutral conditions, till only one of the GoLG (buy) or GoSH (sell)...
My EA is instructed to open buy/sell order at specified level under certain conditions
But due to fluctuation and/or freezing movement about the same level, my EA executes additional orders repeatedly.
How to adjust my EA to open only one...
My MQL skills is too limited so please help and advice.
My EA uses EachTick as a signal mode.
There're always Three predefined zones as following:
double Level_CC = Close; // The current price
My custom ExtMapBuffer is fluctuating between -ve and +ve regions,
For each region, I need to get its MAX/MIN strokes - for the visible bars - in order to be used as EXIT for SELL/BUY positions.
I'm dealing with integers and I want to get the result of my calculation as simple double value,
below my simple code which using int i, xH and xH to get my double Buffer,
When I test it, suppose that at certain location (i-xL)=26 and...
Kindly help me creating two buffers TimeH and TimeH for each Period() as following:
Taking into consideration that,
DeltaT=Time[i+1] - Time[i]=Time[i+1] + Period()*60;
where x the main parameter (in seconds) within the period starting...
I've found what they call it BSP indicator, but I didn't found it in MQ4 format till now.
Kindly help me to implement that concept for MT4.
The associated mathematical formula for BSP is as following:
Buy Pressure = Buy...
Can you help me find out the general formula for calculating the overall initial margin requirements for a set of long and short positions at the same time?
The same symbol is used, say EUR/USD.