What does
Pip Cop do?


Go Back   Home > Forums > General forums > Robot / EA Programming

» Welcome to the Pip Cop - Forex Robot Reviews and forums.
PipCop reviews MetaTrader Forex robots (EA's) in real-time and posts detailed statements every 15 minutes.
We ONLY forward test on real accounts for the most accurate robot reviews!

Be smart! Read the Review FAQ or you WILL lose money!
If you enjoy the site, please let me know by registering or donating! Thanks! -- PipCop
P.S. This message is hidden if you register!
Robot / EA Programming Forex EA & Robot programming discussions
Reply
 
LinkBack Thread Tools Display Modes
Old 2009-04-19, 10:08 AM   #11 (permalink)
Site Supporter
 
Trader for 4 - 8 years
Location: SoCal
Posts: 393

Default

Quote:
Originally Posted by 1ka View Post
Agreed, not totally useless, but there is a long period in your graph where not much is happening Be nice if these were winning trades. Perhaps it needs the famous 'BatchBoy' optimisation. Mind you - it doesn't follow the 'scientific method' so is not repeatable in live.

If there is enough demand I might make the opening/closing of trades occur on the boundary of a 1 minute bar. That would make testing a bit quicker too.
I vote for that suggestion!
It will be more "scientific", but this 1min-ticks has probably shown how it generally will perform already. Invis uses 1min bars, so end-of-bar performance was utmost 100% importance, here, 1min in relation to 1hr bar, relatively less importance, and the 1min-"ticks" are probably already "down into it" close re: results. So unless it's easy-breezy for your Sunday relaxation time, and you haven't anything else to do go ahead, and you're curious, otherwise it is, like I say, most likely going to be same due to ratio of 1hr/1min.
I keep current optimizing run going for the day.
jb
Batchboy is offline   Reply With Quote
   
 
Old 2009-04-19, 05:03 PM   #12 (permalink)
Site Supporter
 
Trader for 4 - 8 years
Location: SoCal
Posts: 393

Default

Been running optimizing 4 or 5 hours now, very slow, only 18 results so far, here is one good one for 1mini, Initial balance=$1,000:
profit= 1803.53 #-trades=117 max-dd=758.86 relative-dd=29.51% TP =140 SL =90, and FXS_LENGTH=7 which is only different by 1 as to what it was set to in above 1st test, but this has quite a bit more trades, so the test run should have smoother less-wrinkly equity run-up.
jb
I think about leaving it running for awhile longer, but so far this seems fine.
Batchboy is offline   Reply With Quote
Old 2009-04-20, 03:10 PM   #13 (permalink)
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: North Bay, ON
Posts: 10

Default

Wow! Thanks guys... It was a really busy week last week, i I just got a moment to load it now. I left everything at default and put it on a Prime4X demo w/ $5406 equity. I have placed it on 1H charts -- USD/CAD. USD/CHF, USD/JPY AND EUR/GBP. I will keep you updated!
BerryBlonde72 is offline   Reply With Quote
Old 2009-04-20, 03:15 PM   #14 (permalink)
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: North Bay, ON
Posts: 10

Default

how quick was that? I just loaded it and first trade was placed on usd/chf.
BerryBlonde72 is offline   Reply With Quote
Old 2009-04-20, 03:36 PM   #15 (permalink)
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: North Bay, ON
Posts: 10

Default

Ika, The indicator is laggy,,, two "trends" laggy. I was wondering (and I am o=only basing this on the first trade it places, did you program the EA to "buy" when the last posted indicator ponts "up" and to "sell" when the last showing indicator line points down. It seems a little counter-intuitive, but i do beleive that's how this indicator works.

I am only asking because the trade placed : "sell usd/chf" was when the last showing indicator was in the "up/buy" position...
BerryBlonde72 is offline   Reply With Quote
Old 2009-04-20, 04:44 PM   #16 (permalink)
1ka
Site Supporter
 
1ka's Avatar
 
Trader for 0 - 1 year
Location: UK
Posts: 127


Trading Demo with:
IBTrader EA
Smile

Quote:
Originally Posted by BerryBlonde72 View Post
Ika, The indicator is laggy,,, two "trends" laggy. I was wondering (and I am o=only basing this on the first trade it places, did you program the EA to "buy" when the last posted indicator ponts "up" and to "sell" when the last showing indicator line points down. It seems a little counter-intuitive, but i do beleive that's how this indicator works.

I am only asking because the trade placed : "sell usd/chf" was when the last showing indicator was in the "up/buy" position...
I might have missed something, but my understanding is that the indicator shows trends, in a zig-zag fashion. It draws lines from high-low and low-high points which map to trends. However, it only draws a line when the trend has reversed and it takes the indicator a while to determine this.

The EA works by monitoring the indicator every tick . As soon as the indicator draws a new line, then the EA places a trade in the opposite direction, as that is the direction of the current trend . If you think it is doing the wrong thing, then perhaps you'd be kind enough to take a screen shot and annotate what is wrong.

Thanks.
1ka is offline   Reply With Quote
Old 2009-04-20, 05:10 PM   #17 (permalink)
1ka
Site Supporter
 
1ka's Avatar
 
Trader for 0 - 1 year
Location: UK
Posts: 127


Trading Demo with:
IBTrader EA
Default

I'll explain how the EA works with a picture

At point 1, the indicator has just drawn the line sloping upwards, with the number 1 at the top. This is a Buy trend that has completed. At this point , the EA opens a SELL trade, which is shown as number 2. Note how the trend is already reversed and we're 4 bars into it.

At point 3, the indicator draws the downward line (points 1 to 3). At this point , the EA closes the SELL trade for a profit and opens a BUY trade, as the current trend is now upwards. Again, we're a couple of bars into the trend .

This process repeats ad-infinitum. Note also that whilst the first SELL closed for a profit, all the following trades close for a loss, as the trends are too short and the EA is opening trades too late.

I think this is the correct logic, but I might be wrong
Attached Thumbnails
Looking for someone to change custom indicator into a simple EA-picture-1.png  
1ka is offline   Reply With Quote
Old 2009-04-20, 05:34 PM   #18 (permalink)
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: North Bay, ON
Posts: 10

Default

Quote:
Originally Posted by 1ka View Post
I'll explain how the EA works with a picture

At point 1, the indicator has just drawn the line sloping upwards, with the number 1 at the top. This is a Buy trend that has completed. At this point , the EA opens a SELL trade, which is shown as number 2. Note how the trend is already reversed and we're 4 bars into it.

At point 3, the indicator draws the downward line (points 1 to 3). At this point , the EA closes the SELL trade for a profit and opens a BUY trade, as the current trend is now upwards. Again, we're a couple of bars into the trend .

This process repeats ad-infinitum. Note also that whilst the first SELL closed for a profit, all the following trades close for a loss, as the trends are too short and the EA is opening trades too late.

I think this is the correct logic, but I might be wrong
I will explain what i think should happen using your post and picture. Read carefully, as I have cut and pasted some of your comments to save some time...


At point 3, the indicator has just drawn the line sloping upwards, with the number 1 at the top. This is a BUY trend that has completed. But the indicator only shows up (gets drawn onto the chart) at about the same time/position as where the number 3 shows. At this point , the EA SHOULD OPEN A BUY trade. We are not looking to take advantage of the trend immediately following the indicator , we are looking to take advantage of the nexr BUY trade (points 3 to 4).

So, by place a "buy trade" at or close to point 3, we would be taking advantage of the next buy trend .

At point 4, the indicator has reversed, and is now pointing from point 1 to 3 (down), which is the "sell" signal. The EA should recognize this and close out the first "buy" trade from points 3 to 4, and open a "sell" trade to take advantage of the price change at point 4. and ad iinfinitum.

That's where I think we would get the most out of this EA. Just switch the logic a bit. Remember, we are not concerned about the trend immediately after the indicator , but we are looking for the trend after that one. One "buy" signals the next "buy", one "sell" signals the next "sell."

I hope that helps... like I said, it is a bit against common logic, but seems to work.

Last edited by BerryBlonde72; 2009-04-20 at 05:37 PM.
BerryBlonde72 is offline   Reply With Quote
Old 2009-04-21, 03:50 PM   #19 (permalink)
1ka
Site Supporter
 
1ka's Avatar
 
Trader for 0 - 1 year
Location: UK
Posts: 127


Trading Demo with:
IBTrader EA
Default

I'll rephrase my description as it is, on reflection, not that clear exactly what is happening.

Points 1 and 3 are the end points for the line.

Points 2 and 4 are positions on the bar where the 'real-time' price is, and are where the trades are opened/closed.

When the real-time price is at point 2, the indicator draws the upwards line to point 1.

When the real-time price is at point 4, the indicator draws the downwards line to point 3.

I can't place a trade at point 3, as 'real-time' I don't know where this is. The line gets drawn way after when the price is at point 4, hence my reference to the laggy nature of the indicator .

The round blobs on the chart are where the trades are opened and closed, they are the exact point 'real-time' where the indicator draws the previous trend line. Looking at the chart then obviously I want to open a BUY trade at point 3, but I don't know where point 3 is until point 4 on the chart, it's not been drawn yet.

Put the indicator on the EA chart and watch what happens, the EA will open/close trades at the exact time the indicator draws a new line. Until the indicator draws the line, the EA cannot know when to open/close a trade, unless it 'guesses'.

Last edited by 1ka; 2009-04-21 at 04:00 PM.
1ka is offline   Reply With Quote
Old 2009-04-23, 11:29 AM   #20 (permalink)
Rookie Pip Officer
 
Trader for 0 - 1 year
Location: North Bay, ON
Posts: 10

Default

OK, so maybe this will not work out the way I expected. Put it on "hold" for a bit... there is someone else on another forum who is looking into programming something similar, and I will keep you updated! He is expecting it ina couple of week.

Thanks for your effort, and I will definitely show you that other EA
BerryBlonde72 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT -5. The time now is 03:59 PM.

Powered by vBulletin ®
Site content and design Copyright © 2010 PipCop, LLC.
Site designed, hosted, and maintained by One Web Ave
Template by vBSkinworks.
Content Relevant URLs by vBSEO 3.3.2