Forum

Why it works on EURJPY but not on EURGBP?

Here is code that works on EURJPY but does not generate a signal when applied to other symbols such as EURGBP. Help as to why

MT5 EA's avs Samples

Hello, I just started using MT5 and tried to use the EA's. In the Navigator there is the Expert Advisor folder with2 sub folders. One is labeled Advisors the other Examples. When I apply the EA from the folder Advisors it does not work. When I apply one from the folder Exmples it does. Why

Problem with new EA

Hello, I have a new EA. If the BID is above a 200 period moving average and the %B indicator is below 50% 1 period ago then buy at market. The following code does compile but in MT4 under the Journal tab it says "divide by zero" --- which I interpret as an attempt to divide by zero -- but nowhere do

Will not exit on next bar after position taken

I am trying to write an EA that: Buys on the open when the last bar is an Outside bar and the low of 2 bars ago was the lowest low of the previous 8 bars. exit when on the next bars open. Sells on the open when the last bar is an Outside bar and the high of 2 bars ago was the highest high of the

I am getting order close error 4051

I am getting order close error 4051 invalid ticket for order close function. Below is the code that I am using --- can anyone please provide a solution? Thx #include <stdlib.mqh> // External Variables extern double LotSize = 0.01; extern double StopLoss = 500; extern double TakeProfit = 1000; extern