James16: the EA

Locked
blahn
Trader
Posts: 53
Joined: Wed Nov 30, 2011 2:39 am

Re: James16: the EA

Post by blahn »

Ya, that's what I figured. D1 is pretty smooth. On the other hand, my 16 h1 trades at $45 have increased to 18 floating trades at over $80 profit. it's been a while since i've had a demo acct show roughly 800 pips profit in 1 day. will have to wait to see how it handles the closures tho.
james floating 2.gif
You do not have the required permissions to view the files attached to this post.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: James16: the EA

Post by fx800 »

blahn wrote:Ya, that's what I figured. D1 is pretty smooth. On the other hand, my 16 h1 trades at $45 have increased to 18 floating trades at over $80 profit. it's been a while since i've had a demo acct show roughly 800 pips profit in 1 day. will have to wait to see how it handles the closures tho.
james floating 2.gif
Very impressive results. The big gains all come from JPY pairs, quite several of them.

The reverse might happen if they all lose at the same time.
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

blahn wrote:Ya, that's what I figured. D1 is pretty smooth. On the other hand, my 16 h1 trades at $45 have increased to 18 floating trades at over $80 profit. it's been a while since i've had a demo acct show roughly 800 pips profit in 1 day. will have to wait to see how it handles the closures tho.
james floating 2.gif

Very nice...what are you using as your exit strategy?
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

fxozgirl wrote:USDCAD DBLHC - Potential set up

This is the first potential set up for the EA to take a dblhc trade, entry parameters are in line with the rules...just waiting for the new candle

Hi Steve,

Trade wasn't taken, double low bars were 1.4 pips apart, looking for a buy trade at open of new candle, no trade taken.
(I have since opened the trade manually)
Not sure if there is a bloop in the code or is there something else I'm not considering?
usdcad_dblhc001a.gif
You do not have the required permissions to view the files attached to this post.
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

fxozgirl wrote: BTW...the usdjpy trade is now +65 pips (with 40 pips locked in)

This trade has just closed at +100 pips profit :D
MPTM followed the action all the way, price went as high as 128 pips and closed on the retrace.
I would say this was as close as perfect a trade as could be!
blahn
Trader
Posts: 53
Joined: Wed Nov 30, 2011 2:39 am

Re: James16: the EA

Post by blahn »

fxozgirl wrote:
blahn wrote:Ya, that's what I figured. D1 is pretty smooth. On the other hand, my 16 h1 trades at $45 have increased to 18 floating trades at over $80 profit. it's been a while since i've had a demo acct show roughly 800 pips profit in 1 day. will have to wait to see how it handles the closures tho.
james floating 2.gif

Very nice...what are you using as your exit strategy?
haven't figured that out yet. right now i'm just occasionally glancing at it from work. going to move the test to a fxdd acct tho, i forgot oanda uses the comment box and doesn't let the ea post comments. I'll probably just use mptm with really loose break evens and jumps depending how strong the signals are.
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

fxozgirl wrote:
fxozgirl wrote:USDCAD DBLHC - Potential set up

This is the first potential set up for the EA to take a dblhc trade, entry parameters are in line with the rules...just waiting for the new candle
usdcad_dblhc001a.gif

Hi Steve,

Trade wasn't taken, double low bars were 1.4 pips apart, looking for a buy trade at open of new candle, no trade taken.
(I have since opened the trade manually)
Not sure if there is a bloop in the code or is there something else I'm not considering?
I put the EA on a 4H chart to try and get it to trigger at dbc trade and it did, on audjpy.
The trade was a dblhc (as per the usdcad) and the 2 low's were actually 3 pips apart (EA default is 2) and it took the buy trade, whereas the usdcad lows were 1.4 pips apart and no trade.
audjpy_dblhc_4h001.gif
Hmmm...I feel like I am missing something here :?
You do not have the required permissions to view the files attached to this post.
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

fxozgirl wrote:
fxozgirl wrote:
fxozgirl wrote:USDCAD DBLHC - Potential set up

This is the first potential set up for the EA to take a dblhc trade, entry parameters are in line with the rules...just waiting for the new candle

Hi Steve,

Trade wasn't taken, double low bars were 1.4 pips apart, looking for a buy trade at open of new candle, no trade taken.
(I have since opened the trade manually)
Not sure if there is a bloop in the code or is there something else I'm not considering?
I put the EA on a 4H chart to try and get it to trigger at dbc trade and it did, on audjpy.
The trade was a dblhc (as per the usdcad) and the 2 low's were actually 3 pips apart (EA default is 2) and it took the buy trade, whereas the usdcad lows were 1.4 pips apart and no trade.

Hmmm...I feel like I am missing something here :?
Ok, I've taken a look at the code (please forgive me if my comments below are ignorant as I am not very good at reading code :oops: )

But I saw this
//2nd bar must close higher than first
if (iClose(NULL, Dbc.TimeFrame, 1) <= iClose(NULL, Dbc.TimeFrame, 2)) SendLong = false;
}//if (SendLong)
if (SendLong)
{
//2nd bar must close no higher than 2 pips above the first
if (iClose(NULL, Dbc.TimeFrame, 2) - iClose(NULL, Dbc.TimeFrame, 1) > (Dbc.Pips * Point) ) SendLong = false;
}//if (SendLong)
and then this:
//2nd bar must close lower than first
if (iClose(NULL, Dbc.TimeFrame, 1) >= iClose(NULL, Dbc.TimeFrame, 2)) SendShort = false;
}//if (SendShort)
if (SendShort)
{
//2nd bar must close no lower than 2 pips above the first
if (iClose(NULL, Dbc.TimeFrame, 2) - iClose(NULL, Dbc.TimeFrame, 1) > (Dbc.Pips * Point) ) SendShort = false;
}//if (SendShort)
The comments highlighted in red...I don't think it matters if the candle closes within 2 pips of each other, the main indentification criteria is that the double lows (or highs) are within 2 pips. Once that is determined than as long as the close is higher or lower than the previous candle the trade should be taken.

Again, please accept my apologies if I have misread this :)
User avatar
fxozgirl
Trader
Posts: 1176
Joined: Wed Nov 16, 2011 9:16 am
Location: Melbourne, Australia

Re: James16: the EA

Post by fxozgirl »

AUDUSD TMH - Potential set up

Looks like there is a TMH setting up for audusd, current and previous candle's highs are within 2 pips of each other, so if the current candle's high remains within the 2 pips and then continues up and breaks the high, we should be looking at a buy trade...

These trades seem to be fairly rare, so we will see what happens
audusd_tmh001.gif
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: James16: the EA

Post by SteveHopwood »

fxozgirl wrote:Ok, I've taken a look at the code (please forgive me if my comments below are ignorant as I am not very good at reading code :oops: )

But I saw this

etc
Shelley, that is just plain awesome.

What I coded was a misunderstanding of the idea, so the correction is in post 1. At least it should be. I have had a busy day, am tired, and made the correction under The Affluence. It might need checking in the sober light of tomorrow. :lol:

Note to fledgling coders: despite being a non-coder, Shelley was able to spot my error because of the comment that showed what I had coded. Ok, so she clearly has a brain the size of Jupiter, but the comment merely made it easier for her to spot the error. So, comment everything you do. I am not the greatest commenter in the world, but am getting better. I once read some advice from a pro programmer who said that his comments were always longer than his code. I am gradually coming to understand why.

If you look at code produced by the likes of squalou, the comments are both extensive and comprehensive. So yep; comment everything.

Nice one Shelley.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Locked

Return to “Automated trading systems”