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

Scoobs and squalou: what a combo
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=326
Page 1 of 9
Author:  SteveHopwood [ Sat Feb 04, 2012 12:26 pm ]
Post subject:  Scoobs and squalou: what a combo

This thread is now closed. Read why at
http://www.stevehopwoodforex.com/phpBB3 ... 211#p19211


For those of you new to all this, scooby-doo is a former pro trader with the big banks; the rest of us have been benefiting from his invaluable advice for a couple of years. squalou is a fantastic coder who has helped me out of a jam many times in recent years; you use his code every time you use the trading-hours function in my EA's (which reminded me that there was no appreciation in the shell code - I have put that right, sq).

scoobs is responsible for my favourite trend-spotting method. He stated that a 20 period D1 Rsi identifies a trend:
  • Rsi > 55: trend is up. Look for trades when Rsl rises above 50.
    Rsi < 45: trend is down. Look for trades when Rsl falls below 50.
    Rsi in between these two numbers: market is ranging.
sq is a genius with indicators and created the attached 10.1 Daily S&R indi. Read details of its use at http://www.stevehopwoodforex.com/phpBB3 ... 3106#p3106 I have made one tiny modification to the indi as attached, in that I have moved DaysBack to the top of the inputs list, as this is the input we have to play with the most.

In broad terms, sq's indi shows areas that represented support or resistance at some stage in the past. The more recent the better, but as a market approaches its all-time hilo, these areas become fewer and further apart. Turquoise represents the next area of resistance; brown the most recent support.

It occurred to me a couple of weeks ago that I can use the indi in combination with Rsi trend-detection, so I came up with this:
  • Identify a trend using Rsi.
    Trade in the direction of the trend, using a break of the next resistance (buy) or support (sell) level shown by sq's indi.
Starting with an Cowboy IBFX Aussie demo and $2,000, trading 0.1 lot sizes, the account is worth $2,127, or +6% in round figures. I have enjoyed the unusual (for me) spectacle of draw down being rare, and positive upl being much more common.

Some detail:
  • Trend indentification and trade setup: I want Rsi both to be trending and moving in the right direction. I cobbled together the 'Rsi trend display indi'. This is a multi-pair indi: you can see how to enter/delete pairs; ignore pair suffixes - the indi spots them. The bracketed figure is yesterday's Rsi; I need it to be lower than today for a buy trade, higher for a sell. When I see a trade setup available because there is a tradable trend, I look for the trade trigger by going to the individual chart and add the 'Everything' template.
    D1 Daily S&R and the trade trigger: Looking at the attached pic, Rsi is telling me that there is a long trend in place. I wait until an H1 candle opens above the next resistance - you can see the buy trade that I took. You can also see the "Waiting to Buy" legend at the top right of the screen, and the dashed yellow line just above the top resistance line. I do not want to have to hang around the screen all day, nor do I want to have to check every hour, so this is where the EA's come in.
    The EA's
    • Waiting to Buy is monitoring the chart for a candle opening above the next resistance line, (Use Waiting to Sell below the next support in a downtrend).
      TradePrice is the input that you use to specify an exact price or:
      DefaultPips draws the line this number of pips away from the market if TradePrice is set to zero. You can adjust this manually by selecting and moving the line; you will see the EA react to the move by changing the screen display.
      The EA will prompt for confirmation that you require it to proceed when you first load it up, then on subsequent occasions such as platform restart or chart timeframe change.
      The EA will turn itself off once it has sent a trade, so the safety feature is there to remind you that it is still running, should you forget.
    Trade stacking: When the EA sends a trade, I move the yellow line to the next S&R level and reattach the EA.
    Highest lowest ever indi: A number of pairs are close to their all-time hilo, so I do not want to be trading into that. This indi draws a solid, thick yellow line at these extremes.
    MTF_Rsi indi: keeps the D1(20) Rsi visible all the time.
    Trade exit: I am not using an initial stop loss. Whether or not I use a take profit depends on circumstances. If the next support/resistance is the all-time hilo, then this is my tp.
    • - manual closure for whatever reason. I will close any trade when Rsi retreats into a range.
      - closure at a jumping stop loss. I will move the stop to lock in profits after a decent move in my favour.
    Spread: I do not take much notice of this.
    News: I take little notice of this. News releases that were causing terror a few months ago cause barely a ripple these days; not even NFP causes much more than a release of pent-up energy into the markets that we need for trading.
    Swap: This is a personal thing, but I do not want to be on the wrong side of the high-swap pairs. A trending pair will consolidate, sometimes for several days. This is OK if the pair pays decent swap (AUDUSD for example) but is an absolute so-and-so if it costs substantial swap.
Trade stacking

Do not uses this software on live accounts just yet. Granted, there is not too much to go wrong with the coding, but remember my signature. It is not a joke.

In addition to the Waiting EA's, I have created some trade-stacking software so that we can set up an EA to take the next x trades.

There are coding problems involved with using a single EA to send multiple trades at multiple levels that are not necessarily the same distance apart. I have addressed this by creating two scripts and an EA.

The scripts:
  • These are:
    • 1) Long trade stacker script.mq4
      2) Short trade stacker script.mq4
    These scripts draw dashed lines on the screen that represent the levels at which you want to enter trades. So, drag the relevant script onto the chart and manually move the lines to reflect the trade entry prices.
    • StackDistance is the distance in pips between lines as a default starter.
      TradesToStack is the number of lines to create
      There is a line colour input.
Once you have created and manipulated the trade lines, then drag Trade stacker EA onto your chart:
  • The line colours must match those of the scripts, so if you change the script line colours remember to change them in the EA as well.
    TradeAtCandleOpen tells the EA to wait until the candle opens above (buy) or below (sell) the next trade line. If set to false, the EA wil trade immediately the market breeches the line.
    • TimeFrame is the time frame for the candle that must open before a trade is sent. The default is the H1, as posited earlier in this post. Change this to 0 to mean 'current chart TF'.
When the EA successfully sends a trade, it deleted the trade line. Once all the trade lines are deleted, the EA can trade no more and so the EA is save to leave alone until wanted again.

In conclusion
So, there you go folks; I cannot think of anything else to add for now. I do not guarantee this will work for you. I do not guarantee that it will always work for me, but it has made a great start. Also, it strikes me that you can use sq's indi as the trigger, whatever is your setup.

I do not envisage being able to automate this; it is purely a manual strategy with some automation to help get the trades in on time.

:D
chart.gif
Author:  MichaelM [ Sat Feb 04, 2012 9:55 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

Steve,

Thank you again. If I didn't have two children to take care of (one born Jan Friday the 13th), I'd imagine I'd have enough time to automate this clever method of trading.

I cannot wait to try this out :)

Cheers,
MichaelM
Author:  SteveHopwood [ Sat Feb 04, 2012 10:08 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

MichaelM wrote:Steve,

Thank you again. If I didn't have two children to take care of (one born Jan Friday the 13th), I'd imagine I'd have enough time to automate this clever method of trading.

I cannot wait to try this out :)

Cheers,
MichaelM
Awwww. How is the sprog doing? Gaining weight nicely? Decent pair of lungs? You getting the occasional hour of sleep here or there? Got a photo you can post?

Don't you dare go thinking about automating this (the system, I mean, not the sprog :lol: ). The markets are going nowhere soon. Sprog is a sprog for what feels like 5 minutes and then becomes a teen, then the fun really starts. :lol: Make the most of what you have right now.

:D
Author:  scooby-doo [ Sat Feb 04, 2012 10:42 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

Steve,

This is a good approach. However, I would also build in the following or create another EA if it doesnt already exist in your weaponary.... :)

BUY or Go Long.
1. If the Trend is UP based on 20 Day RSI i.e. > 55
2. H1 breaks S1, S2 or S3

SELL or Go Short.
1. If the Trend is DOWN based on 20 Day RSI i.e. < 45.
2. H1 breaks R1, R2 or R3.

....also, build in recovery module or fixed SL. However, fixed TP/SL is a NONO as each pair has a specific range. Big clue there!!!!!!!!!!!!!!!!!

Scoobs.
Author:  garyfritz [ Sat Feb 04, 2012 11:02 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

Listen to Uncle Steve, Michael. Treasure the moments while you can. As the dad of a 14 and a 16 yr old, I can assure you life is much more fun while your kids still think you're God. :lol:

Scoobs, do you use something like ATR to determine the correct range for each pair? Or does each pair have a different characteristic behavior?

Mark Johnson, eh? Haven't heard from him for a while. He mostly trades futures, I think. Were you following a forex system of his?
Author:  SteveHopwood [ Sat Feb 04, 2012 11:10 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

scooby-doo wrote:Steve,

This is a good approach. However, I would also build in the following or create another EA if it doesnt already exist in your weaponary.... :)

BUY or Go Long.
1. If the Trend is UP based on 20 Day RSI i.e. > 55
2. H1 breaks S1, S2 or S3

SELL or Go Short.
1. If the Trend is DOWN based on 20 Day RSI i.e. < 45.
2. H1 breaks R1, R2 or R3.

....also, build in recovery module or fixed SL. However, fixed TP/SL is a NONO as each pair has a specific range. Big clue there!!!!!!!!!!!!!!!!!

Scoobs.
The problem with having an always-on EA here is reading sq's indi. Signals generated by his indi are based on the user's DaysBack input. sq does not store values in buffers (I think). The indi is a visual thingy and represents s/r by drawing fib lines. What is relevant is the next/previous s/r, not R1, R2, R3 etc

That is why I do not think I can automate my idea - and if I cannot automate it, then who can? :lol:

Thanks for your thoughts, even so. Please keep them coming. Pleeeaaasssseeee. Lots f us depend upon them.

:D
Author:  SteveHopwood [ Sat Feb 04, 2012 11:14 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

garyfritz wrote:Listen to Uncle Steve, Michael. Treasure the moments while you can. As the dad of a 14 and a 16 yr old,
Wonderful, wonderful creatures, 14-16 year olds. They bring me endless entertainment.

So long as I do not have to help with bringing them up. :lol:

:D
Author:  scooby-doo [ Sat Feb 04, 2012 11:14 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

garyfritz wrote:Listen to Uncle Steve, Michael. Treasure the moments while you can. As the dad of a 14 and a 16 yr old, I can assure you life is much more fun while your kids still think you're God. :lol:

Scoobs, do you use something like ATR to determine the correct range for each pair? Or does each pair have a different characteristic behavior?

Mark Johnson, eh? Haven't heard from him for a while. He mostly trades futures, I think. Were you following a forex system of his?
No. I dont trade futures.

Scoobs (MJ)
Author:  MichaelM [ Sat Feb 04, 2012 11:49 pm ]
Post subject:  Re: Scoobs and squalou: what a combo

Haha, yes the little sprog (never heard of that one before!), he is growing everyday thinking poor Mum has an endless supply of milk. He is now actually settling down into a good sleeping routine that doesn't mirror a bats :lol:

Yes, I see what you mean by trying to not automate this, I prefer semi-automated systems myself :)
Author:  garyfritz [ Sun Feb 05, 2012 12:37 am ]
Post subject:  Re: Scoobs and squalou: what a combo

SteveHopwood wrote:Wonderful, wonderful creatures, 14-16 year olds. They bring me endless entertainment.
Yes, they're endlessly entertaining if you can send them HOME after an hour!!! :lol:
All times are UTC Page 1 of 9