Forum

The ea doesnt run, stay freeze.

Hi everyone, i am trying to run a EA conditioning to open just one trade per trading criteria. trading criteria: 1. If the Moving Average of 20 crossover to upside the 50 Moving Average, excute a OP_BUY, if there is an OP_SELL at that moment, close it. 2. If the Moving Average of 20 crossover to

Problem with multiples trades opened.

Hi fellows, I am trying to create a simple expert advisor with a moving average crossover criteria. Open a ticket when they(MAs) cross, and close the ticket when they cross again. the problem consist, when Im trying to specified only one trade (ticket) opened, and dont open more ticket until this is

Problems with my moving average crossover EA.

Hi, I am preparing my first "simple" strategy, but for me it wasn´t that simple... I created this code: //Global Variables extern int slow = 9, fast = 3; // for subsequent optimization process ** extern int z= 150, w = 150; int start() {