Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I have two EA's I want to add a filter too and modify.
I can do my best to explain the rules ...
CHART
first lets set up the chart...
5 minute bar chart candlestick
add one exponential moving average period 5 (on close)
add one exponential moving average period 1 (close)
RAW SIGNAL-this is what the 'whatever' EA and 'EMACROSS' EA is/are currently doing. I want to keep this on the TF of chart it's attached to.
if ema1>ema5 buy when CLOSE1 crosses above EAM5
if ema1<ema5 sell when CLOSE1 crosses below EMA5
This is the raw unfiltered signal. Now we will filter the signal to allow or disallow long or short trades.
FILTER-this is the function that needs to be added to the EA's
(The filter rule is not known what works best yet, the test will reveal what it is to be.)
The filter parameter we want to test and explore is as follows...
add AutoCh indicator on the 30 or 1 hour time frame. Make it able to change TF to something other than the chart the EA is attached to. The channel it shows on the 5m TF is too small.
Using the AutoCh indicator establish the support and resistance lines for the channel. Support line is below the current price point, (bottom line) Resistance line is above the current price point. (top line) Allow the tester to choose how many bars to calculate for the indicator to use.
DISALLOW SELL IF..
We want the filter to disallow sell signals (lets say we set the 'variable1' to 20 pips for starters) which are within 20 pips of the support line (bottom of AutoCh indicator) So anywhere within 20 pips above the lower channel line all we will allow to execute are buy long signals. We will filter out all the sell signals within this proximity to the lower AutoCh indicator line.
so..
if Sell signal occurs <= Support line of AutoCh +20 ....disallow sell trades.
DISALLOW BUY IF..
We want the filter to disallow buy signals which are (lets say we set this 'variable2' to 25 pips for starters) which are within 25 pips of the resistance line (top of the AutoCh indicator) So anywhere within 25 pips below the upper channel line all we will allow to execute are the sell short signals. We will filter out all the buy signals within this proximity to the upper AutoCh indicator line.
so..
if Buy signal occurs => Resistance line of AutoCh -25 ...disallow buy trades.
It would be best to have one 'variable1' for the disallow short and another independent 'variable2' for the disallow long. Trading isn't a perfect symmerty. Often what works for long positions doesn't work as well for short positions so that is why I want to have these independently variable rather than both the same.
The exit rules I like best are what is used in the 'whatever' EA. It uses a trailing stop trigger and a trailing stop. My tests show that this is a very good exit strategy. I would like to see this used on the EMACROSS EA.
If the EMACROSS used the same exit strategy that the 'whatever' ea uses it would be alot more profitable. I have seen it take profit when there was alot more movement to gain. Actually I think it has the potential to be the most profitable of the two EA's if it had both the filter upgrade and the exit strategy of the other program.
The 'whatever' EA needs to be able to enter multiple trades at the same time and tell it how many to allow at once.
where do you put the code in the EA and how do you hook it up so it works? I would really like to understand how to do this.
If you know how to do this...are you too busy to tutor me?
please help if you can
Aaragorn
Have You any programming skills?
Visual Basic, C++, Fortran.
If MQ4 is first prog. language, you would like to know better, it will be difficult to explain how it works…
I've never heard a faster way to lose your money....get a grip kid.............................you're all over the place, you been churning or something....
I have done some formulas in Excel spreadsheet and I've been reading the tutorials by coder's guru. Reading that has taught me a little about creating variables and expressions. What is tripping me up right now is the order execution lines which have all the stuff in them to place orders.
Also looking at the indicator code I see that it draws objects which are the lines. But how do you get the EA to use this information for logic purposes instead of to just draw the lines on the chart? I don't see how to hook up the variables or understand which ones are the ones that the EA needs to use from the indicator to use for it's logic to disallow orders. I just am still overwhelmed by some of the lines with so much going on in them. I am trying to see where the variables are created and what they are so I know which ones to use.
The other thing is the placement in the code of where to put the new indicator? should it be called at the first as an included code or something or pasted in some certain part of the code? Where is the right place to put a new indicator in?
I've never heard a faster way to lose your money....get a grip kid.............................you're all over the place, you been churning or something....
yes I have been churning mostly because I have not been able to do programming myself to test my ideas and refine them. I am well aware of your opinions about automated trading. I would like to pursue my strategy developments as the results direct without further mockery or insults from you if you can manage that. I have not returned to the thread you are on because you said that I don't deserve to have an opinion there. I would like to deserve to have my own say on my own thread and would ask the same consideration from you here that I give you there.
I still have an interest in the system that is working well for you, I know you say it can't be automated or shouldn't be and you have your passion about that. My goal at present is still to develop an automated system. Among other things I want to learn to code. I am open to trading manually too but it is not my primary focus right now. I havn't made to the paltalk room yet but I havn't forgotten about it. I just have my own priority. I am interested to learn trading. I am open to more than one system, I'm just not finished with this yet just because you are and see no value in it. At very least I can learn something from practicing and learning to code from the effort even if the system itself doesn't become a stellar producer. The merits of the pursuit fit my current priorities for what I want to learn.
I also tried to download the elliot wave from emule to look more at the system you use but the download failed despite being left for a full day to do it. I was told it could take a while but after a full day of waiting for the download to execute I gave up on it. In the mean time I'm learning what I can about coding and trading. If this proves worthless I'll flush it. I believe however that nothing will defeat us like an attitude of contempt prior to investigation. I will therefore investigate before having contempt for anything.
churning yes, all over the place? hardly! I am quite focused on what I am doing.