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

ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=875
Page 30 of 43
Author:  disbellj [ Sun Oct 28, 2012 10:47 pm ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

Hey ya'll,

My Empty4 takes a bit to start sometimes too (it just looks locked up. I do nothing - not even click in Empty4 window - until I see numbers at bottom right connection showing movement) due to the number of pairs we are getting information on. This can't be bypassed with the indicator, and should be understandable due to sheer amount of information being collected first-time round. After it gets going, I have no problems with it myself.

Since it works on history you must have some kind of history for all pairs. I am attaching ForceLoadHistoricalData SCRIPT that I found to be the fastest at loading a couple thousand bars (2048) of history for all pairs your broker has. Of testing 3 different EAs/Scripts of this type, this one did it in about 10 minutes, far faster than anything else I've come across. Not: My indicator is working for me on fresh FXDD install without me having to use this script. But thought it might help someone else.

As far as alerts, I will work on it, but really would like to get entries/exits put in for each type of trader and alert for entry/exit instead of alerting for each condition being met. For instance, I see that it looks like unless you are an agressive trader, you won't be using emerging pivots. Also, I need to make it update pivot information once an hour vs each tick, per CC? I can do that.

As far as symbols being sorted in alphabetical order, I did this manually this time around, dragging my symbols in MarketWatch to be alphabetical and reloading the indicator afterwards. I will see if I can get this automated too.

Kindest regards,

Don
Author:  disbellj [ Mon Oct 29, 2012 12:55 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

I have added code to make it sort symbols alphabetically. This is thanks to Hanover who made his functions available.

I have made pivots and market biases load on init and once per H1 bar.

I have found that the lag is caused by Semafors. I am working now on seeing if I can implement Semafor code to get Semafor 2 from higher timeframes. I thought it should be as easy as using High[iHighest... but that doesn't seem to be giving me the same values as calling and geting Semafor 2's (buffer 2 for lower, 3 for upper) using iCustom.

Will hopefully have update soon, which should immensely speed up loading.

Kindest regards,

Don
Author:  mobthehop [ Mon Oct 29, 2012 1:13 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

Don,

the way I get the next higher tf's semas, you only need to multiply the three period inputs by the factor to get to the next higher tf, eg from H1 to H4 multiply by 4, from H4 to D1 multiply by three

Cheers

Mop
Author:  will80 [ Mon Oct 29, 2012 3:27 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

Hi Don - that's great thanks mate, I'll check it out when I get home from work this evening. Appreciate your efforts and especially Cool'n'Calm for devising this method.
Author:  disbellj [ Mon Oct 29, 2012 4:51 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

I've put 3 methods in to get Semafors:
1. Using iCustom to get Semafor 2's on higher timeframes and SEMA4X to get Semafor on H1. When looking at different timeframes, I should see a match between my indicator and a Semafor 2 (or 3) showing up on chart. However, I didn't see this.
2. Using a script from zznbrm which I've modified for multiple pairs. When looking at different timeframes, I should see a match between my indicator and a Semafor 2 (or 3) showing up on chart. However, I didn't see this.
3. Using modified Mop method. I too have used this method. When looking at different timeframes, I should see a match between my indicator and a Semafor 2 (or 3) showing up on chart. However, I didn't see this.

So none match what we see on chart on higher timeframes with Semafor indicator. Not even just using iCustom.

I would expect to see number 2 above match number 1 above except be faster, and number 1 above be correct and match what I see on higher timeframes. However, I don't see a matching. Across the board. As far as number 3 above, because a higher timeframe x period has more bars looking back for Semafor than if using e.g. (13*(43200/60)), I first multiplied the period x higher timeframe, and THEN divided by H1 timeframe, like this: ((13*43200)/60). For this to work correctly, we'd have to have MANY more bars on current chart. So to me, #3 is not an option. I hope its understood why (many more bars needed than we have to go back e.g. 43200 x 13 bars on H1 timeframe requires many more bars than the default 2048).

Semafors, since not getting correct information anyways, I turned off by default. I would really appreciate other coders looking into the Semafor function to see if we can use and get correct information. I have added a test indicator to work with that uses same 3 methods as AllPairs but on single currency for testing.

I have removed momentum, since we already have TmaTrueSlope Entry which has what we need for entry. Momentum used 0.8, which is not used for entry per updated instructions, so no need to keep it. If we want to change entry to 0.8, we can do that in user inputs and don't need momentum column back to see change reflected in entry. Also, I have re-ordered columns since I consider Semafor to be step 1 in HPTP trade, HPTP step 2, Price Cross Pivot as step 3, SMA, if used, as step 4, and TmaTrueSlope Entry as step 5. BTW, SMA is not set for a HPTP trade, but for other trades, since e.g. price can be above SMA 20 for HPTP trade, but below for others. I coded the SMA function before the strategy revision where it was always price had to be below both for buy or above both for sell. This is no longer the case for an HPTP trade (aka UT-RR Stage 3 or DT-RR Stage 3).

Kindest regards,

Don
Author:  coolncalm [ Mon Oct 29, 2012 8:14 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

Wow, Don!!!
Impressive. You've outdone yourself here. Great effort. Thanks.
I'll load them up for a while and get you some feedback.
Author:  coolncalm [ Mon Oct 29, 2012 8:40 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

Just curious, Don...
Did you try working with the ATeam indy before the Sema4x?
Author:  disbellj [ Mon Oct 29, 2012 10:26 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

CC,

Glad you and others like it :)

I looked at ATeam. ATeam indicator itself uses iCustom, so didn't think it would help resources to use it. Would be using iCustom twice each pair each timeframe each tick. Also, it looks to only show up to D1 timeframe, where the indicator I've made shows up to MN1. If only needing H1 96 period, H4 and D1 13 period, then I can strip the rest of the timeframes and that should save resources. Just need your input on this, and I've got another update about ready to go, with (first attempt - hey, gotta start somewhere) Trade Entries based on user input of TradeMode.

Kindest regards,

Don
Author:  Fable [ Mon Oct 29, 2012 10:34 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

disbellj wrote:CC,

Glad you and others like it :)

I looked at ATeam. ATeam indicator itself uses iCustom, so didn't think it would help resources to use it. Would be using iCustom twice each pair each timeframe each tick. Also, it looks to only show up to D1 timeframe, where the indicator I've made shows up to MN1. If only needing H1 96 period, H4 and D1 13 period, then I can strip the rest of the timeframes and that should save resources. Just need your input on this, and I've got another update about ready to go, with (first attempt - hey, gotta start somewhere) Trade Entries based on user input of TradeMode.

Kindest regards,

Don
Great! :D Lookfing forward to see that. Btw, I'm asking again, could be possible to choose the pairs (I'd like to remove some, to save some CPU).

Regards,

Fable
Author:  disbellj [ Mon Oct 29, 2012 11:34 am ]
Post subject:  Re: ADAPTING NB10.2A FOR LOWER TF & RM TRADING - 10.2A CTS

CC,

It also looks like at first you used SEMA4X, which is 96 period, on H1.

It looks like right now ATeam uses Zigzag2 period of 12, has H1 Semafors blacked out, and uses only H4 and D1 Semafors.

Do you want me to use just H4 and D1 Semafors like shows on most recent template, disregarding H1 Semafors since they're turned black so not seen?

Kindest regards,

Don
All times are UTC Page 30 of 43