
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, I'm new and I have been wondering, is there a system where there is automated trading? For example, is there a way for Metatrader to make automatatic trades when 2 Moving averages cross??? I was wondering because I'm not home for every cross, and I was wondering if anyone can help me out. I want to stick with my system but I never catch it on time when the moving averages cross.Thanks ALOT
Search for the Universal MA Cross in this forum.
Help for simple EA
Hi! I'm a newby of EA costruction. Someone can help me to write a simple EA:
- buy when osc is buy
- sell when osc is sell
I have some problem when osc can give 2 values.....

I want to learn this powerfull language
This is the osc:
////+------------------------------------------------------------------+
| SilverTrend_Signal.mq4
//| Ramdass - Conversion only
//+------------------------------------------------------------------+
#property copyright "SilverTrend rewritten by CrazyChart"
//#property link "http://viac.ru/"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 CornflowerBlue
#property indicator_color2 Crimson
//---- input parameters
extern int RISK=3;
extern int CountBars=350;
extern int NumberofAlerts=2;
extern bool ShowAlerts=False;
int SSP=9;
int counter=0;
//---- buffers
double val1[];
double val2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
string short_name;
//---- indicator line
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(0,val1);
SetIndexBuffer(1,val2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| SilverTrend_Signal |
//+------------------------------------------------------------------+
int start()
{
if (CountBars>=Bars) CountBars=Bars;
SetIndexDrawBegin(0,Bars-CountBars+SSP);
SetIndexDrawBegin(1,Bars-CountBars+SSP);
int i,shift,counted_bars=IndicatorCounted();
int i1,i2,K;
double Range,AvgRange,smin,smax,SsMax,SsMin,price;
bool uptrend,old;
//----
if(Bars<=SSP+1) return(0);
//---- initial zero
if(counted_bars<SSP+1)
{
for(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;
for(i=1;i<=SSP;i++) val2[CountBars-i]=0.0;
}
//----
K=33-RISK;
for (shift = CountBars-SSP; shift>=0; shift--)
{
Range=0;
AvgRange=0;
for (i1=shift; i1<=shift+SSP; i1++)
{
AvgRange=AvgRange+MathAbs(High-Low);
}
Range=AvgRange/(SSP+1);
SsMax=High[shift]; SsMin=Low[shift];
for (i2=shift;i2<=shift+SSP-1;i2++)
{
price=High;
if(SsMax<price) SsMax=price;
price=Low;
if(SsMin>=price) SsMin=price;
}
smin = SsMin+(SsMax-SsMin)*K/100;
smax = SsMax-(SsMax-SsMin)*K/100;
val1[shift]=0;
val2[shift]=0;
if (Close[shift]<smin)
{
uptrend = false;
}
if (Close[shift]>smax)
{
uptrend = true;
}
if (uptrend!=old && uptrend==true)
{
val1[shift]=Low[shift]-Range*0.5;
counter=0;
if (shift==0 && counter<=NumberofAlerts)
{
if (ShowAlerts==True) Alert("Silver Trend ",Period()," ",Symbol()," BUY");
counter=counter+1;
}
}
if (uptrend!=old && uptrend==false)
{
counter=0;
val2[shift]=High[shift]+Range*0.5;
if (shift==0 && counter<=NumberofAlerts)
{
if (ShowAlerts==True) Alert("Silver Trend ",Period()," ",Symbol()," SELL");
counter=counter+1;
}
}
Comment(shift);
old=uptrend;
}
return(0);
}
//+------------------------------------------------------------------+
Thanks for help
only using SMA 21
Dear All
i always to try find the simplest system to play FOREX. i believe Holy Grail is our MONEYMANAGEMENT and DISCIPLINE.. so i found an idea, and i think it will be good with improvement and advise for all of you
okay here we go
1st. open GBPUSD 1H
2nd put SMA 21 on the chart
so the rule is... Buy when new candle open above 21 SMA
Sell when new candle open below 21 SMA
how about ranging market...? i suggest not using stop lost but we can have good idea from martiangle system... offcourse with good moneymanagement
example.. when we got BUY signal we entry with BUY 0,1 lot, but soon in next 3 candle it open below SMA 21, so we give SELL 0,15 lot.. and when it back again we can put BUY 0,2 lot...
in my observation, the maximum price ranging at sma 21 is 5 times
so we got 0,15 sell and 0,3 buy... we can put our target as $$$.. so if the target is reached, we close all, and start again
OR.. we can use higher time frame 4H
so come on guys, i think it will be great.... especially when we have EA for this system..
thx
grid strategy
look this:
This kind of code
Is it possible to make this kind of script what would open automaticly positions when ea did it. EA opened sell u/j and script would open then sell u/c and buy g/u and e/u???
Inside Day Bollinger Band Turn Trade
an interesting article, maybe a EA could backtest this theory. i'm off to bed now but i'll have a look tomorrow.
http://www.investopedia.com/articles/forex/06/BBInsideDay.asp
To all successful traders
I wanted to know how the full time traders trade.
whatever system you are using if it is a manual one how long do you have to sit front of your computer or do you use alerts or what else. Please advise.
I find it hard to follow any system if it is a manual because most of the signals are generated when i am away. How to cope with this ?
thanks in advance
GBPUSD-EA-Help Please
Can someone please create an expert adviser based on the following indicater?
Buy or sell when the price crosses the blue line + 1point and spread on a daily chart. for example if it crosses to the up side at 1.9780 enter at 1.9785.
Take profit 40
Stop Loss 100
Would also like an alert of the price crossing the blue line. Thank you for your help.
-bubba
High Low strategy
Hello,
I'm trying to develop an EA to do some testing to see if it is profitable or not.
The basic idea is this:
Once a daily low is made enter a long trade x pips above the daily low
Once a daily high is made enter a short trade x pips below the daily high
The idea is to make use of the daily range and trends, and that once a currency pair has travelled x pips from the high or low, it has enough momentum to keep going.
I would like to develop this EA to find out: a) whether this strategy is profitable and b) what levels x should be set to on different currency pairs
I have tried to create one, but it does not work (see attached files)
Could someone please help to fix the EA I have created OR help to create a brand new one ?
Much appreciated.
Anthony
Grid System!
hi guys,
did you check http://www.fxmoneymap.co.uk , the sell the system near 4000$ , does any one use it? can we do something similar on MT4?