Forum

help! i am unable to backtest with AUDUSD?

When i try to backtest choosing AUDUSD currency, the AUDUSD chart just shows waiting for update. The journal entry shows no history file found for AUDUSD. Can anyone please guide me how to do backtest with AUDUSD

bactesting time duration

Hello, I have noticed that when i select the time period for backtesting , the actual backtesting runs till the end of April. Why can't i see the results of backtesting for the month of May to August of the current year? Regards, sentinelx

using _Point?

Hello, I am coding a condition for buy like this:- bool Buy_Condition1 = (p_close > hand1[1]) && (p_close - hand1[1] > 20*_Point) But upon backtesting, position gets opened with (p_close > hand1[1]) even if the second condition has not been true yet. I want there to be a distance of atleast 20pips

applying trailing stop

Hello all, I have finally created my first working EA in mql5. Now i want to code for trailing stop in it. I know how to code for it in mql4 but mql5 is a completely different game according to the article https://www.mql5.com/en/articles/134 , "How to create your own trailing stop". From what i

help with trade condition

Hello all, I want to set a condition of opening a buy order which will be : open a 'buy' order only if the previous order was also 'buy'. Can anyone assist me in setting this condition? Thanks in advance

indicator handle?

Hello all, My question may be a very simple one but i just want to clear my mind about it. What exactly is an indicator handle. My best guess is that it is a variable which stores the value of an indicator. Am i right? Thanks in advance

question about order opening price

Hello traders, I want to make my EA open a position only at the hour bar close price , after the condition has been met. Not immediately the next tick after the condition is met. I have tried using iClose(EURUSD, PERIOD_H1, 0) in place of Bid and Ask in OrderSend but it still opens the position in

help with using the time function

Hello traders, I am using a simple EA with RSI and MA crossover as two indicators. But i want the EA to check for RSI condition only during certain hours of the day, no the whole day. Only MA crossover should be checked the whole day. If anyone could help me with it, it would be really helpful to

need help with using the sleep function

Hello coders, I need some advice on how to create a 60min gap between my trades only if the last trade ended with my stop loss being activated. I tried two things, here is the first one................ for (int j=0; j<OrdersTotal(); j++) {if (OrderSelect(i,SELECT_BY_POS,MODE_TIME)==true) {if