• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:35pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:35pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

GBPJPY Range Bar Trading System 335 replies

CCI Trading system + Range bars with NINJA 12 replies

HYBRID: trading system within a trading system 30 replies

What's the best system for trading range markets? 8 replies

How to get range of h/l on previous day's range? 1 reply

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 64
Attachments: Nb 10.0 range trading system
Exit Attachments
Tags: Nb 10.0 range trading system
Cancel

Nb 10.0 range trading system

  • Last Post
  •  
  • 1 78Page 91011 21
  • 1 8Page 910 21
  •  
  • Post #161
  • Quote
  • Sep 2, 2011 7:06pm Sep 2, 2011 7:06pm
  •  nanningbob
  • Joined Jun 2007 | Status: Teach men to fish | 7,383 Posts
This week was a closing out of my recovery trades. The market reversed almost across the board. I felt I was on the wrong end of several CHF trades so I just closed them for losses and recovery traded the rest. Still increased my account 1% this week and my DD is now under 2.5%. Looking forward to another week.
 
 
  • Post #162
  • Quote
  • Sep 2, 2011 10:15pm Sep 2, 2011 10:15pm
  •  Frodog
  • | Joined Jun 2009 | Status: Member | 104 Posts
Quoting jmw1970
Disliked
Hi All

I am currently writing a multi-pair trader for the 1Hr CTR EA's as I am having difficulty with the number of charts open on my laptop

This is in testing so far but produces a screen similar to below:-

I will upload it to the thread once testing is complete.

I have taken the logic directly from the original 1h CTR ea's

I have noticed though that the logic for Buy is MA Low below Lower Band and the Bid less than the Lower Band (reversed for sell), this causes orders to be opened when the price may be on a run in the opposite direction,...
Ignored
Hi John,
I think the logic of the ea is great as is. I think long term the current ea logic will do better than changing the ma criteria for entrances. The last week or so have not been kind to this ea. But the 3 weeks before that, the ea made a killing. Often times your 20-30 pips in profit before the ma has risen above or below bb.
 
 
  • Post #163
  • Quote
  • Sep 3, 2011 7:33am Sep 3, 2011 7:33am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Cheers Frodog

that is what I thought, as I said I have probably just been unlucky (last week seemed to be a bit of a nightmare anyway)

I am finalizing some stuff on the Multipair and will be uploading shortly.

One question for anyone --

the same EA is used for range and for re-entry into the trend - I am assuming that for re-entries into the main trend you would want for instance the MPTM to handle them differently as these are hopefully runners - does it make sense for the multipair to have 2 different magic numbers, one for when the direction is set at both (ie. true range) and one for when the direction is fixed one way (ie. countertrend / re-entry into a trend)

Reason I am asking is that on the Multipair you can set the direction of trading, ie. both or buy/sell only

I already have coded logic that when the direction is buy or sell only that it shouldn't close on the opposite band, this should only be done when the direction is both AND the flag is set to close on opposite band

Regards, John


Quoting Frodog
Disliked
Hi John,
I think the logic of the ea is great as is. I think long term the current ea logic will do better than changing the ma criteria for entrances. The last week or so have not been kind to this ea. But the 3 weeks before that, the ea made a killing. Often times your 20-30 pips in profit before the ma has risen above or below bb.
Ignored
 
 
  • Post #164
  • Quote
  • Sep 3, 2011 8:12am Sep 3, 2011 8:12am
  •  whatfx
  • | Joined Jun 2010 | Status: The Villain | 2,565 Posts
Quoting nanningbob
Disliked
So for Monday morning after the JPY session I will start the EAs on the 12 pairs and see what happens. I will post my results and help you with my recovery methods needed to do range trading.
Ignored
Is there a manual version of this ?
 
 
  • Post #165
  • Quote
  • Sep 3, 2011 8:57am Sep 3, 2011 8:57am
  •  nanningbob
  • Joined Jun 2007 | Status: Teach men to fish | 7,383 Posts
Quoting whatfx
Disliked
Is there a manual version of this ?
Ignored
Manual LOL have fun. When the 3MA high is above the BB on a 1H chart sell. When the 3MA low is below the BB on a 1H chart buy. Have fun staring at your screen all day so you dont miss your entrance.
 
 
  • Post #166
  • Quote
  • Edited 10:25am Sep 3, 2011 10:13am | Edited 10:25am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Dear All

As promised here is a “Multi-pair” trader for the 1H CTR expert advisor.

The logic is taken directly from the standard 1H CTR Both

There are 2 slight modifications to the standard logic, they are as follows

1) ECN brokers could not previously use the SL & TP from this EA, and Steve’s EA had to be used or the SL/TP added via MPTM, this version will allow any broker to use the SL/TP features
2) The close on opposite band logic has been parametized, now the EA will only close on the opposite band if both of the following is true – the direction is set to Both, the Close on Opposite Band flag is set

There is the ability to apply different magic numbers based on whether that pair is being used for range or for re-entry, if the currency pair is being used for Range (direction = both) then it will use the RangeMagicNbr, if the currency pair is being used for Re-Entry (direction = buy or sell) then it will use the ReEntryMagicNbr.

Although by default I have set them both to 100 as I wasn’t exactly sure if this was needed.

The EA uses several “buttons”, in all cases to “press” these pseudo “buttons” to change the state, highlight the “button” and drag it from its default position.

The EA has 2 separate levels of control:-

Main control – this is controlled by the “button” start/stop at the top of the screen, if the EA is stopped using this “button” then the EA will do absolutely nothing (mainly used if you need to change some parameters via F7) as the EA runs on a continuous loop and does not require ticks to run (apart from the first tick)

Pair control – each pair can be individually controlled (the pair name is the “button”), if the pair is in red, then the EA will NOT perform any order management or entry processing (it will still show open orders & profit/loss). If the pair is in lime, then the EA will perform order management and entry processing.

Each pair can be set up to trade in both directions, or buy / sell only, to change the direction “press” the direction “button”, it will cycle through in the following order (BOTH -> Buy -> Sell -> BOTH). For safety either ensure that the MA’s are within the Bollinger Bands (so no unexpected trades are opened) or use the pair control “button” to temporarily suspend the pair.

By default the EA will start with ALL currency pairs temporarily suspended with a direction of BOTH.

The current definition (UT,DT,BO,CTR) of the pairs "trend" is also displayed.

If there is an open order, the order will be displayed along with it’s current Profit / Loss

For the tinkerers around, the screen definition (placement of fields, font, colors etc) are setup in the “#define” section at the top of the EA. Changing the values here will automatically modify the screen setup.

Refer to NB’s documentation on changing EA’s for assistance if required.

Any questions, please do this via PM to avoid this thread being cluttered with technical queries not related to the method.

Regards, John
Attached Image (click to enlarge)
Click to Enlarge

Name: 1h ctr multi latest.gif
Size: 14 KB
Attached File(s)
File Type: mq4 10.0 1H CTR MPairs.mq4   24 KB | 381 downloads
 
 
  • Post #167
  • Quote
  • Sep 3, 2011 6:07pm Sep 3, 2011 6:07pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Thanks very much. You are very talented individual and your conrtibutions are most gratefully received. I wish you all the best.
Kind Regards
 
 
  • Post #168
  • Quote
  • Sep 3, 2011 7:21pm Sep 3, 2011 7:21pm
  •  whitegoodman
  • | Joined Oct 2008 | Status: Member | 1,080 Posts
Quoting jmw1970
Disliked
1) ECN brokers could not previously use the SL & TP from this EA, and Steve’s EA had to be used or the SL/TP added via MPTM, this version will allow any broker to use the SL/TP features
2) The close on opposite band logic has been parametized, now the EA will only close on the opposite band if both of the following is true – the direction is set to Both, the Close on Opposite Band flag is set

There is the ability to apply different magic numbers based on whether that pair is being used for range or for re-entry, if the currency...
Ignored
hey mate is it possible to code for re-entries something that allows for re-entires on the same criteria as the entries (moving average high crosses over bollinger band and vice versa) but to avoid have 1000's of re-entries on a bollinger band run set a minimum distance between first entry and re-entries for the criteria for re-entry to take effect

thanks

great work on the modification
Grabbing the bull by the horns!
 
 
  • Post #169
  • Quote
  • Edited 8:30pm Sep 3, 2011 8:13pm | Edited 8:30pm
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Hi

I take it you mean something like recovery, although I am not an expert on this I thought recovery was handled by looking for the MA2 cross on the daily and using the recovery EA

there is however two different work-arounds already coded into the EA to handle this

Work Around 1
a) temporarily suspend the pair (move the pair "button" so it is red)
b) Create a global variable using F3 with a prefix = to the #define IgnorePfx, the default is "[email protected] #" after the # sign you put in the ticket number of the original trade (eg. [email protected] #123432250)
c) if you have done this correctly the trade will now disappear from the dashboard
d) when you think that the run is nearly over (or it has moved enough pips) stop the pair suspension (move the pair "button" so it is lime)
e) the ea will then open a trade if the criteria is still met

Work Around 2
a) Ensure that you have 2 different magic numbers for the Range & Re-Entry
b) Temporarily suspend the pair
c) Change the direction from the one that created the original entry (so if originally was both and a buy order entered, change the direction to buy, if originally on buy and a buy order entered, change to both etc.)
d) when you think that the run is nearly over (or it has moved enough pips) stop the pair suspension (move the pair "button" so it is lime)
e) the ea will then open a trade if the criteria is still met

not a perfect solution I know, but I was also looking at ways for the EA to ignore the fact that it already had an opened trade - but this would be in extra special circumstances and wasn't intended to be used on a regular basis

Regards, John

Quoting whitegoodman
Disliked
hey mate is it possible to code for re-entries something that allows for re-entires on the same criteria as the entries (moving average high crosses over bollinger band and vice versa) but to avoid have 1000's of re-entries on a bollinger band run set a minimum distance between first entry and re-entries for the criteria for re-entry to take effect

thanks

great work on the modification
Ignored
 
 
  • Post #170
  • Quote
  • Sep 3, 2011 9:59pm Sep 3, 2011 9:59pm
  •  Frodog
  • | Joined Jun 2009 | Status: Member | 104 Posts
Can the latest NH4 panel be used for hedging? I couldn't see anything in the pdf. At the moment I use mptm, but this takes a bit to manage when you close the loser and counter trade, you have to make sure mptm doesn't re-enter a hedge as soon as you close the looser. I have it set as "manage these pairs only" and just before I close a hedge trade, I have to make sure the pair is not on the "manage these pairs only" list.
 
 
  • Post #171
  • Quote
  • Sep 3, 2011 11:48pm Sep 3, 2011 11:48pm
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Hi Frodog

not sure if this will be helpful to you at all (probably not as you are using the GUI with MPTM to hedge) but I am creating another version of this multipair trader with the ability to hedge.

My idea is to use MPTM purely for the trailing part and have the hedging as part of the core EA

Although in the end my ideal situation would be to have the more advanced logic for trailing that is available in MPTM directly available in the multipair trader.

Regards, John

Quoting Frodog
Disliked
Can the latest NH4 panel be used for hedging? I couldn't see anything in the pdf. At the moment I use mptm, but this takes a bit to manage when you close the loser and counter trade, you have to make sure mptm doesn't re-enter a hedge as soon as you close the looser. I have it set as "manage these pairs only" and just before I close a hedge trade, I have to make sure the pair is not on the "manage these pairs only" list.
Ignored
 
 
  • Post #172
  • Quote
  • Sep 4, 2011 12:45am Sep 4, 2011 12:45am
  •  whitegoodman
  • | Joined Oct 2008 | Status: Member | 1,080 Posts
Quoting jmw1970
Disliked
Work Around 2
a) Ensure that you have 2 different magic numbers for the Range & Re-Entry
b) Temporarily suspend the pair
c) Change the direction from the one that created the original entry (so if originally was both and a buy order entered, change the direction to buy, if originally on buy and a buy order entered, change to both etc.)
d) when you think that the run is nearly over (or it has moved enough pips) stop the pair suspension (move the pair "button" so it is lime)
e) the ea will then open a trade if the criteria is still met

not a perfect...
Ignored
im currently doing this with two different magic number EA's the problem is on heavily ranging pairs like AUDNZD is have the re-entries quite close and during the night i miss a lot of re-entries because of sleep. Trading AUDNZD or AUDCAD on shorter term time frames as a range method (exactly like 1hr both ways EA) works very well in terms of risk to return but im having trouble getting the coding to live test the EA....

i prefer re-entries/recovery's on small timeframes exactly as the intial entry, not MA crosses, but thats my preference
Grabbing the bull by the horns!
 
 
  • Post #173
  • Quote
  • Sep 5, 2011 5:02am Sep 5, 2011 5:02am
  •  SteMag
  • | Joined Apr 2011 | Status: Member | 304 Posts
Hello everybody, a simple question:

Why a buy there?!
Attached Image (click to enlarge)
Click to Enlarge

Name: whybuy.PNG
Size: 60 KB
 
 
  • Post #174
  • Quote
  • Sep 5, 2011 5:47am Sep 5, 2011 5:47am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader & MQL Coder | 776 Posts
Dear All

I have now created a version of my multipair 1h trader with automatic hedging.

As I am a complete novice on this particular system I am looking for people to help me to test it.

If you are interested, send me a PM with your eMail so I can send it to you.

Regards, John
 
 
  • Post #175
  • Quote
  • Sep 5, 2011 7:54am Sep 5, 2011 7:54am
  •  nanningbob
  • Joined Jun 2007 | Status: Teach men to fish | 7,383 Posts
Quoting SteMag
Disliked
Hello everybody, a simple question:

Why a buy there?!
Ignored
Heck if I know here is the code if you want to double check your EA. Does anyone see something wrong??

double Var1 = iBands(NULL, PERIOD_H4, 20, 1, 0, PRICE_CLOSE, MODE_UPPER, Current + 0);//PAIR, PERIOD, MA period, Deviation, shift
double Var2 = iBands(NULL, PERIOD_H4, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, Current + 0);
double Var3 = iBands(NULL, PERIOD_H4, 20, 1, 0, PRICE_CLOSE, MODE_LOWER, Current + 0);
double Var4 = iBands(NULL, PERIOD_H4, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, Current + 0);
double Var5 = iMA(NULL, PERIOD_H4, 3, 1, MODE_LWMA, PRICE_OPEN, Current + 0);


if ( Var5 < Var3 && Bid < Var3 ) Order = SIGNAL_BUY;//VAR3 is the lower band
if ( Var5 > Var1 && Bid > Var1 ) Order = SIGNAL_SELL;//Var1 is the upper band
 
 
  • Post #176
  • Quote
  • Sep 5, 2011 8:55am Sep 5, 2011 8:55am
  •  jmw1970
  • Joined Sep 2010 | Status: Trader &amp; MQL Coder | 776 Posts
that code is fine, SteMag have you looked at the Comment on the order to ensure that it was the 4Hr CTR that opened the order and wasn't perhaps some other EA (for instance OI Recovery)


Quoting nanningbob
Disliked
Heck if I know here is the code if you want to double check your EA. Does anyone see something wrong??
Ignored
 
 
  • Post #177
  • Quote
  • Sep 6, 2011 3:07am Sep 6, 2011 3:07am
  •  SteMag
  • | Joined Apr 2011 | Status: Member | 304 Posts
Quoting nanningbob
Disliked
Heck if I know here is the code if you want to double check your EA. Does anyone see something wrong??

double Var1 = iBands(NULL, PERIOD_H4, 20, 1, 0, PRICE_CLOSE, MODE_UPPER, Current + 0);//PAIR, PERIOD, MA period, Deviation, shift
double Var2 = iBands(NULL, PERIOD_H4, 20, 2, 0, PRICE_CLOSE, MODE_UPPER, Current + 0);
double Var3 = iBands(NULL, PERIOD_H4, 20, 1, 0, PRICE_CLOSE, MODE_LOWER, Current + 0);
double Var4 = iBands(NULL, PERIOD_H4, 20, 2, 0, PRICE_CLOSE, MODE_LOWER, Current + 0);
double Var5 = iMA(NULL, PERIOD_H4, 3, 1, MODE_LWMA,...
Ignored
Quoting jmw1970
Disliked
that code is fine, SteMag have you looked at the Comment on the order to ensure that it was the 4Hr CTR that opened the order and wasn't perhaps some other EA (for instance OI Recovery)
Ignored
No men, all was ok, the EA comment too ( Buy(#4) ).. i don't really know what happened there, and unfortunately i don't have the know-how for an investigation

That order will remain a mistery i guess.

Thanks anyway for the help, keep it up, you're great!
 
 
  • Post #178
  • Quote
  • Sep 6, 2011 4:25am Sep 6, 2011 4:25am
  •  MorningMania
  • | Joined Nov 2009 | Status: Member | 201 Posts
now that was an interesting few minutes on the EUR/CHF. The ea I''ve set up on the non volitile pairs did take some losses in the panic but it now has some trades in profit as well. It will be intersting to see how this day pans out.

Good luck everyone!
 
 
  • Post #179
  • Quote
  • Sep 6, 2011 4:59am Sep 6, 2011 4:59am
  •  Balazs227
  • | Joined May 2011 | Status: Member | 26 Posts
Hy,

I played around with the 1h ctr both EA. I put them up on the charts that you suggested on pst. 1. Actually I put up 2 of every chart with different magic numbers and they were managed by 2 mptms to test different TPs. The problem is that my account got wiped out. The problem was with CHF/JPY. It opend 12 (24 on both charts) long trades while it was falling off the cliff. I would like to know if this happend to other people or the problem is on my side?
"To whom much is given, much is expected." Donald Trump
 
 
  • Post #180
  • Quote
  • Sep 6, 2011 8:40am Sep 6, 2011 8:40am
  •  dryclean
  • Joined Oct 2008 | Status: Sailing for pips | 2,099 Posts
http://www.myfxbook.com/members/dryc...-w-mptm/160394

Here is CTR BOTH running with MPTM untouchd since Fri

not bad if DD shrinks
 
 
  • Trading Systems
  • /
  • Nb 10.0 range trading system
  • Reply to Thread
    • 1 78Page 91011 21
    • 1 8Page 910 21
1 trader 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 / ©2023