Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF for Elder Impulse System Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
rayok
Posted : Tuesday, February 1, 2005 5:25:57 AM
Registered User
Joined: 11/28/2004
Posts: 14
Elder gives a pcf for the Impulse System in Internet Trader Pro.
I have no idea of programming so I am asking is it possible to get a pcf on this
It consists of 2 formulas--one for buy signals; one for sell signals
Elder states the best way to see the system is to program the buy and sell signals in different colours. s this possible

rayok
Craig_S
Posted : Wednesday, February 2, 2005 8:18:25 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
From what I could gather the system is based on the direction of an exponential moving average and a MACD histogram. Does this sound right?

- Craig
Here to Help!
rayok
Posted : Thursday, February 3, 2005 5:14:43 AM
Registered User
Joined: 11/28/2004
Posts: 14
Craig,
Impulse System uses EMA to find uptrends and downtrends, and MACDH
It flags those bars where both inertia and momentum point in the same direction
The PCF given for "Internet Trader Pro" is
for buy signals
AlertMarker(mov(c,13,e)> ref(mov(c,13,e),-1) and fml("MACD-Histogram")> ref(fml ("MACD-Histogram"), -1), Below)
for sell signals
AlertMarker (mov (c,13,e)< ref (mov (c,13,e), -1 and fml ("MACD-Histogram") < (fml ("MACD-Histogram"), -1), Above)


Can it be colour coded ?
Tanstaafl
Posted : Friday, February 4, 2005 11:34:41 AM
Registered User
Joined: 10/7/2004
Posts: 799
Location: Duluth, GA
Presuming that you want to use the standard 12,26,9 settings for the MACD Histo:

Buy signals:

XAvgC13 > XAvgC13.1
and
XAvgC12-XAvgC26 - XAvg(XAvgC12,9) + XAvg(XAvgC26,9)
>
XAvgC12.1-XAvgC26.1 - XAvg(XAvgC12.1,9) + XAvg(XAvgC26.1,9)

Sell signals:

XAvgC13 < XAvgC13.1
and
XAvgC12-XAvgC26 - XAvg(XAvgC12,9) + XAvg(XAvgC26,9)
<
XAvgC12.1-XAvgC26.1 - XAvg(XAvgC12.1,9) + XAvg(XAvgC26.1,9)

I'm not sure what the "below" and "above" and "AlertMarker" syntax means - I presume they are related to formatting.

Jim Dean


rayok
Posted : Friday, February 4, 2005 11:32:14 PM
Registered User
Joined: 11/28/2004
Posts: 14
Thank you for this Tanstaafl. I have not as yet tried to install to install the formula.
The "above " , "below" relates to how the system appears on the chart he was illustrating.
When the system is giving buy signals it placed a dot immediately above the price bar .
When giving sell signals it places dots immediately below price bar.
When there is no buy or sell signal generated there are no dots.

The colour code was suggested as a way of of doing away with the dots and making it easier to identify.
I hope this is clear, thankyou for your trouble
rayok
Posted : Friday, February 4, 2005 11:37:38 PM
Registered User
Joined: 11/28/2004
Posts: 14
Tanssaafl, Sorry ,I got that around the wrong way .The sell is above and buy below ie.the same place as trendlines
Bruce_L
Posted : Saturday, February 5, 2005 12:06:26 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
rayok,
One technique I’ve used to point to places on a price chart where a Boolean condition is met is to plot the formula not as a Custom Percent True, but as a normal Custom Indicator. I’ve converted Tanstaafl’s Elder Impulse System formulas into forms appropriate for this purpose.

If you plot the following Custom Indicators set to Plot using price scale using two different colors, you will get a color coded indicator pointing to the bottom of any bar or candle where the condition is met (you would probably want to use a ‘C’ instead of an ‘L’ at the end of the formula if you use a line chart).

Elder Impulse System Buy Signal:
(XAVGC13>XAVGC13.1)*(XAVGC12-XAVGC26-XAVG(XAVGC12,9)+XAVG(XAVGC26,9)>XAVGC12.1-XAVGC26.1-XAVG(XAVGC12.1,9)+XAVG(XAVGC26.1,9))*L

Elder Impulse System Sell Signal:
(XAVGC13<XAVGC13.1)*(XAVGC12-XAVGC26-XAVG(XAVGC12,9)+XAVG(XAVGC26,9)<XAVGC12.1-XAVGC26.1-XAVG(XAVGC12.1,9)+XAVG(XAVGC26.1,9))*L

Most of the conditions I’ve used with this technique have resulting in widely dispersed spikes on the chart. I’m not sure it works as well on the Elder Impulse System where one of the conditions will be met as often as not. The chart ends up looking too busy for my tastes, but I thought I’d offer it as a suggestion anyway.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
rayok
Posted : Sunday, February 6, 2005 8:59:25 AM
Registered User
Joined: 11/28/2004
Posts: 14
Thank you so much for your help.It is now midnight so I will check itout in the morning
rayok
Posted : Monday, February 7, 2005 11:23:01 PM
Registered User
Joined: 11/28/2004
Posts: 14
Craig,
I must be missing something here as I cannot it to work.
I created a pcf as one unit ( I think that was a mistake)
I then created a new chart template to put it on .It was when I went to the edit indicator that I realised that it should be two separate indicators I did that but the whole pcf came across and then told me there was a formula error "missing argument" I then deleted the "sell" portion but got the same error messaage .

HELP!!
Bruce_L
Posted : Tuesday, February 8, 2005 7:52:39 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
rayok,
Which set of formulas are you trying to enter? The formulas from Tanstaafl are designed for use as a Personal Criteria Formula or a Custom Percent True. The formulas from Bruce_L are designed for use as a Custom Indicator in the top section of the chart.

In either case, you need to highlight the entire formula without the title and then copy and paste it into the formula window for the PCF or indicator. Here are some videos to get you started:

How to create a Personal Criteria Forumula (PCF)
Visually Backtesting Specific Symbols

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tanstaafl
Posted : Tuesday, February 8, 2005 10:03:14 AM
Registered User
Joined: 10/7/2004
Posts: 799
Location: Duluth, GA
Hi, Bruce:

My compliments on the neat trick of multiplying the net +1 boolean result times L to get a colored spike for each signal.

I'd suggest that it would be more visually acceptable if, instead of L, something like:
(L-(AvgH5-AvgL5)/5)
was used ... that would keep it a small distance away from the candles to make it more readable.

Further, I think that this visual technique might be more appropriate for true "spike" type CI's, which just fire at the outset of the trade such as at the point of a crossover.

If recalc time is not an issue, then possibly a combo of a spike version on the top pane for the inception, plus a "duration" version (as listed earlier in thread) on the middle pane would be the ticket.

JMHO, FWIW.

Jim Dean

I've requested in the past that TC offer a "dot" (big and small) graphic option, as well as Histo option, as user-selectable drawing styles in addition to the various line types, a la MetaStock. If you or other folks concur, please repeat those requests in the Suggestion box, so that the votes accumulate. Thanks.

Bruce_L
Posted : Tuesday, February 8, 2005 3:59:20 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Tanstaafl,
Thanks. As I mentioned in my response, I wasn't particularly happy with the way it looked on a non-"spike" Custom Indicator like this one either. I'll take a look at using (L-(AvgH5-AvgL5)/5) when I get a chance. It looks like an interested alternative.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
rayok
Posted : Wednesday, February 9, 2005 5:50:06 AM
Registered User
Joined: 11/28/2004
Posts: 14
Bruce L, I have now got it working .Thank you for your efforts.
kcaughron31
Posted : Monday, July 27, 2009 6:17:02 AM
Registered User
Joined: 3/4/2009
Posts: 160
Bruce how would you rewrite the formulas if you used tanstaafl's approach?  Also is there a way of having an audible beep when it triggers a buy or a sell?  Just asking so I don't have to watch the computer all day.
Bruce_L
Posted : Monday, July 27, 2009 12:58:22 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
kcaughron31,
If by Tanstaafl's approach you mean the alterations to the Custom Indicators suggested in his Tuesday, February 08, 2005 10:03:14 AM ET post, the formulas used in the Custom Indicators would become:

Elder Impulse System Buy Signal:

(XAVGC13 > XAVGC13.1) * (XAVGC12 - XAVGC26 - XAVG(XAVGC12,9) + XAVG(XAVGC26,9) > XAVGC12.1 - XAVGC26.1 - XAVG(XAVGC12.1,9) + XAVG(XAVGC26.1,9)) * (L - (AVGH5 - AVGL5) / 5)

Elder Impulse System Sell Signal:

(XAVGC13 < XAVGC13.1) * (XAVGC12 - XAVGC26 - XAVG(XAVGC12,9) + XAVG(XAVGC26,9) < XAVGC12.1 - XAVGC26.1 - XAVG(XAVGC12.1,9) + XAVG(XAVGC26.1,9)) * (L - (AVGH5 - AVGL5) / 5)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tanstaafl
Posted : Monday, July 27, 2009 2:41:16 PM
Registered User
Joined: 10/7/2004
Posts: 799
Location: Duluth, GA
Nice to see that those ideas are still useful.

Hi, Bruce - long time - I can see you're still holding the fort !


Bruce_L
Posted : Monday, July 27, 2009 2:45:06 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Tanstaafl,
A long time indeed! I point to quite a few of your topics rather frequently. It is nice to see you again in the forums.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tanstaafl
Posted : Monday, July 27, 2009 2:54:57 PM
Registered User
Joined: 10/7/2004
Posts: 799
Location: Duluth, GA
I've been busy with other stuff (and other software) for 2-3 years ... but I could not resist the fantastic RT Platinum Suite guaranteed-for-life deal.  Will probably be a while before I'm active again.  I've stayed generally current during the Loki/SnapSheets/Blocks (now SF), and of course TC is still it's tried-n-true self.  But I've got some catching up to do re the greatly-enhanced language (and somewhat revised GUI) that SF has.  Hello to everyone else, too!  

kcaughron31
Posted : Thursday, July 30, 2009 4:05:18 AM
Registered User
Joined: 3/4/2009
Posts: 160
Bruce or tanstaafl,  Is there a way to use a buy and sell signalin the middle pane with RSI 3.,1 instead of MACD?  I was wondering if that is possible as a custome indicator.

kcaughron31
Posted : Thursday, July 30, 2009 4:06:39 AM
Registered User
Joined: 3/4/2009
Posts: 160
The only reason that I ask is that I'm not that good with math expressions and I'm not a programmer.
Bruce_L
Posted : Thursday, July 30, 2009 9:51:36 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
kcaughron31,
I can't think of a decent way to force the Custom Indicator onto the same scale as the RSI.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

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.