Forum

Quantitative research in MT4

Hello guys, I was wondering if there is a way to get data with an indicator or an EA that will count how many bars on average was the price not touching the Moving average . I tried searching the forum and other sources but I don't know what exactly should I search for. Thanks in advanse

Orders are not deleting?

Hey guys, I have a problem with deleting all the pending orders when there are opened orders in the order pool. I am checking if there are any opened orders with this function int CheckActive() { int Active = 0 ; for ( int z = OrdersTotal ()- 1 ; z > 0 ; z--) { OrderSelect

How to check if bar starts at round hour?

Hey guys, does anyone have an idea how I can check if a bar is starting at a round hour? Thanks in advance

Move Stop To Break Even When Get to a Pivot Level

So I want to move my stop to break even when my trade hits the pivot line However it seems doesn't work. Any suggestions ? Thanks in advance. extern int magic = 20051016 ; //magic number int start() { //+------------------------------------------------------------------+ //| getting the

Placing several trades a day

Hey guys, I was wondering if someone can help me with a the coding here. I want to place Max orders. I am going to place 4 pending orders a day and after those trades are placed I want the next 4 orders to be placed the next day. I tought of counting the trades by selecting the trades if they had

News Trading EA with OCO Orders

Hello guys, I am new to MQL programming and I was just wondering if there is a way to make an EA that places two trades (buy stop and sell stop ) two minutes before news announcements and it must close them 2 minutes after the news comes out. The orders must cancel each other (one cancels the