hello every one. I am newbie in mql4. i
I have written a code. But it doesnt work properly in strategy tester.
I want to set a sell stop at a certain time and after thar delete the pending order. my code is :
extern double lot_1=0.4;
extern int fasel_pending_1=100;
extern int slipage=10;
extern int hour_be_soorat_24=13;
extern int minute=30;
if (Hour()==hour_be_soorat_24 && Minute()== minute && OrdersTotal()==0 )
would you please help me
Please use the SRC button when posting code. I have done it for you this time.
What is your code doing?
What do you expect it to do?
Where in your code is the 2nd block?
Why are you calculating the distance from Ask for a SellStop?
You appear to be opening a SellStop order and then immediately closing it - why?