// initalising the values for GMT array
for ( int counter = 0; counter < 24; counter++ )
GMT_Time[counter] = counter;
int result = 0;
if ( GMT_offset >= 0 ) result = GMT_Time[GMT_offset]; //positive offset
if ( GMT_offset < 0 ) result = GMT_Time[ArraySize(GMT_Time) + GMT_offset ]; //negative offset
[B]// result contains the hour value of the time which is after the offset[/B]
ETA:
after thinking for a while, why not just add them!! no need to convert negative integer to positive integer just to subtract it!!
I’ve been trading it live on Oanda manually for almost a year now. I just opened up a live IBFX account last week and I plan to start trading it there with the EA once we get everything working.
Technically I’m trading it live on IBFX now, but only with .01 micro lots, just in case the EA screws up.
hahaha!!! I’m going to merged the ideas/code when I have the time, maybe today…just got my course notes, starting a course and finishing it in 2 months, so going to be bz~~
if current ATR more than 40% of ATR 14, don’t enter market
ready for 5 or 4 digit broker
do not enter market if it’s passed wed
close order if it’s friday, gmt 1200
fixed lot size calculation error
added a check to see if the order has been closed by SL/TP
added file logging
moved the function that checks if the order has been close by SL/TP to the top, it should be checked first before “closing orders” or “move to BE”
added a “Lets_Go_Trading” flag, it will be activated after the breakout box has been calculated, and deactivated when it’s after friday 12pm GMT
added data error logging to file
tired of coding for GBPUSD and EURJPY style in 2 different EA, merged them, and added an external variable to choose between them - default = EURJPY style, if u didn’t type “GBPUSD” properly, it will choose EURJPY style
GMT offset: it will take the high and low of 2 one-hour candlesticks before Monday 00:00 - taking broker GMT offset into account; this is how Phil838 has devised this strategy - using IBFX which is at GMT0 and it’s 4-hour candle actually have only 2 hours of data - currently it’s set to GMT2
fixed bug with buying/selling at market price by first sending buy/sell market order, then modifying the order with SL and TP
[U]Position Sizer.zip[/U]
external variable to specify your risk in %
has 3 lines, Entry, Stop Loss, Target profit
it will calculate lot size and RR ratio based on your risk in %
will not calculate when entry is not between stop loss and target profit
will not calculate when entry is equals to stop loss or target profit (to avoid divide by zero error)
ready for 5 or 4 digit broker
lotsize will return min of 0.01, and sometimes that might exceed the % that u specific as the stop loss is too large for your account to handle - added actual dollars that is risked, and recalculated % base on it
changed from re-creating entry/stoploss/targetprofit lines at every tick to changing the lines description; because deleting it and creating it again causes the line to lose focus when you try to double-click on it and adjust it
[U]Position Sizer EA.zip[/U]
able to places orders when delete the yellow label; orders will then be placed, and the entry/stoploss lines are moved to the minimum price in the chart, and the targetprofit lines are moved to the maximum price in the chart
external variable to specify your risk in %
has 3 lines, Entry, Stop Loss, Target profit
it will calculate lot size and RR ratio based on your risk in %
will not calculate when entry is not between stop loss and target profit
will not calculate when entry is equals to stop loss or target profit (to avoid divide by zero error)
ready for 5 or 4 digit broker
lotsize will return min of 0.01, and sometimes that might exceed the % that u specific as the stop loss is too large for your account to handle - added actual dollars that is risked, and recalculated % base on it
fixed ordersend command; from BUY/SELL at market to onstop buy/sell
changed from re-creating entry/stoploss/targetprofit lines at every tick to changing the lines description; because deleting it and creating it again causes the line to lose focus when you try to double-click on it and adjust it
[U]Line Reactor.zip[/U]
maybe its a myth that the price will react when its nearing those 1.4500 or 135.00 mark; anyways, this is a simple indicator that reminds you action might take place around those marks!
[ Steps to extract them ]
save file to desktop
use winrar/winzip/7zip to “view” the zip file"
u will see one file
select the file, and hit “view” in winrar/winzip/7zip
Do I just copy both files to my Meta Trader 4 platform to the custom indicator section and then just call it up on a GBP/US chart? What is each file supposed to do?
That’s exactly why I didn’t put in it. At first I though it was as easy as making an external variable and letting the user put their +/- GMT number in, but, for the reasons you pointed out, that won’t work.
Using 1H candles is probably the best bet. If no Sunday data is available the first 2 hours of Monday should work fine. The week-to-week results will be different than the “official” results, but over time the profitability will remain the same.
Any more than the first 2 hours and the stoploss will be too large for the system to work correctly, though.
Anybody else with some programming knowledge have any ideas?
I can do this if you want, but do we really want to “change” the rule so much to cater for broker who doesn’t have sunday prices? shouldn’t they used ibfx demo for it?
I can program to check that if the days differ more than 1 day, then don’t take the iHigh of 1hour candle into consideration, but do we really want to do this?
I’ll look at EURJPY over the weekend, the GBPUSD is only the 1st draft, still need to work on the comments, and have some inbuilt checking to make sure values are okay`
I think you’re right. I [B]know [/B]this system works like it is, but I’m really just guessing it does on Monday’s data…
It’s up to you and everyone else as far as I’m concerned. I use IBFX so whether it’s in there or not doesn’t bother me.
Is there anyone out there trading this system that’s using a broker without Sunday data? If so and you want to use the EA speak up! I (and I’m guessing s05) don’t mind doing the work to get it running on all brokers, but if no one needs that feature we shouldn’t waste our time with it.
I was looking back as far as my data goes (it only goes back 3 months on the 1H candles) and GBPUSD had quite a bad losing streak in June/July. 8 consecuative losing weeks from 7 June onwards. If you started trading this system in June you would only have about 87% of your money now.
The last 3 months of G/Y on the other hand was very good. Enough to cancel out the losses in G/U. If you traded them together from June you would be in profit. But last week’s G/Y was a shocker in terms of the weekly range. It barely moved at all the whole week. Lets hope things start to pick up soon. Maybe it was because of the the summer holidays in the northern hemisphere, coming at the end of a major correction/rebound in the equity markets?
I only had a 4 week losing streak (5 if you count the breakeven week as a lose). I show one win in June, and one more in July. If you trade 2% per trade you should have made 5.4% (compounding factored in) over those two months.
Looking back in my charts August was also a profitable month, but I don’t have live results due to my accident.
Here are my live results for June/July… First number is the stoploss, second is the TP, and third is the outcome of the trade in pips. The total outcome is 3.25R.
Yes, you’re right. I only just realised I was using the wrong spread. Those extra pips makes all the difference. I’ve recalculated and it was profitable over the last 3 months by about 8%. Add in the profit frm G/Y and it becomes even better.