Nanningbob 10.1 The EA is here

A forum for storing, retrieving and discussing old EA's.
Find Steve's archive here, created by Alpenkorps.
Post Reply
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: Nanningbob 10.1 The EA is here

Post by SteveHopwood »

Latest update in post 1.

I have added code to insert missing stops and tp's when they are missing - see the last input in the sl/tp inputs section in post 1.

Added a CloseOnTrendChange input, to close a trade when the trend reverses.

: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.
User avatar
squalou
Trader
Posts: 49
Joined: Wed Nov 16, 2011 8:57 am
Location: fabulous Aix en Provence, southern France;

Re: Nanningbob 10.1 The EA is here

Post by squalou »

nanningbob wrote: Thanks for all your help. I have one suggestion for the indi and that is the numbers for the lines need to be bigger. I have a hard time reading them on my screens so when I set my trades I am guessing where they are at or I am going to the low of the candle that caused the line and getting my read that way.
Hi Bob!

good to see you here.
mmmmm.... of course you are at HOME here :mrgreen:

There is nothing i can do about the size of the levels shown on "FIBO" objects, unfortunately;
this is controlled only by Empty4, and i cannot find any setting for that anywhere.....

However, what we can do is replacing the text in the FIBO by text labels as steve had it in the early version; from there we can control the sizes.
I'll add that to the next release.

Sq
" Every battle is won before it is ever fought "
Sun-Tzu, The Art of War, 400BC.
User avatar
squalou
Trader
Posts: 49
Joined: Wed Nov 16, 2011 8:57 am
Location: fabulous Aix en Provence, southern France;

New S&R indi version

Post by squalou »

ok, here goes....


this one will draw S&R "zones" rather than individual levels;

It will group/aggregate individual S&R levels into a single "zone" when 2 different S&R levels are less than "SR_Grouping_Range" pips away from each other.

- It also adds a "buffer" around each "zone" of SR_Zone_Buffer pips each side.
So each SR level or zone now has a minimum of 2*SR_Zone_Buffer pips range.

- it also draws "price labels" at the right side of the SR zones, one at the top and one at the bottom, with a user selectable "SR_Price_Labels_size", for those who are having a hard time reading the Fib values..... :geek:


I have set it to display D1 SR zones only, 10 north + 10 south, to get a wider picture.


Here is how it looks like on EU with DaysBack set to 300 to show a "grouped SR zone":
the pink S1 zone is results from combining 2 nearby SR levels (+5p buffer):

as you can see, this "grouped SR zone" acted exactly as per the book:
- touch and bounce early this morning at market open: level acts as Resistance;
- re-test a bit later after about a 25 pips hook south,
- broke the level north by 35 pips, (several times, go to M5 to see the multiple re-tests)
- came back re-testing it several times from north side: now the level has clearly turned to Support: price SHOULD go up
- after the final re-test, we went north right to the next Resistance level at 3478-3488 zone.

Pretty reliable S/R pattern.... happens all the time!

2011-12-05_171045.gif
@Steve:
for the EA:
i have kept the same object names for the SR zones, however, these names now reference "Rectangle" objects representing the displayed zones, including the extra buffer-pips;
This means OBJPROP_PRICE1 will now get you the LOW value of the SR zone, not the "middle" price.

So now you have the choice to either:
- use a single SR zone "center" level by calculating

Code: Select all

  D1R1 = ( ObjectGet(D1_R1, OBJPROP_PRICE1) + ObjectGet(D1_R1, OBJPROP_PRICE2) ) /2;
- or you can go with the High and Low separate values and change the EA to set the pending orders accordingly, typically buystop at D1_R1 High price (=OBJPROP_PRICE2), with TP set to next zone Low price (=OBJPROP_PRICE1 of D1_R2); etc.


You can retrieve the hi and low zone levels like this:

Code: Select all

void ReadIndicatorValues()
{

   //Read the s/r levels drawn on the chart by sq's indi
   D1R1_lo = ObjectGet(D1_R1, OBJPROP_PRICE1);
   D1R1_hi = ObjectGet(D1_R1, OBJPROP_PRICE2);
   D1R1 = ( D1R1_lo + D1R1_hi ) /2;

   D1R2_lo = ObjectGet(D1_R2, OBJPROP_PRICE1);
   D1R2_hi = ObjectGet(D1_R2, OBJPROP_PRICE2);
   D1R2 = ( D1R2_lo + D1R2_hi ) /2;

   D1S1_lo = ObjectGet(D1_S1, OBJPROP_PRICE1);
   D1S1_hi = ObjectGet(D1_S1, OBJPROP_PRICE2);
   D1S1 = ( D1S1_lo + D1S1_hi ) /2;

   D1S2_lo = ObjectGet(D1_S2, OBJPROP_PRICE1);
   D1S2_hi = ObjectGet(D1_S2, OBJPROP_PRICE2);
   D1S2 = ( D1S2_lo + D1S2_hi ) /2;

}//void ReadIndicatorValues()



I hope this is clear enough...


I think there is still a bug in the grouping algorithm, which sometimes may display the R zone nearest to PA too far away south when PA in inside this zone...
I will try to track and fix it...
Unless someone else finds it first.

8-)

Sq
You do not have the required permissions to view the files attached to this post.
" Every battle is won before it is ever fought "
Sun-Tzu, The Art of War, 400BC.
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: Nanningbob 10.1 The EA is here

Post by SteveHopwood »

Fantastic, sq. Stunning again.

I have gone for the middle-of-the-band option for pending trade price and band-based stops. I have saved the more detailed code as a comment block in case it turns out to be better to set at the extremes.

Update in post 1. I have also replaced the indi with sq's latest version.

:D
You do not have the required permissions to view the files attached to this post.
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.
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: Nanningbob 10.1 The EA is here

Post by SteveHopwood »

I found a bloop in the code that adds missing sl/tp. Fix in the post 1 update.

: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.
User avatar
alex_forex
Trader
Posts: 438
Joined: Tue Nov 15, 2011 5:46 pm
Location: F R A N C E

Re: Nanningbob 10.1 The EA is here

Post by alex_forex »

Hi all :)

Link to the demo started today on Alpari UK :

Image

Pairs traded :
EU D1 / GU D1 / EG D1 / AU D1 / UC D1

Settings are OOTB with the latest update of post 1.

Regards
Alex
:mrgreen:
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Re: Nanningbob 10.1 The EA is here

Post by MurphyMan »

I'm not getting any trades, not one, but I am being battered by a constant string of "Buy/Sell order send failed with error (130):invalid stops". I have the EA loaded on about 12 pairs.

Any suggestions out there?

Sam
User avatar
blazko
Trader
Posts: 86
Joined: Thu Dec 01, 2011 10:57 am

Re: Nanningbob 10.1 The EA is here

Post by blazko »

working good here (def. setts)

Image
cheers
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: Nanningbob 10.1 The EA is here

Post by SteveHopwood »

MurphyMan wrote:I'm not getting any trades, not one, but I am being battered by a constant string of "Buy/Sell order send failed with error (130):invalid stops". I have the EA loaded on about 12 pairs.

Any suggestions out there?

Sam
Strange. Delete your current version entirely and re-download. Sometimes a download fails even though it appears to succeed.

: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.
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Re: Nanningbob 10.1 The EA is here

Post by MurphyMan »

SteveHopwood wrote: Strange. Delete your current version entirely and re-download. Sometimes a download fails even though it appears to succeed.

:D
No joy. I deleted the old Empty4 and loaded a fresh one. Even did a registry scan to clear out any old junk. Brand new downloads fro Post #1.

Also tried rubbing stomach while patting my head, while standing one foot and howling at the moon. My wife thinks I'm spending too much time at this.

Still a constant barrage of 130 invalid stop errors.

If you have an idea, please PM me. I hate to clutter the thread with install issues.
Post Reply

Return to “Archived EA's”