If you have time could you put this EA together, it would be appreciated.
Using this !LinRegrBuf indicator.
Only works off of one time frame, the time frame I choose .
There are 3 trend lines in the !LinRegrBuf indicator.
1. Top trend line
2. Center Middle trend line
3. Bottom trend line
(Placing open BUY trades) When the Ask price or Bid price touches or crosses through the Bottom trend line only, it will place a open BUY trade. When the trend lines are pointing in a upward direction or when the trend lines are pointing in a downward direction. (It does not matter if trend lines pointing upward or downward direction it will place BUY trades Bottom trend line only).
(Placing open SELL trades) When the Ask price or Bid price touches or crosses through the Top trend line only, it will place a open SELL trade. When the trend lines are pointing in a upward direction or when the trend lines are pointing in a downward direction. (It does not matter if trend lines pointing upward or downward direction it will place SELL trades Top trend line only).
Would like to also add.
Oppositeclose = true or false
Reverse = true or false the signals, long if short, short if long
Martingale = true or false
Lotsexponent = 2.0
PipStep = 20
StopLoss = 500
TakeProfit = 20
MaxLot = 10
MaxTrades = 100
Slippage = 3
TimeStart = "00:00"
TimeStop = "00:00"
Magic = ????
Linear Regression EA
The EA is attached. Hope Funyoo does not mind me posting an EA without his permission.
Modelling quality sucks, but seems to work same way on live account. I always test live.
EURUSD M5. April 14, 2009 to December 16, 2009. This is all the data that I could get from my broker.
Total net profit : ---- %
RDD : ---- %
NOTE: To be Downloaded with Funyoo's permission: (only in the Elite section)
I opened a demo account with Alpari UK to get over that very problem. Clever folks, since now all my bots are getting optimized to a broker I'm not trading live with.
OTOH, there doesn't seem to be a significant performance difference between bots optimized to Alpari historical data and trading in my live account with theCollectiveFX, so no worries!
Originally Posted by kengen
I encourage everybody to code the pending requests when they have the habilities and the time.
It is greatly appreciated to have other active coders in this section.
Add include file
You will need this include file to run the EA. I forgot to add the files.
It doesn't seem to work. I can't set the parameters or anything.
In what folder shall the .mgh file be put in?
Regards / JoLi
Place the file in the "include" folder.
oppositeclose doesn't work
I'm testing this nice ea and i've discoverd that the oppositeclose option doesn't work, if you set it to true or false the EA will do the same.
I would like to ask if is possible to add an option that close an order after x days
OppositeClose option fixed.
CloseOnExpiration and expirationDays options have been added;
NOTE that the algorithm of the EA may result in worse performance if these options are set to true.
OOps!!! Where is the file? Let's try again.
Tags for this Thread