Forum

Trailing stop that gets smaller as profit increases

I have just written a trailing stop function that starts at a hypothetical 20 pips and progressively decreases down to another hypothetical 5 pips as a trade becomes more and more profitable. It seems to be working but it's really messy and I would love some feedback. Thanks

Master EA trying to prioritize and rotate 28 Slave EA's

I have had no luck with MUTEX so I thought this might work. I wrote a ''Master" ea that cycles through my 10 preferred symbols three times each before moving on to the 18 lesser symbols. The code writes to a global variable every half a second, each time representing the next symbol in the

Last 15 minutes tick history barely working. I'd like some help tightening it up please.

#property strict //USER STUFF #define minutesToLookBack 15 int minBuySpikeSize= 50 , minSellSpikeSize= 50 ; //SYSTEM STUFF double bidsArray[]; int pulsesArray[]; datetime timesArray[]; int spikesArray[ 15 ]; int ticksArrived= 0 , ticksInArray= 0 , timeBetween, lookBackSeconds

Last 15 minutes of TICK data maintained in array - How can I do it?

The main problem I have is figuring out how many ticks there are before resizing the array. int duration=900; //15 minutes Do { for (int i=arraySize-1; i>1; i--) { array[i]=array[i-1]; } } while(currentTickTime < firstTickTime + duration ) I am just stumped

Circuit Breaker EA Code?

I want to be prepared for when the SH*T hits the FOREX fan. I have been running a bunch of EA's for a few months now. They have been behaving beautifully but they are only prepared for normal, stable market conditions. Thet are opening and closing trades all the time but at any given moment I

MT4 Mulitiple Ea's - need Maximum Trades per terminal/account

Hey all I want to run separate EA's on 28 currencies. Being that my broker is OANDA I am using their MT4 version build 950. I have my strategies working using an awesome EA called "Traders Gift" by David Currey. My problem is that I want to limit my trading to one open position at a time. Not one