I went through the entire database of ready-made experts. I’m not a programmer and I can’t write. There are a lot of time – based closing advisors, but there are no such ones that close “after the time interval set in the settings”. Surprised, but no. Help. You need an expert who can pick up any transaction that appears and close it after a certain period of time specified in the settings (you can only use minutes, you can also use seconds). Thank you in advance!! Maybe someone has a ready-made one? “I’d appreciate it.” Needed for MT4.
we really need an expert advisor that closes trades after a time interval in minutes. please help me.
Share
ya_programmer
you need to analyze the opening time of the transaction and its profit
victor_elizarov
it is now necessary that after some time, the Expert Advisor can either close the trade (if the loss at the end of the time interval is small or there is a profit), or not close the trade (if the loss at the end of the time interval is already large)
vladon
damn first wrote, then looked at the date.
extern int minutetoclose=0; / / after how many minutes to delete trades
extern bool positionsclose=true; / / Close positions
extern bool ordersdelete=true; / / Delete orders
extern string indiv1="Tracking settings";
extern string MagiccOrder="the MAGIC number of the ORDERS -1=All orders";
extern int MagikToClose=-1;
extern string symbolorder=" Order symbol -1=All orders are empty=current symbol or currency pair name";
extern string SymbolToClose="-1";
Well then let it be
sandex
in addition, they come from a non-programmer
thejobber
As-times several days ago for friend such wrote… closes at a certain time and reopens after a certain number of minutes… it will not take much time to redo it for what you need), I am waiting for your suggestions…
I can even give you a trial )