stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

10.4 A Complete System
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1481
Page 131 of 745
Author:  cmeade2 [ Thu Mar 07, 2013 3:40 pm ]
Post subject:  Re: 10.4 A Complete System

Dave

That is a possibility but at the moment the Eur and Jpy are moving gangbusters in the opposite direction, fueled largely by the press conference.

And so it may be safe for now.
spotdespot wrote:I would be careful with EJ having moved so quickly. It could just carry on but this retest is possible (attached).

I'm pretty done for the week I think anyway with NFP on the horizon.

GL all.
Author:  Chris [ Thu Mar 07, 2013 3:55 pm ]
Post subject:  Re: 10.4 A Complete System

roje wrote:
Chris wrote:
roje wrote:This does not look bad ;)
Of course - this is only demo account yet.
how did you bring up this chart?
Good job!
It is result only made via system from this thread. But today i had SL on CADJPY (113 pips, so i think i have to check entry on Daily chart) and EURUSD, where i have DD 120 pips :D Nothing is only black or white. I study day by day
I am wondering how you display your results in a graph like that. Is that a function of Empty4 or was it a custom EA that someone built? I would like to view my past performance in a graph like that.
Sorry to heat about your SL's.
Thanks
Chris
Author:  roje [ Thu Mar 07, 2013 4:51 pm ]
Post subject:  Re: 10.4 A Complete System

Chris wrote:
roje wrote:
Chris wrote:
roje wrote:This does not look bad ;)
Of course - this is only demo account yet.
how did you bring up this chart?
Good job!
It is result only made via system from this thread. But today i had SL on CADJPY (113 pips, so i think i have to check entry on Daily chart) and EURUSD, where i have DD 120 pips :D Nothing is only black or white. I study day by day
I am wondering how you display your results in a graph like that. Is that a function of Empty4 or was it a custom EA that someone built? I would like to view my past performance in a graph like that.
Sorry to heat about your SL's.
Thanks
Chris
This is standard Detail Statement from Empty4 trade results
Author:  nht [ Thu Mar 07, 2013 5:25 pm ]
Post subject:  Re: 10.4 A Complete System

Hi,

I think this modification of Pivot indicators should be working correctly. In previous version I’ve made few stupid mistakes which caused pivot lines to flicker or showing wrong values on D1 and W1 timeframes.

I’m not a coder so if I find something that works I just use it, “TimeDayOfWeek” is one this cases. In my understanding when the first bar after Friday/Saturday (closing of previous week) appears platform is treating this bar as the beginning of new day/week and it’s irrelevant what other calculation you are doing and from what other TimeFrame you getting you info. Again this is my understanding of how MQ4 calculates things, and this will be not the first time I’m totally wrong…

You proposition to remove >addMidLevels< didn’t work as I hoped, so I found another solution. It is not a beauty but I think it works.

Best regards
nht

candletiger wrote:
nht wrote: I’ve managed to correct Pivots and MidPivots indicators (see attachments).
>>(TimeDayOfWeek(Time[i+1])!=0)<< statement should take care of the Sunday bar(s).
In the weekly, the pivot is calculated by the previous weekly values, not by the daily. So Sunday bar should not matter. What bug should it fix? I'm curious to understand this... :?
nht wrote: The only problem is that for some strange reason extension lines in both indicators are not showing when you choose to display them for MidPivots. This is beyond my knowledge of MQ4 … , perhaps someone can fix this (?)
Cool, you spot a problem that is in since the beginning.
You can easily fix it. Remove this line in the start() function, right above the objectmove section. Let me know if this fixes the problem. Thanks for finding it!

Code: Select all

if(addMidLevels == true) timeframe_prefix = timeframe_prefix + "Mid ";
/ct
Author:  candletiger [ Thu Mar 07, 2013 9:43 pm ]
Post subject:  Re: 10.4 A Complete System

nanningbob wrote: I NEED THAT DAILY PIVOT INDI WORKING
Bob,

in short: I think I could make it working, I checked it with an Cowboy IBFX demo.
Please try and let me know if this is working for you.

in long:
change log
[*]fixed mid line extensions. for mid lines it was actually never working :shock:
[*]support for Sunday day candles, as requested
[*]Text on/off option (default:off): we have the color code, I see no real need to name the lines or show the distance. Easy to switch it back on

A few comments on wtf is so difficult with this daily pivot. And this is my coders perspective.
I should be so easy, just take the previous day bar(from D1 time frame) and read HLC, little math, done. That works perfectly if you get true day bars, i.e. exactly 5 (five!) bars. So what is a day? In forex, on almost all web sites and boards, common sense is, the forex day starts when a new trading week starts. That is 22:00/23:00 GMT, or afaik 17:00 NY time. Calling it a forex day, it would just make sense, that this days start at 00:00 in our forex world, for all of use, same virtual timezone. That's what brokers with GMT+2/3 server time do, and that's why many love it (me too!).
From at coders perspective it gets a bit difficult to deal with 6 day candles, where the first contains just 2 hours and the last 22 hours. Look at the pic, really strange these Sunday micro-candles.
One can fix it by basically reading hourly bars and compose its own daily bars, maybe somebody did this, I for sure will not.

The current implementation just ignores the 2hour Sunday bar and takes the 22hour Friday bar for calculation for Monday Pivots. Incorrect? Yes, but seems still acceptable. Just keep this in mind.

I shut up now, it's 10.4 here and not 10.5 :lol:

/candletiger
sunday candles.jpg
Author:  zentauro67 [ Thu Mar 07, 2013 9:43 pm ]
Post subject:  Re: 10.4 A Complete System

Tempted by USDCHF .
Author:  candletiger [ Thu Mar 07, 2013 9:50 pm ]
Post subject:  Re: 10.4 A Complete System

nht wrote: I think this modification of Pivot indicators should be working correctly.
I still struggle to understand what was wrong with the weekly pivot, thats based on a weekly bar and that is independent of any Sunday day bar. :?
You proposition to remove >addMidLevels< didn’t work as I hoped, so I found another solution. It is not a beauty but I think it works.
If you are interested, just look my last post on the fixed daily pivot. I removed the addMidLevels (line 298 to be precise) and it fixed the problem.

regards
/ct
Author:  nht [ Thu Mar 07, 2013 10:03 pm ]
Post subject:  Re: 10.4 A Complete System

Hi candletiger,

Just saw your post, nice :D

I'll check it tomorrow, right now I need some sleep …

Best regards
nht
Author:  candletiger [ Thu Mar 07, 2013 11:07 pm ]
Post subject:  Re: 10.4 A Complete System

updated weekly pivot indicators (experimental)

change log
[*]fixed mid line extensions. for mid lines it was actually never working
[*]Text on/off option (default:off): we have the color code, I see no real need to name the lines or show the distance. Easy to switch it back on

I wanted to share this with you, but it is not an official 10.4 update. This I leave to Bob to decide and update page 1.

/candletiger
Author:  rosst [ Fri Mar 08, 2013 12:15 am ]
Post subject:  Re: 10.4 A Complete System

candletiger wrote:updated weekly pivot indicators (experimental)

change log
[*]fixed mid line extensions. for mid lines it was actually never working
[*]Text on/off option (default:off): we have the color code, I see no real need to name the lines or show the distance. Easy to switch it back on

I wanted to share this with you, but it is not an official 10.4 update. This I leave to Bob to decide and update page 1.

/candletiger
Nice work Candletiger - cool avitar too. I kind of like the line labels, but I would like to see the price of the line more than the distance from the MA - but maybe there is a better reason for the distance - but will wait for Bob to weigh in on this new mod...
Thanks for all your coding efforts here on the forum....
All times are UTC Page 131 of 745