logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
theghost  
#1 Posted : Saturday, October 11, 2008 2:08:21 AM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Hello All.

I would like to know if it is feasible / be able to colour code a Moving Average, but I'm not sure if you can do this in Metastock.

I would like to be able to colour a 21Exponential Moving average to be a thick red line if the 5 period Exponential Moving Average has crossed / touched and is below the 21EMA, and be Blue if the 5 period EMA has crossed / touched and is above the 21E moving average.

If ever the 5 period EMA crosses the 21EMA, the line colour simply changes from red to blue, or blue to red. (Red, negative downward bias, blue upward bias).

I've looked on the forum under images, and the nearest thing I have found was a image by Hayseed (Forum png), which was the kind of idea.

The coloured line would plot on a price chart exactly where the 21EMA would plot (IE it replaces it,, but has a dynamic colour attributed to it by way of the 5EMA crossover.

I hope all the above makes sense.
I'm really not sure if this can be done or what you actually call this, but I suppose it's a colour study?
I hope the above makes sense.
Many thanks for all your time

theghost

theghost  
#2 Posted : Saturday, October 11, 2008 1:38:21 PM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Really tried on this 1, so difficult when you don't really know what you are doing,:-)

Here is my 1st attempt;
Name:
====
My Coloured MA

Formula
=======
Code:

Mov(C,21,E)>Mov(C,5,E);
Mov(C,21,E)<Mov(C,5,E);
{Plot}
{Up Blue}
{Down Red}


This creates 2 lines ,, I think it's called a binary line?,, Not sure.
Anyway, I can colour the indicator the 2 different colours, but it won't display as a 21EMA, IE plot on the chart exactly the same as a 21EMA.

======================

My second attempt was this;
(Having looked at Hayseeds Multicoloured Plot in the Images Gallery);

Code:

{ User input }
periods:=Input("Mov Avg periods",1,2600,21);
{ Data Array }
x:= Mov(C,periods,E);
 
y:=If(Mov(C,5,E)>x,x,0);
z:=If(Mov(C,5,E)<x,x,0);

y;
z;
{Plot}
{y=Up colour Blue}
{z= Down colour Red}

========================
Again, this does plot a coloured line, but it won't follow (Replace) the line of a 21 EMA.
Is there any way to do this?

It seems very difficult.
I am trying [:)]
Many Thanks

The Ghost

wabbit  
#3 Posted : Saturday, October 11, 2008 8:16:02 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi again Ghost,

Firstly, as you have discovered, you cannot reformat a line nor can the format be set/changed programmatically.

You are correct in trying to use two lines as a substitute, but there are a couple of issues you might have seen/have yet to deal with.

First, in using a gt/lt comparison, you have forgotten to include another possibility; what happens when the 2 MA's are equal? Rarely do traders/investors simply ignore possible results? You will either need to have a gte/lt comparison, a gt/lte comparison, or a gt/lt/equal comparison by intorducing a third element to the chart.

(
gt = greater than
lt = less than
gte = greater than or equals
lte = less than or equals
)

The next is that each element of the chart will have values that will be either zero or a price similar to the current price action; this can mess up the scaling of the price axis. You might consider using another value instead zero in the If() functions and using a computed value instead of a fixed value. You will have to decide on what works best for your charts, but the idea is to have the "other" values not obfuscating the "true" values of the required indicator or other charted elements. You might consider something like:

Code:

{ User input }
periods:=Input("Mov Avg periods",1,2600,21);
{ Data Array }
x:= Mov(C,periods,E);

shift:= 0.9 * x;
 
y:=If(Mov(C,5,E)>x,x,shift);
z:=If(Mov(C,5,E)<x,x,shift);

{Plot}

y; {y=Up colour Blue}
z; {z= Down colour Red}
The above code will shift the "other" values down by ten percent and hopefully lessen the effect of any price-axis scaling. But even then, the lines might still be drawing over the top of some of the price bars, so we need to change the other values using a slightly more complicated algorithm, maybe something like this which use the lesser value of the moving average or the low price of the current bar:

Code:


{ User input }

periods:=Input("Mov Avg periods",1,2600,21);

{ Data Array }

x:= Mov(C,periods,E);



shift:= 0.9 * min(x, LOW);

 

y:=If(Mov(C,5,E)>x,x,shift);

z:=If(Mov(C,5,E)<x,x,shift);



{Plot}


y; {y=Up colour Blue}

z; {z= Down colour Red}

But then again the charted indicated lines don't look too good, so you can try another "trick" by exploiting some of the "ms quirks". When you write an indicator that returns multiple elements, the order they are placed on the chart is also their z-index value. The first element of an indicator is drawn first, the second element is drawn over the top of the first element, the third element is on top of the second and first elements, etc. We can use this to "hide" unwanted elements by using another element drawn on top. This works best when selecting the points only line-style (the bottom choice in the line-style quicklist)

Code:



{ User input }


periods:=Input("Mov Avg periods",1,2600,21);


{ Data Array }


x:= Mov(C,periods,E);





shift:= 0.9 * min(x, LOW);

 


y:=If(Mov(C,5,E)>x,x,shift);


z:=If(Mov(C,5,E)<x,x,shift);





{Plot - use points only line-style for best effect}



y; {y=Up colour Blue}


z; {z= Down colour Red}


shift; {colour me the same as the chart background colour}

The "shift" element is drawn last, on top of all previous elements and if selected to be the same colour as the chart background it will hide the elements below it.

See how you go with this. Experiment a little until you get as close as you can get. Rarely will this method produce perfect results, but it's a reasonable workaround to the formatting limitations of MS.


Hope this helps.

wabbit [:D]

theghost  
#4 Posted : Sunday, October 12, 2008 9:48:25 AM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Hello Wabbit.
Many many thanks for your in depth reply.

I will go through this thoroughly tomorrow Wabbit.
Have to go to work shortly, but will have time tomorrow to digest this all.

Yes, it is a shame that there are limitations with MS formatting. MS has such a great GUI, the charts are so clear etc, but you would have thought in recent versions that improvements with formatting line studies /etc could have been introduced.

I've just read through your reply Wabbit, and to be honest, I think I need to read through it several times to take it all in.[:)]

Again, many thanks for your time.
I will reply late tomorrow.
Thank you.

The Ghost
theghost  
#5 Posted : Monday, October 13, 2008 11:30:16 PM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Hello Wabbit.

Yes, been playing about a lot with this, it's great! [:)]

It is a shame that you can't colour a line study easily.
Is this something that can be achieved with an external dll?

This is purely out of interest as I notice on your website you mention dll's,, ie
=========================
External Formulae

There are some problems which are just too complicated for the MetaStock Formula Language, so it maybe necessary to write an external function file for your solution. These files are commonly called .dll files, add-ons or plug-ins.

Quoting from the "MetaStock Developers Kit User Manual";MSX DLLs can perform calculations of virtually unlimited complexity. You have the full power of conventional programming languages like C or Pascal with all of their logic, data manipulation and rich flow-control capabilities.

=============================

Would a dll colour code a line study properly?
As a note as to why I was enquiring about Colour coding Line studies.
I was thinking of using a simple way of judging when to buy and sell (enter and exit) the market.
The coloured line study was part of the idea.
I've seen a few variations on this theme. Trouble as always is Trading Range markets,, but trend following systems do work in the long run, so a simple system with a MA crossover as a starting point is a start.
As a note, here is what I have done Wabbit.

1. Open an ordinary price chart (But Change the window to Black Background)

2. Plot Wabbit's"Coloured MA's on a Chart,,settings are;

Code:

NAME
Wabbit's Coloured MA's

Formula
{ User input }
periods:=Input("Mov Avg periods",1,2600,13);
{ Data Array }
x:= Mov(C,periods,E);
shift:= 0.9* Min(x, CLOSE);
y:=If(Mov(C,5,E)>x,x,shift);
z:=If(Mov(C,5,E)<x,x,shift);
{Plot - use points only line-style for best effect}
y; {y=Up colour Green}
z; {z= Down colour Red}
shift; {colour me the same as the chart background colour, black}

As a note, I really wanted to try using a "Displaced Moving Average,, something I've read about here;
http://olesiafx.com/Joe-DiNapoli-Trading-with-DiNapoli-Levels/14.Displaced-moving-averages-ma-dma-trend-analysis-joe-dinapoli-macd-stochastic-combination.html
I think it's something like
Code:

Ref(Mov(C,3,E),+3)


Tried many ways to implement it,, couldn't do it [:(]
Hey, Ho,,
Now, we need to make the signals even stronger. The idea is to buy on green and green, sell on red and red,, I'll explain.
Use "Expert Advisor" and create a new expert.
We can colour the price bars, Green for up, Red for down.

Expert Name
Coloured Bars
HIGHLIGHTS
==========
NAME:-UP
=========
CONDITION:-
==========
HIGH>Ref(Mov(C,3,E),-3) AND HIGH > SAR( 0.02,0.2 );
COLOUR:- GREEN
================
================
NAME:- DOWN
============
CONDITION:-
LOW<Ref(Mov(C,3,E),-3) AND LOW< SAR( 0.02,0.2 );
===============
COLOUR:-RED
===============
===============
NAME:-GAP UP
CONDITION:-
LOW>Ref(Mov(C,3,E),-3) AND LOW < SAR( 0.02,0.2 );
===============
COLOUR:- WHITE
===============
===============
NAME:-GAP DOWN
CONDITION:-
HIGH<Ref(Mov(C,3,E),-3) AND HIGH > SAR( 0.02,0.2 );
================
COLOUR:-WHITE
===========================
===========================
SYMBOLS
=========
LONG WARNING
==============
CONDITION:-
HIGH<Ref(Mov(C,3,E),-3) AND HIGH > SAR( 0.02,0.2 );
==============
GRAPHIC:-
THUMBS DOWN
COLOUR:- BLUE
=====================
=====================
SHORT WARNING:-
CONDITION:-
LOW>Ref(Mov(C,3,E),-3) AND LOW < SAR( 0.02,0.2 );
==============
GRAPHIC:-
THUMBS DOWN
COLOUR:- BLUE
====================================
=====================================
As a note I did use a 3x3 MA(A Displaced Moving Average),, been reading alot on MA's, adaptive etc etc,, and this seems in short term trading to line up quite well, I believe it's something based on some work by Mr.Di Napoli
So, now,, you have a price chart, buy only when Coloured Line is Green and price bar is green also.
Sell only when Coloured Line is Red and Price bar is red.
Sure,, you would have to "tweak" this for range bound days, or have clearly defined exit rules, ie if price breaks a 3 bar low,, or filter entry and exit with MACD confirmation,, or exit with BBand Confirmation etc.
But on the whole, w[censored]ver implements this on a price chart will see that it works rather well.
Need to find charts that trend well,, so a system exploration for trending stocks would be good,, to find charts that marry this approach.
I suppose maybe looking for charts that return high pts values for macd using the system tester etc.
Anyway, many thanks again Wabbit.
Try the above out, it works quite well,, but only enter red with red, or green with green.

Again, many Thanks Wabbit
All the best
The Ghost
wabbit  
#6 Posted : Tuesday, October 14, 2008 2:52:03 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi again Ghost,

Displaced moving averages (or any other indicators) are not new ideas; in fact people have been playing around with the position of the indicator on the chart for just about as long as the indicator itself has been around. The most important part to remember when displacing indicators is NOT to move the data into the future! In MS, when using the Ref() function make sure to only use information which is available at the time, i.e. only use negative values for the shift parameter. If you use a positive value, you are telling MS to use a value from the future and without the aid of a crystal ball or time machine, this is impossible.

I digress...

Williams uses displaced moving averages in his Chaos Alligator functions:
Code:

jaw:=Ref(Wilders(MP(),13),-8);
teeth:=Ref(Wilders(MP(),8),-5);
lips:=Ref(Wilders(MP(),5),-3);

{plot}
jaw; {blue}
teeth; {red}
lips; {green}


Notice in the above code that all of the shift arguemnts in the Ref() functions are negative i.e they do not use any forward referenicng.

The code you might be looking for for DiNapoli's displaced MA's could look similar to:
Code:

3x3:=Ref(Mov(C,3,S),-3);
7x5:=Ref(Mov(C,7,S),-5);
25x5:=Ref(Mov(C,25,S),-5);

{plot - colour as required}
3x3;
7x5;
25x5;


Armed with some more knowledge, you should be able to continue working with the development of your trading system?


Hope this helps.

wabbit [:D]




theghost  
#7 Posted : Tuesday, October 14, 2008 2:36:15 PM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Many thanks again for your reply Wabbit, I am very grateful.

I feel a debate coming on! [:)]
As it stands, with some testing, the code (Your code), now looks like this;

Code:

Name
Coloured MA Line

Formula
periods:=Input("Mov Avg periods",6,2600,13);
slowMA:= Ref(Mov(C,periods,S),+3);
fastMA:= Ref(Mov(C,5,E),+3);
shift:= 0.9* Min(slowMA, LOW);
up:=If(fastMA>slowMA,slowMA,shift);
dn:=If(fastMA<slowMA,slowMA,shift);

{Plot - use points only line-style for best effect}
up; {green}
dn; {red}
shift; {colour me the same as the chart background colour}


Here's the debate part.
It is with regards to "Displaced MA's, and trying to look ahead of time, into the "Future"
You quote Wabbit;"The most important part to remember when displacing indicators
is NOT to move the data into the future!"

Well, I know 100% my knowledge on trading and formulas etc is far below your levels
and time spent in this area.
That said, hey, I do have an opinion and would like to dare I say it, disagree with your
above statement, or at least voice my opinion (As, IMO that is part of what forums are about,
having an opinion and sharing it to encourage debate).

If I may put another point of view across please.
You say ; and I quote again;
"The most important part to remember when displacing indicators
is NOT to move the data into the future!"
Well, is that not what pro traders try to do? Predict the future?
In my limited experience I've always focused on the left hand part of the chart,
when really 50% should be in a predictive mode, trying to plot what will/MIGHT happen
to the right of the chart.
We look left at recent support lines, resistence lines etc, but isn't the idea of indicators
also to use if possible (Or any other information predictively?)

Some examples;
Predictive
1. MACD Histogram. I've looked at loads of different MACD Settings. The 1 I'm sticking to
is a setting of 8/21/8,, seems to get in about 2 bars sooner than traditional MACD, yet still
retain it's qualities. (Looked at lot's, and I mean lots of different settings, many draw similarly).
But, MACD in my opinion should be plotted on top of dual coloured histogram.
Reason I mention this,, the histogram should be used PREDICTIVELY. Never wait for a MACD
to cross it's signal line, (IMO), Histogram shows you visually, when price SHOULD TURN, a LEADING indicator, PREDICTIVE.

2. TIME. Certain times of the day are renowned for turning points or increases in volume, again PREDICTIVE.

3.Fibonnacci Retracements - Projections,, again, Predictive.
4. MACD Divergences - (I'm sure Dr. Alexander Elder said something along the lines of that
MACD Divergences are 1 of the strongest signals in TA).
5. Dr. Alexander Elders "Safety Zone", written by Jose,, again, (Actually this is great stuff and definitely needs some closer scrutiny)
but you can set a stop PREDICTIVELY, 1 day forward
6. Using Oscillators, in a PREDICTIVE mode, selling when it looks like a stock is overbought, buy when it seems oversold. Basically you are PREDICTING the turning points
5.PSAR,, this is a hard one. I've seen some posts relating to this, 1 in articular that Patrick answered and his code interpretation in answer to the question was huge (My Scroll wheel was on fire):-), not easy to understand,, but in a way, as a stop loss system, it is kind of being predictive,
(I think,, actually, this is debatable, in metastocks pro 10 manual page 460, it does quote as using the "ZigZag function),, which is ,,,well, I'm not too sure actually,,
lets just say I don't like to here those words "Zig Zag" mentioned when an indicator is built :-)
I do need to understand this function better, but that's another story.

So, we can use TA, price in a predictive way. My Idea for the "Coloured MA line" was to use it in tandem with the coloured price bars based on certain criteria (As mentioned earlier in post; by the way, this was a starting point, other more defined rules to be added); but to use the MA's in a more PREDICTIVE way.

I've looked again at many MA's, many good ideas I've found;
Some great EMA's on Jose's website; http://www.metastocktools.com/
Also adaptive MA's (Mr. Kaufman) etc etc.

Out of all the samples I've tried, Mr. DiNapoli's DMA just struck a cord with me.
Anyone interested, please read here;
http://olesiafx.com/Joe-DiNapoli-Trading-with-DiNapoli-Levels/14.Displaced-moving-averages-ma-dma-trend-analysis-joe-dinapoli-macd-stochastic-combination.html
Two things struck me on reading this.
1. DiNapoli Quotes like;
"I arrived at the DMAs cited above over a period of about two and a halfyears,
cranking them out on a CPM based computer using an 8088 chip. I studied thousands of charts,
in all manner of markets, in all types of conditions.
I tried every kind of MA I could imagine and have programmed."

2. "Therefore in keeping with my primary directive, i.e. keep everything as simple as possible, I stuck with simple DMAs."
"Rather than plotting a given Moving Average, calculated today, on today's date, you simply plot the identical value at a different, later date, hence the term "displaced." The displacement is on the time axis, not the price axis.
For the visual learners among you, the arrow in the following chart shows that the same Moving Average is simply placed FORWARD in time."

So, it seems that Mr. DiNapoli uses a DMA place FORWARD in Time.
I've looked at quite a few charts with this in mind. The 3x3 being the most accurate in a PREDICTIVE sense, as it is the shortest time frame, (This is with a short term trading view point by the way, my trading style, day trading, not long term hold), but when used in conjunction with a another MA(Slower), it does give what appears to be some quite PREDICTIVE results.
I know you will never ever be able to capture the very top and bottom of every move.
A "Holy Grail" system doesn't exit.
But, using this DMA (+3 settings NOT -3)(Incorporated in the "coloured MA Line Study" with the coloured line price chart (Buy green and green/ sell red and red)
does seem to give you a good chunk in the middle of the move.
Please.
It is worth taking a closer look at.
If you open any chart (Now I have open "Alexanders"usALX(EPIC CODE) only up to 8-03-2007 (As this ways on disk, I don't have real time data feed yet [:(]
Try this formula 1st for the Coloured Line Study (BUT ALSO USE THE COLOURED BARS WITH EXPERT ADVISOR AS MENTIONED BEFORE IN THE POST
Code:

{ User input }
periods:=Input("Mov Avg periods",1,2600,21);
{ Data Array }
x:= Mov(C,periods,E);
shift:= 0.9* Min(x, CLOSE);
y:=If(Mov(C,5,E)>x,x,shift);
z:=If(Mov(C,5,E)<x,x,shift);
{Plot - use points only line-style for best effect}
y; {y=Up colour Blue}
z; {z= Down colour Red}
shift; {colour me the same as the chart background colour}

NOW TRY IT WITH THIS PLEASE (Includes Displace MA)
Code:

periods:=Input("Mov Avg periods",6,2600,13);
slowMA:= Ref(Mov(C,periods,S),+3);
fastMA:= Ref(Mov(C,5,E),+3);
shift:= 0.9* Min(slowMA, LOW);
up:=If(fastMA>slowMA,slowMA,shift);
dn:=If(fastMA<slowMA,slowMA,shift);
{Plot - use points only line-style for best effect}
up; {green}
dn; {red}
shift; {colour me the same as the chart background colour}


A vast improvement it seems.
The one line of code which is;
Code:

shift:= 0.9* Min(slowMA, LOW);

Could be?;
Code:

shift:= 0.9* Min(slowMA, CLOSE);

Not sure, if this matters Wabbit?

So, to sum up, why not use a FORWARD, PREDICTIVE MA?? It's a short 3 period.
DiNapoli as he said looked at 1000's of charts, tried every MA, and came to stick with
a FORWARD displace MA.

I've tried searching on Google and found a bit more info on these.
To be a good driver we don't need to know how a car engine works, it's [censored]ton sizes,
weight, drag coefficient etc etc to drive it well.

Same with this Colour Coded Idea to enter and exit and stay with a trend. Coloured MA Line Study, confirmed with Coloured Price Chart.
Buy Green Green, Sell Red and Red.

KISS. (Keep it simple Stupid).

That said, if this could be somehow programmed into a system tester (the 2 different Coloured MA Line Sudies Formula's,(one with the forward +3 MA, the other without), we could get some numbers and see how it pans out on a basket of stocks.
Also,, my sample size is small.
More charts need to be looked at.
Another idea is to run some systems tests that return high pts values for trending systems and use these returned stocks in conjuction with the coloured charting and line idea, as these stocks tend to trend well, or maybe on "Efficient Stocks"
I think Van Tharp done some work in this area.
Thread here; (Worth a look)
http://forum.equis.com/forums/thread/16214.aspx

So, Wabbit, I know you have quoted "Do not move the data into the future", but,,,,
I hope some of my comments might stimulate further investigation.
I hope you don't mind me disagreeing with you.
It's not about who's right or wrong. (This one sentence could lead into a great trading psychology debate :-)

But,, just try it out if you may, it is worth a look.

Again, as always,
many many thanks for your help.
I do feel this post/ your coding has some real potential as a simple, visual
PROFITABLE trading system.

Many thanks
theghost.





wabbit  
#8 Posted : Tuesday, October 14, 2008 7:28:09 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi Ghost,

Your simple trading system is:

theghost wrote:
Same with this Colour Coded Idea to enter and exit and stay with a trend. Coloured MA Line Study, confirmed with Coloured Price Chart.
Buy Green Green, Sell Red and Red.


The problem with indicated shifted forwards by n-bars indicators is they don't have value in the last n-bars on the chart. Today is Wednesday; if using a MA shifted forward three bars on a daily chart, the shifted value of the MA today is the value of the MA next Monday! As this data doesn't yet exist, MS returns N/A i.e. it doesn't draw anything. Hence, you will not get Red/Red or Green/Green signals in your trading system.



The last bar that will contain all of your information / decision making tools will be three bars old. There is no information on the bleeding right hand edge of the chart where we trade. Trading in the past is easy; this is why any indicator which uses hindsight must be used with extreme caution when included in any trading system; these indicators forwarded Ref(), Zig(), Peak(), Trough(), LastValue() etc.

Another comment I have is on the way DiNapoli describes (in words) his use of displaced moving averages and what he shows in his graphics in his book.

Joe DiNapoli - Trading With DiNapoli Levels wrote:
Rather than plotting a given Moving Average, calculated today, on today's date, you simply plot the identical value at a different, later date, hence the term "displaced." The displacement is on the time axis, not the price axis. For the visual learners among you, the arrow in the following chart shows that the same Moving Average is simply placed forward in time.


which gives an indication that he is using forward referencing, but the image demonstrates he is actually shifting the MA to the right, i.e. shifting the indicator TOWARDS the trading edge of the chart, not away from it; so is actually using a Ref(indicator, -shift). See the attached dinapoli.gif


Hope this helps.

wabbit [:D]

wabbit attached the following image(s):
dinapoli.GIF
theghost  
#9 Posted : Wednesday, October 15, 2008 1:11:05 AM(UTC)
theghost

Rank:: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/4/2005(UTC)
Posts: 63
Location: Poole Dorset England

Many thanks again Wabbit for your reply.

I really can't believe I've missed that the MA's don't display on the far right of the chart,, the very area I mentioned so much about!
Yes, absolutely correct Wabbit.
The last 3 bars display no MA's!

I was so focused on altering the formula and comparing the chart generally in how (It Seemed) that things lined up so much better, that I didn't notice this!

I can't believe it really.
Couldn't sleep thinking about this,, still awake (Watching FTSE actually, should break 4400 later) [:)]

I do feel though that DiNapoli has worded /described DMA's badly, portraying them falsely and misleading with comments about them being "Forward".

So, my apologies on this major mistake,, I think I need a holiday,,, indicators and charts constantly in my mind! [:)]

All that said, I still think there is some value in the system as a whole.
Early days yet,, will try and tweak it with conditions etc, maybe bringing in other confirmation indicators to try and catch the middle chunks of the trending moves.
Many Thanks for your time Wabbit on this.
I will post again later, when I have time to thoroughly added and TESTED other criteria (With looking at the right of the chart this time!).[:)]

Many Thanks
The Ghost

alvinyu  
#10 Posted : Wednesday, November 12, 2008 8:11:04 AM(UTC)
alvinyu

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 11/12/2008(UTC)
Posts: 7

Hi Wabbit

I am just get attracted by this indicators .Do u have some writting on the following from Dinapoli in Metastock formula ?

Oscillator Predictor and MACD Predictor ,Detrend Price Oscillator ?

Your help is appreciated

rgds

Alvinyu

wabbit  
#11 Posted : Wednesday, November 12, 2008 3:34:04 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
No I don't.

Read his book(s) and see if you can create the indicators yourself. If you get stuck, then post your best attempt at the code along with a full explanation of what the code is supposed to be doing and an explanation of what your code is doing and I am sure someone will lend some assistance to fix the problem.


wabbit [:D]

samjohn  
#12 Posted : Thursday, August 30, 2012 6:24:03 AM(UTC)
samjohn

Rank: Member

Groups: Registered, Registered Users
Joined: 8/30/2012(UTC)
Posts: 11

Placing name of color in comment does not work and if I uncomment it, it is reported as "unknown name..." error. In all cases, color of moving average plotted remains red. What am I doing wrong.
jjstein  
#13 Posted : Thursday, August 30, 2012 10:55:12 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.