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.
James16: the EA
-
blahn
- Trader
- Posts: 53
- Joined: Wed Nov 30, 2011 2:39 am
Re: James16: the EA
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
Very impressive results. The big gains all come from JPY pairs, quite several of them.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.
The reverse might happen if they all lose at the same time.
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
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.
Very nice...what are you using as your exit strategy?
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
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?
You do not have the required permissions to view the files attached to this post.
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
fxozgirl wrote: BTW...the usdjpy trade is now +65 pips (with 40 pips locked in)
This trade has just closed at +100 pips profit
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
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.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.
Very nice...what are you using as your exit strategy?
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
I put the EA on a 4H chart to try and get it to trigger at dbc trade and it did, on audjpy.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?
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
You do not have the required permissions to view the files attached to this post.
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
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 codefxozgirl wrote:I put the EA on a 4H chart to try and get it to trigger at dbc trade and it did, on audjpy.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?
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
But I saw this
and then 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)
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.//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)
Again, please accept my apologies if I have misread this
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Re: James16: the EA
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
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
You do not have the required permissions to view the files attached to this post.
- 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
Shelley, that is just plain awesome.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)
But I saw this
etc
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.
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.
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.
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.