Forum

EMA Cross EA

Hello, I got this trading strategy from a friend who trades equities. Looks like I am getting good results so far. The strategy is pretty simple: Components: 4EMA, 10EMA, 50SMA BUY: 4EMA crosses up 10EMA and both are above 50SMA - StopLoss=Lowest point in last 5 bars - TrailStop=20 - TakeProfit=60

Anyone has the mq4 for this indicator

Hello, I have been looking in the codebase and over the internet but dont seem to find the mq4 version of this indicator that detects support and resistance. I am attaching the ex4 that I found and a pic of indi on a chart. I would like to build an EA around this indi but I have no idea how to get

Whats wrong with this

Hi, I am trying to put together a simple EA to give me the price in relation to the EMAs on multiple timeframes. I dont seem to get the color right. it is always coming out as clrBlack //// Start function double ema5m1, ema5m5, ema5m15, ema5m30, ema8m1, ema8m5, ema8m15, ema8m30;

Need help with arrays

Hi, I am working on a basket trading EA. So far I have written most of the code and I came to the basket BUY and SELL Buttons function. What I have so far is several arrays to build the buttons and feed the several formulas with the needed values. I now have the following: string sym[]={"EURUSD"

merging two arrays into one 2 dimentional

Hi, I am working on a basket trading EA. So far I have written most of the code and I came to the basket BUY and SELL Buttons linked functions. What I have so far is several arrays to build the buttons and feed the several formulas with the needed values. I now have the following to complete

void OnChartEvent

Hi, I am working building an EA where it will create 4 buttons for each pair (7 pairs in total), BUY PAIR, SELL PAIR, BUY ALL, SELL ALL. Everything is working fine and the screen design is complete. I got to assigning functions to the buttons and Ive written the below code. All is working well but

ObjectSet...

Hi all, I am a newbie trying to build my EA working around with Labels and Text messages to create a dashboard. It takes a lot of lines to create a text with a rectangle background. I was wondering if there is a function for positioning the Label, similar to ObjectSetText where you can input the

Indicator Readings

Hi, I am trying to get the highest and lowest readings of an indicator for a specific number of past bars, to be more specific, the highest and lowest reading of ATR over the past 30 days on the M30 timeframe. Can someone help me figure that one out. Thanks