Forum

Convert Expert Advisor to Script

Hello, I want to attach my Expert Advisor to 7 Minute chart(offline chart updated every tick ), but EA won't work on that chart. I have heard that Script does not has that restriction, but unfortunately is executed only ones. My question is how to convert EA( for example Moving Average Expert

How to close orders in a certain order?

Hi, Can you help solve this issue: Suppose that exist a signal to close ALL open market orders in terminal. EA must close all orders in following order: first close order with biggest LOSS, last order with biggest PROFIT? Thank you

EA Template Explaned?!

I don't understand how this template example(Osc_test) controls how many orders to opens and where close order functions( formula) should be placed ?! https://www.mql5.com/en/articles/1514 Can you explain please?! 1. I want to open one market order at beginning of a bar, if there is a signal( BUY or

Expert Advisor Moving Average by Metaquotes Change?

Hello, this is question for changing of way Moving Average EA of Metaquotes closing current position and open new one. Now this EA closing current position and open new one, but at different bars. ........ if(OrderType()==OP_SELL) { if(Open[1]<ma && Close[1]>ma) ........... //---- buy conditions