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:
//| Ramdass - Conversion only
#property copyright "SilverTrend rewritten by CrazyChart"
//#property link "http://viac.ru/"
#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;
//| Custom indicator initialization function |
//---- indicator line
//| SilverTrend_Signal |
if (CountBars>=Bars) CountBars=Bars;
//---- initial zero
for (shift = CountBars-SSP; shift>=0; shift--)
for (i1=shift; i1<=shift+SSP; i1++)
smin = SsMin+(SsMax-SsMin)*K/100;
smax = SsMax-(SsMax-SsMin)*K/100;
uptrend = false;
uptrend = true;
if (uptrend!=old && uptrend==true)
if (shift==0 && counter<=NumberofAlerts)
if (ShowAlerts==True) Alert("Silver Trend ",Period()," ",Symbol()," BUY");
if (uptrend!=old && uptrend==false)
if (ShowAlerts==True) Alert("Silver Trend ",Period()," ",Symbol()," SELL");
Thanks for help
only using SMA 21
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..
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.
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
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.
High Low strategy
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 ?
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?
Please enable the necessary setting in your browser, otherwise you will not be able to log in.