forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Technical Indicators → Long or Short with moving average

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 14

Topic: Long or Short with moving average

I am working on a strategy that uses a moving average of the high and moving average of the low. Basically you will only open long if the position is above the moving average of the high and go short below the moving average of the low.

It is possible to do these as a separate long and short strategies using the Long or Short indicator but does anyone have any idea how I can combine them into one strategy?

Re: Long or Short with moving average

I am not too sure about this... what about using logical groups.? and using the 'long or short' indicator

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Long or Short with moving average

I did try that but couldn't get my head around the logic. Here is the strategy so far:-

Strategy name: EURUSD4hourRaghee
Forex Strategy Builder v2.67.3.0 Beta
Exported on: 27/03/2012 2:11:39 PM

Description:
(This description might be outdated!)

Automatically generated on 25/03/2012 12:53 PM.
Out of sample testing, percent of OOS bars: 33%
Balance: 10376.00 USD (7/03/2011 1:45 PM  Bar: 13399)

-----------
Modified by the strategy generator on 25/03/2012 5:03 PM.
Out of sample testing, percent of OOS bars: 33%
Balance: 22685.00 USD (7/03/2011 1:45 PM  Bar: 13399)

-----------
Modified by the strategy generator on 25/03/2012 6:17 PM.
Out of sample testing, percent of OOS bars: 33%
Balance: 24753.00 USD (7/03/2011 1:45 PM  Bar: 13399)

Market: EURUSD 4 Hours
Spread in pips: 20.00
Swap Long in pips: 2.00
Swap Short in pips: -2.00
Commission per lot at opening and closing in pips: 10.00
Slippage in pips: 0

Maximum open lots: 99.00
Entry lots: 1.00

Intrabar scanning: Not accomplished
Interpolation method: Pessimistic scenario
Ambiguous bars: 0
Tested bars: 15850
Balance: 79177 pips (89177.00 USD)
Minimum account: -7612 pips (2388.00 USD)
Maximum drawdown: 11245 pips (11245.00 USD)
Time in position: 66 %

[Strategy Properties]
     A same direction signal - Does nothing
     An opposite direction signal - Closes the position
     Permanent Stop Loss - 2185
     Permanent Take Profit - 4230
     Break Even - None

[Opening Point of the Position]
     Bar Opening
     Enter the market at the beginning of the bar
     Base price  -  Open

[Opening Logic Condition]
     Moving Average
     [ A ]   The position opens above the Moving Average
     Smoothing method  -  Exponential
     Base price  -  High
     Period  -  34
     Shift  -  0
     Use previous bar value  -  Yes

[Opening Logic Condition]
     Heiken Ashi
     [ A ]   White H.A. bar
     Base price  -  High, Low, Open, Close
     Use previous bar value  -  Yes

[Opening Logic Condition]
     Moving Averages Crossover
     [ A ]   The Fast MA is higher than the Slow MA
     Base price  -  Close
     Fast MA method  -  Simple
     Slow MA method  -  Simple
     Fast MA period  -  27
     Slow MA period  -  46
     Fast MA shift  -  0
     Slow MA shift  -  0
     Use previous bar value  -  Yes

[Opening Logic Condition]
     Long or Short
     [ A ]   Open long positions only

[Closing Point of the Position]
     Trailing Stop
     Exit at the Trailing Stop level
     Trailing mode  -  Trails once a bar
     Trailing Stop  -  3202

A friend of mine uses this strategy and swears by it. Results for longs look like they have some promise. It is called the Raghee Wave, just do an internet search and you will find all the details.

http://img594.imageshack.us/img594/1306/greenshot20120327142017.png

Re: Long or Short with moving average

I have traded with the 'Raghee Wave', interesting to see you trying to automate it.

I will see if I can make something worthwhile, I will let you know.

I notice that when I try to use 'long or short' the generator seems to work with the 'A' group only..... doesn't seem to be working with 'B', I will let it run overnight and see what results by morning.

BTW  there is a new version of FSB

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Long or Short with moving average

no luck...... I can not duplicate your results..

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Long or Short with moving average

Here is the XML file.

Post's attachments

EURUSD4hourRaghee.xml 5.42 kb, 14 downloads since 2012-03-27 

You don't have the permssions to download the attachments of this post.

Re: Long or Short with moving average

[Opening Logic Condition]
     Long or Short
     [ A ]   Open long positions only

What it happens when you allow short positions? Switch on Close Price on Balance chart to see if the market is not rising during the period.

Re: Long or Short with moving average

This chart is with short positions only. The problem is I need to change high to low in the moving average term so I only go short if the position is below the moving average of the low when going short.

http://img716.imageshack.us/img716/5599/greenshot20120327170704.png

Re: Long or Short with moving average

Hi SpiderMan,
Is this the type of waveform your looking for.
Mick

Post's attachments

EURUSD4hourRagheemod.xml 6.2 kb, 8 downloads since 2012-03-27 

You don't have the permssions to download the attachments of this post.

Re: Long or Short with moving average

Hey Mick

That logic is nearly correct. The moving average of the low should have the condition "the bar opens above the moving average" as when it looks for a short it does the reverse.

The only problem is that when that is corrected it makes less profit! Longs only do very well as you can see from my equity chart. Normally I find that longs and shorts are relatively equal. In this case the shorts are diabolical that's why I am not sure that the logic is working correctly.

Thanks for the xml file, I will play with it a bit and see what I can come up with.

Cheers

11 (edited by Jagmanmick 2012-03-27 18:40:02)

Re: Long or Short with moving average

Hi SpiderMan,
Try this, I think its somewhere near what your asking for, Long above the high MA short below the low MA. Hope it helps.
I also have a second which has a centre MA and opens between the centre and top for Long and centre and bottom for short.
Mick

Post's attachments

EURUSD4hourRagheemod 1.xml 5.3 kb, 10 downloads since 2012-03-27 

You don't have the permssions to download the attachments of this post.

Re: Long or Short with moving average

Here's the second. Hope one of them is of use.
Mick

Post's attachments

EURUSD4hourRagheemod 2.xml 7.11 kb, 16 downloads since 2012-03-27 

You don't have the permssions to download the attachments of this post.

Re: Long or Short with moving average

I added a simple WTF filter of 1 day to identify the trend. Now works both long and short. Thanks for the ideas and suggestions.

http://img843.imageshack.us/img843/237/eurusd4hourragheefilter.png

Re: Long or Short with moving average

Wasn't sure if I should open a new topic but as this is relevant to this item I've placed it here.
I have modified the steady band to H L C MA and changed the margin setting to allow independant addition to the high and subtraction to the low so you can widen the bands.
As it has all filter options it looks very useful.
Mick

Post's attachments

A High Low Close Moving Average v1.cs 28.59 kb, 31 downloads since 2012-03-31 

You don't have the permssions to download the attachments of this post.

Posts: 14

Pages 1

You must login or register to post a reply

Forex Software → Technical Indicators → Long or Short with moving average

Similar topics in this forum