• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 3:00am
  • Search
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 3:00am
Search
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Search
Search
Search

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Seeing higher timeframe indicators on lower timeframe 4 replies

Dealing with "Invalid Price", "Requote", "Server Busy" in MT4 2 replies

Broker Challenge "NDD/STP" vs. True "ECN" and "Mkt Mkr" broker talk 45 replies

It’s our job to trade "Futures" not "Histories", by Joe Ross 7 replies

Finding the best "personal" timeframe! 6 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 547
Attachments: My "Ultron" EA for GBPUSD H1 timeframe
Exit Attachments

My "Ultron" EA for GBPUSD H1 timeframe

  • Last Post
  •  
  • 1 1112Page 131415 112
  • 1 Page 13 112
  •  
  • Post #241
  • Quote
  • Nov 13, 2018 5:59am Nov 13, 2018 5:59am
  •  robots4me
  • Joined Dec 2017 | Status: Member | 2,787 Posts
GMT+0 versus GMT+2

In an earlier post I attempted to answer a question about GMT+0 versus GMT+2. This issue concerns your broker's time and has nothing to do with your local time. The Ultron EA uses 'hour1' and 'hour2' settings -- which refer to GMT+2, since that is what @Pawel's broker uses. @Pawel feels these settings do make a difference and that is why he included them. I use both GMT+0 and GMT+2 brokers, so I decided to pay attention to these settings. If your broker uses GMT+2 then you can continue to use the defaults that @Pawel recommends -- hour1=6, and hour2=21. If your broker uses GMT+0 then you might choose to change them. In my earlier post I said you would need to add 2 hours to convert from GMT+2 to GMT+0 -- but that is wrong. You need to subtract 2 hours. I apologize for the misinformation. Here's a link:
http://www.timebie.com/tz/timediff.p...MT%20+2%20Time
There is no effort without error or shortcomings (T.R.)
  • Post #242
  • Quote
  • Nov 13, 2018 6:15am Nov 13, 2018 6:15am
  •  robots4me
  • Joined Dec 2017 | Status: Member | 2,787 Posts
GMT+0 versus GMT+2 (continued)

Since I use both GMT+0 and GMT+2 brokers then I wanted the EA to automatically do the right thing and adjust the 'hour1' and 'hour2' settings accordingly. That is, I wanted the EA to determine whether the broker is GMT+2 (in which case no change is needed) or GMT+0 (in which case 2 hours should be subtracted).

Below is a code snippet I wrote that seems to work and achieve that goal -- feel free to add it to your *.mq4 code. Or, perhaps @Pawel would consider including something like this in his next version -- I don't know. Or, maybe @Pawel would prefer to keep his Ultron EA simple, lean and mean and not clutter it with non-essential code.

By the way -- the original formatting of the code was easier to read. However, when I add code to a post then, for some reason, ForexFactory automatically reformats it and removes spaces -- probably to conserve space.

##################################################################

// According to @Pawel, Ultron's Hour1 and Hour2 are based on his broker's server using GMT+2,
// so let's honor that.
int iGMTOffset = GMT_GetBrokerOffset();
if (2 == iGMTOffset)
{
// This is the case for GMT+2
// Nothing to do -- same as @Pawel...
}
else
{
// This is the case for GMT+0 and GMT+1
if ((2 - iGMTOffset) > 0)
{
Hour1 -= (2 - iGMTOffset);
Hour2 -= (2 - iGMTOffset);
if (Hour1 < 1)
Hour1 = 1;
}
}


//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int GMT_GetBrokerOffset()
{
int AccuracyThresholdInMinutes = 60;

datetime datGMT = TimeGMT();
datetime datBrokerGMT = TimeCurrent();
double dDelta = (double)(datBrokerGMT - datGMT);
dDelta = MathRound(dDelta / (AccuracyThresholdInMinutes * 60));

return ((int)dDelta);
}
There is no effort without error or shortcomings (T.R.)
  • Post #243
  • Quote
  • Nov 13, 2018 9:35am Nov 13, 2018 9:35am
  •  pipsy7
  • | Membership Revoked | Joined Dec 2016 | 1,824 Posts
"would prefer to keep his Ultron EA simple, lean and mean and not clutter it with non-essential code." = thats d Way 2 go m8 4sure !
da n0o0b + $hit_Disturber :)
  • Post #244
  • Quote
  • Nov 13, 2018 11:21am Nov 13, 2018 11:21am
  •  mrdfx
  • Joined May 2017 | Status: Member | 2,886 Posts
Today there was a trade opened by ULTRON and hit TP.
Attached Image (click to enlarge)
Click to Enlarge

Name: Screen Shot 2018-11-13 at 14.20.43.png
Size: 200 KB
Truth is like poetry. And most people f*cking hate poetry.
4
  • Post #245
  • Quote
  • Nov 13, 2018 11:27am Nov 13, 2018 11:27am
  •  Pawel.Gawron
  • Joined Jan 2015 | Status: Member | 56 Posts
Quoting mrdfx
Disliked
Today there was a trade opened by ULTRON and hit TP. {image}
Ignored
Can confirm

Attached Image (click to enlarge)
Click to Enlarge

Name: tron.png
Size: 63 KB
2
  • Post #246
  • Quote
  • Nov 13, 2018 11:36am Nov 13, 2018 11:36am
  •  Ansab001
  • | Joined Nov 2018 | Status: Member | 59 Posts
Damn it I set itit up on my gmt broker not my gmt+2. Oh well I'llI'll get it sorted for next one
  • Post #247
  • Quote
  • Nov 13, 2018 11:41am Nov 13, 2018 11:41am
  •  pipsy7
  • | Membership Revoked | Joined Dec 2016 | 1,824 Posts
Dzięki Pawel, moja żona pochodzi z Samborowa
Attached Image (click to enlarge)
Click to Enlarge

Name: gu.png
Size: 53 KB
da n0o0b + $hit_Disturber :)
  • Post #248
  • Quote
  • Nov 13, 2018 11:49am Nov 13, 2018 11:49am
  •  Pawel.Gawron
  • Joined Jan 2015 | Status: Member | 56 Posts
Quoting pipsy7
Disliked
Dzięki Pawel, moja żona pochodzi z Samborowa {image}
Ignored
Cała przyjemność po mojej stronie, wszystkiego dobrego!
1
  • Post #249
  • Quote
  • Nov 13, 2018 12:12pm Nov 13, 2018 12:12pm
  •  Feex
  • | Joined Oct 2018 | Status: Member | 130 Posts
It was possible to implement the correct trailing stop)
In this modification EA has implemented a trailing stop, which can not affect profits negatively!
The trailing stop starts working only when the price has crossed the TP level.
In the worst case, the order will close on TP. In the best case TR will collect additional profits.
Also added information panel.
EA's algorithm has not changed
Attached Images (click to enlarge)
Click to Enlarge

Name: ULTRON_3.1.7-TR_mod_FY.jpg
Size: 189 KB Click to Enlarge

Name: ULTRON_3.1.7-TR_mod_SET_.JPG
Size: 69 KB
Attached File
File Type: ex4 ULTRON-3.1.7-TR.ex4   39 KB | 491 downloads
2
  • Post #250
  • Quote
  • Nov 13, 2018 12:29pm Nov 13, 2018 12:29pm
  •  Feex
  • | Joined Oct 2018 | Status: Member | 130 Posts
The first test without TR
Attached Image (click to enlarge)
Click to Enlarge

Name: ULTRON_3.1.7-TR_test_standart.jpg
Size: 137 KB

Second with TR
Attached Image (click to enlarge)
Click to Enlarge

Name: ULTRON_3.1.7-TR_test_TR.jpg
Size: 138 KB
2
  • Post #251
  • Quote
  • Nov 13, 2018 12:29pm Nov 13, 2018 12:29pm
  •  Ansab001
  • | Joined Nov 2018 | Status: Member | 59 Posts
Guys i got this error message.

Is this due to the Time difference?
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 138 KB
  • Post #252
  • Quote
  • Nov 13, 2018 12:41pm Nov 13, 2018 12:41pm
  •  Pawel.Gawron
  • Joined Jan 2015 | Status: Member | 56 Posts
Quoting Ansab001
Disliked
Guys i got this error message. Is this due to the Time difference? {image}
Ignored
the code you are using has some operation that divides by zero - as far as I can tell you from this message.
  • Post #253
  • Quote
  • Nov 13, 2018 12:50pm Nov 13, 2018 12:50pm
  •  Ansab001
  • | Joined Nov 2018 | Status: Member | 59 Posts
Quoting Pawel.Gawron
Disliked
{quote} the code you are using has some operation that divides by zero - as far as I can tell you from this message.
Ignored
hmmm ok, i will download your version on post1, i am using my gmt+2 broker..Iwont do anyhting to the file just upload and arrange pip size. Hopefully no issue
  • Post #254
  • Quote
  • Nov 13, 2018 1:02pm Nov 13, 2018 1:02pm
  •  pipsy7
  • | Membership Revoked | Joined Dec 2016 | 1,824 Posts
.Iwont do anyhting to the file just upload and arrange pip size = good idea + use H1 tf - - - pic whut u posted was on Daily !

______________better still "read + study post#1 more carefull m8 "
da n0o0b + $hit_Disturber :)
  • Post #255
  • Quote
  • Nov 13, 2018 1:09pm Nov 13, 2018 1:09pm
  •  Ansab001
  • | Joined Nov 2018 | Status: Member | 59 Posts
Quoting pipsy7
Disliked
.Iwont do anyhting to the file just upload and arrange pip size = good idea + use H1 tf - - - pic whut u posted was on Daily ! ______________better still "read + study post#1 more carefull m8 "
Ignored

Thanks mate...Maybe i should have your siggy with the silly mistakes im making!

Anyway. I have opened a second account on my gmt+" broker.

100GBP test is to see how it does from Mid Nov - End of December.

I am expecting a max of 8- 15 trades. I would like to continue the test untill it has done 100 trades...if possible.

I put a diary here whenever I can.
2
  • Post #256
  • Quote
  • Nov 13, 2018 2:18pm Nov 13, 2018 2:18pm
  •  driven18
  • | Joined Jul 2012 | Status: Member | 438 Posts
I think that this EA in reality needs to be tested with only 0.3 lots which is 2% per $10,0000 of equity. Therefore profit and losses will be 1/3 of what you getting right now.
We are testing and trading now with 1 lot per $10,000 which is 6.5% risk per trade. That is huge risk and not many traders will be able to handle few losses in a row this size of position. 33% DD is a huge hole in real money.

So I suggest when looking at performance to use 0.3 pr $10,0000. Anyone does not have that concern?
  • Post #257
  • Quote
  • Nov 13, 2018 2:36pm Nov 13, 2018 2:36pm
  •  Feex
  • | Joined Oct 2018 | Status: Member | 130 Posts
where did you get 33%?
if on my screenshots, then I tested EA with an initial deposit of only 3000, and lot 1.0. This gives 33% and with a TR of 31% If the deposit is 10,000 and lot 1.0 then you get about a 20% drawdown. Personally, I'm quite happy with the 1.0 lot and the initial deposit of 3000
  • Post #258
  • Quote
  • Edited at 3:01pm Nov 13, 2018 2:46pm | Edited at 3:01pm
  •  pipsy7
  • | Membership Revoked | Joined Dec 2016 | 1,824 Posts
Pawel ist usin 0.01 lot = post#245 - - - i use 0.03 lot on Live Micro acct. = dont Blieve in demo or BT etc2
Attached Image (click to enlarge)
Click to Enlarge

Name: gu1.png
Size: 4 KB
da n0o0b + $hit_Disturber :)
  • Post #259
  • Quote
  • Edited at 3:01pm Nov 13, 2018 2:48pm | Edited at 3:01pm
  •  driven18
  • | Joined Jul 2012 | Status: Member | 438 Posts
Hmm..you got 32% in maximum DD

Not sure how you got $19,000 in profit(chistaya pribil) ..it is 600% on your initial capital....

I think your leverage is different, here(tyt) in USA it is 50:1 max
  • Post #260
  • Quote
  • Nov 13, 2018 3:05pm Nov 13, 2018 3:05pm
  •  Feex
  • | Joined Oct 2018 | Status: Member | 130 Posts
Quoting driven18
Disliked
Hmm..you got 32% in maximum DD Not sure how you got $19,000 in profit(chistaya pribil) ..it is 600% on your initial capital.... I think your leverage is different, here(tyt) in USA it is 50:1 max
Ignored
no luck to you ... I use 1: 500
1
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Trading Systems
  • /
  • My "Ultron" EA for GBPUSD H1 timeframe
  • Reply to Thread
    • 1 1112Page 131415 112
    • 1 Page 13 112
2 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2019