Forex
Google

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2006, 12:53 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
New Indicator/Strategy

I have discovered an indicator that may be useful in MetaTrader used with something like SilverTrend or similar. Sadly though my MetaTrrader skills are non-existant so I have no way of sharing this indicator with you all, and perhaps developing a strategy from it.

I use the indicator to provide similar functionality to that of ADX/DMI, only this particular indicator is a lot faster. It basically can help to tell you when a market is in consolidation or trending. It can also determine the strength of the trend, direction of the trend and the potential weakening of the trend.

I think if this was used in conjuction with something like SilverTrend or ASCTrend we may have the basis for a strategy.

From what I can read of the code, the indicator works like this:

2 Variables are created (I will call the vA and vB) as follows:

vA = ((close - open)/open) * 1000
vB = ((open - previousclose)/previousclose) * 1000

Then simply a moving average of those calculations is calculated and plotted according to a user-defined length (for example 9 or 14).

The indicator would then work like this, I draw two bands on screen, one at +0.005 and the other at -0.005 (this is an arbitary figure). One indicator (I think its vB from memory) remains fairly constant and works almost like a 'zero' line, the other is more volatile (again I think this is vA). I then do not trade when vA is below +0.005 and above -0.005. Once vA breaks out of those bands, I would look for a SilverTrend entry in the direction of the breakout. When the trend starts to weaken then it is time to look for an exit.

If I could code this for everybody so that we could test, I would. But I think it might be a good basis for a strategy, although so far it is untested. If somebody wants to code this, it may be of interest to this forum.

BTW - Good forum, makes for some good reading.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-13-2006, 01:04 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
No response, maybe I haven't demonstrated the potential for this simple indicator too well.

Attached is a screenshot of the last couple of days trading, the middle indicator is the one I have explained above (although with the bands set at +0.10 and -0.10), the bottom is Aroon.

Although slightly delayed, look at when the market is consolidating the indicator is within the bands (not trade), then look at the Long/Short trend indications with the clear indication of when the trend is weakening. Surely with a simple trend based entry system as I have said before, this is the basis for a trading strategy ?

I am sure that with a bit of programming, this is a useful tool !
Attached Images
File Type: png indicator.png (78.9 KB, 580 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-13-2006, 01:10 PM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Quote:
Originally Posted by rogerha
No response, maybe I haven't demonstrated the potential for this simple indicator too well.

Attached is a screenshot of the last couple of days trading, the middle indicator is the one I have explained above (although with the bands set at +0.10 and -0.10), the bottom is Aroon.

Although slightly delayed, look at when the market is consolidating the indicator is within the bands (not trade), then look at the Long/Short trend indications with the clear indication of when the trend is weakening. Surely with a simple trend based entry system as I have said before, this is the basis for a trading strategy ?

I am sure that with a bit of programming, this is a useful tool !
Can U post some bigger screenshot?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-13-2006, 01:31 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
Sure, does this help ?
Attached Files
File Type: zip indicator1bigger.zip (276.5 KB, 263 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-13-2006, 01:49 PM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Quote:
Originally Posted by rogerha
Sure, does this help ?
Ok. Ty. Post the exact code of this function of your platform (or from where U get that code) - I will try to make that indicator.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-13-2006, 02:02 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
My pleasure, I beleive it is a Javascript derivative:

function preMain() {
setStudyTitle("Pro Go ");
setCursorLabelName("Pro Line", 0);
setCursorLabelName("Public Line", 1);

setDefaultBarThickness(1, 0);
setDefaultBarThickness(1, 1);

setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.red, 1);

var fp1 = new FunctionParameter("nProLength", FunctionParameter.NUMBER);
fp1.setName("Pro Length");
fp1.setLowerLimit(1);
fp1.setDefault(14);

var fp2 = new FunctionParameter("nPubLength", FunctionParameter.NUMBER);
fp2.setName("Public Length");
fp2.setLowerLimit(1);
fp2.setDefault(14);
}

var aPro = null;
var aPub = null;
var vPro = null;
var vPub = null;

function main(nProLength, nPubLength) {
var nState = getBarState();
var vC = close();
var vC1 = close(-1);
var vO = open();
if (vC == null || vC1 == null || vO == null) return;

if (aPro == null || aPub == null) {
aPro = new Array(nProLength);
aPub = new Array(nPubLength);
}

if (nState == BARSTATE_NEWBAR && vPro != null && vPub != null) {
aPro.pop();
aPub.pop();
aPro.unshift(vPro);
aPub.unshift(vPub);
}

vPro = ((vC-vO)/vO) * 1000;
aPro[0] = vPro;
vPub = ((vO-vC1)/vC1) * 1000;
aPub[0] = vPub;

if (aPro[nProLength-1] == null || aPub[nPubLength-1] == null) return;

var dProSum = 0;
var dPubSum = 0;
var cntr = Math.max(nProLength, nPubLength);
for (i = 0; i < cntr; ++i) {
if (i < nProLength) dProSum += aPro[i];
if (i < nPubLength) dPubSum += aPub[i];
}
var vProMA = dProSum/nProLength;
var vPubMA = dPubSum/nPubLength;

return new Array(vProMA, vPubMA);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-13-2006, 02:04 PM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Quote:
Originally Posted by rogerha
My pleasure, I beleive it is a Javascript derivative:
Ok. Ty. Javascript is not a problem - i know a few programing languages.
But U was right in your first post.

Last edited by Kalenzo : 01-13-2006 at 02:06 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-13-2006, 06:48 PM
Thruline's Avatar
Thruline Thruline is offline
Senior Member
 
Join Date: Dec 2005
Posts: 123
Thruline is on a distinguished road
Do you know if this indicator is currently written so as to re-paint bars, making it look more accurate than it is real time?

Thanks.

Thru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-13-2006, 10:56 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
Its as live as they come, based on recent price action. It doesn't paint any bars though, just gives the indicator as I have displayed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-13-2006, 11:00 PM
rogerha rogerha is offline
Junior Member
 
Join Date: Dec 2005
Posts: 24
rogerha is on a distinguished road
Quote:
Originally Posted by Thruline
Do you know if this indicator is currently written so as to re-paint bars, making it look more accurate than it is real time?

Thanks.

Thru
Incientally Thruline, you may see the potnetial in this like myself. If you wish to discuss it further, I would be interested.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
EMA 5 13 62 Strategy MarvinSk Expert Advisors - Metatrader 4 19 03-25-2007 04:08 PM
Strategy frantacech Metatrader 4 0 01-05-2007 05:43 PM
Need an EA for new GBP/USD strategy... wadeboxjr Metatrader 4 1 08-26-2006 09:12 AM
Need help with strategy TWTrader Metatrader 4 8 08-08-2006 07:31 PM
what the best strategy ??? jsw2006 General Discussion 5 07-01-2006 10:46 PM


All times are GMT. The time now is 05:52 AM.