Welcome to the Traders Laboratory Forums.
Technical Analysis The technical discussion forum for traders.

Reply
Old 01-13-2010, 10:43 AM   #9

india quant's Avatar

Join Date: Jul 2009
Location: mumbai
Posts: 19
Ignore this user

Thanks: 9
Thanked 1 Time in 1 Post

Re: Fresh or First Crossover Strategies

@ john
can u share the easy language?
anyway really impressive
thanks.
india quant is offline  
Reply With Quote
Old 01-13-2010, 11:47 AM   #10

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

Hi, glad you find it interesting.
I do not have trade station, and I think this is the Easy Language base. I will do my best to point you or a volunteer coder in the right direction. Walter's and Bemac's code for the modified fan tail was I think coded for Easy Language, and other platforms on the forex thread "Walters Forex trend Trades". You may be able to search word the thread.

I have enclosed the install (as trading system) for VT Trader. You will need to refer to the notes I posted on the coding forum about the fantail alerts for more details to install. I think Quotetracker is the easiest to set up alerts via paintbar, but the custom indicator may be the problem.

Below I posted the basic code for VT and expanded the notes a bit inside {}, this does not include the input or output variable settings, they are in the attachment though. The point of attaching the code is to give an idea of how it is constructed. Basically get the code for the fantail, the ema and envelopes, set up the variables for alerts, and choose the fantail lines you want. I excluded some of the lines in the fan, for space. So hope this helps.

What the code does is to give two different ema envelopes. The fantail expansion and the 50 ema envelope price cross alerts are on one setting, that includes an alert shutoff margin. Then there is separate settings for the second 14 ema 17 pip envelope alert, and a margin shut off. I will be glad to answer questions, but there are simpler versions posted. Basically once you get this set up you can just sit back and wait for audio alerts that are set to your own specs.

{set up for EMA and first envelope}
DataBars:= Ref(Pr,-HShift);
tmpMV:= Mov(DataBars,tPr,mt);
MA:= tmpMV+((tmpMV*VShift)/100);
{Upper and lower channel of envelope}
UC:= MA + (Pips*SymbolPoint());
LC:= MA - (Pips*SymbolPoint());
{margin shut off of EMA 1}
UCC:= MA + (Pipscont*SymbolPoint());
LCC:= MA - (Pipscont*SymbolPoint());
{fan exceed variables}
LCF:= MA - (Pipsfan*SymbolPoint());
UCF:= MA + (Pipsfan*SymbolPoint());

{ second MA for 17 pip 14 ema setup variables}
DataBars:= Ref(Pr,-HShift);
tmpMV:= Mov(DataBars,tPrt,mt);
MAT:= tmpMV+((tmpMV*VShift)/100);
UCT:= MAT + (Pipst*SymbolPoint());
LCT:= MAT - (Pipst*SymbolPoint());
UCCT:= MAT + (Pipscontt*SymbolPoint()) ;
LCCT:= MAT - (Pipscontt*SymbolPoint()) ;

{second MA margin alert}
second_MA_UPPER:= Pr>UCT And Pr<UCCT;
second_MA_LOWER:= Pr<LCT AND Pr>LCCT;

{fantail above and below the envelopes}
outside_alert:=MA1>UC AND MA49<LC AND MA1<UCF AND MA49>LCF;
outside_alert_two:=MA1<LC AND MA49>UC AND MA1>LCF AND MA49<UCF;

{price above or below the first envelope}
UpTrend:= Pr>UC And Pr<UCC;
DownTrend:= Pr<LC AND Pr>LCC;

{Long/Short Entry/Exit Display Signals auto trade extra}

Buy_Signal:= Cross(MA,UC);
Sell_Signal:= Cross(LC,MA); {/// Bemac June 2006 \\\\
/ Fantail@ Variable MA's \}


{Calculate fantail modifiaction Wilders Average Directional Index [ADX] }
TH:= IF(Ref(Close,-1) > High,Ref(Close,-1), High);
TL:= IF(Ref(Close,-1) < Low ,Ref(Close,-1), Low );

TR:= TH-TL;
{--------------}

PlusDM := IF(High > Ref(High,-1) AND Low >= Ref(Low,-1)
, High-Ref(High,-1)
, If(High > Ref(High,-1) AND Low < Ref(Low,-1) AND High - Ref(High,-1) > Ref(Low,-1) - Low
, High - Ref(High,-1)
,0));

PlusDI := 100 * Wilders(PlusDM,ADXPr) / Wilders(Tr,ADXPr);

MinusDM:= IF(Low < Ref(Low,-1) AND High <= Ref(High,-1)
, Ref(Low,-1) - Low
, If(High > Ref(High,-1) AND Low < Ref(Low,-1) AND High - Ref(High,-1) < Ref(Low,-1) - Low
, Ref(Low,-1) - Low
,0));
{--------------}

MinusDI := 100 * Wilders(MinusDM,ADXPr) / Wilders(Tr,ADXPr);

DIDif := Abs(PlusDI - MinusDI);

DISum := PlusDI + MinusDI;

ADXFinal := 100 * Wilders(DIDif/DISum,ADXPr);

ADXRCustom:= (ADXFinal + Ref(ADXFinal,1-ADXPr)) / 2;

_ADX := IF( ADXtype = 0
,ADXFinal
,ADXRCustom);

{Calculate a Variable Moving Average using method devised by Tushar Chande}
Barnum := BarCount();
EmaIndex:= IF(VarMAPr > 0 ,(2 / (1+VarMAPr)) ,0.20);
Diff := HHV(_ADX, ADXPr) - LLV(_ADX, ADXPr);
MyConst := IF(Diff > 0
,(_ADX - LLV(_ADX,ADXPr)) / Diff
,EmaIndex);
MyConst := IF(MyConst > EmaIndex
,EmaIndex
,MyConst);
VarMA := IF(Barnum < ADXPr + (ADXPr * 1.5)
, Close
,MOV((((1 - MyConst) * Ref(VarMA,-1)) + (MyConst * Close)), 2, s));


{Calculte & Plot Multiple MA's of the Variable Moving Average fill in the blanks }
MA1 :=Mov(VarMA, 2,Initial_MA_Type);

MA2 :=Mov(VarMA, 4,Initial_MA_Type);

MA3 :=Mov(VarMA, 6,Initial_MA_Type);

MA48:=Mov(VarMA,98,Initia l_MA_Type);

MA49:=Mov(VarMA,100,Initi al_MA_Type);
Attached Files
File Type: zip Envelope_cross___fantail__alert_zone_four.zip (3.5 KB, 28 views)

Last edited by Eric Johnson; 01-13-2010 at 12:02 PM.
Eric Johnson is offline  
Reply With Quote
The Following User Says Thank You to Eric Johnson For This Useful Post:
india quant (01-13-2010)
Old 01-16-2010, 06:14 PM   #11

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

Today I would like to share an interesting observation and tool that I like. There is a general concept in the markets that if you have a extended width price channel, that the directional breakout will have a proportional height. It is something like the height will be at least half the width, up to the width and height being equal. That is not really the focus of the post though.

In the chart attached I want to demonstrate the optical illusion caused by adjusting the scaling of the chart. On most platforms you can scale manually on the X and Y axis. This causes distortions, making it hard to judge the angle of a trend, and width and height. These can be very disorienting as the market changes and the chart rescales. Most grid overlays are not calibrated to offset this effect either.

VT Trader has a nice tool that helps me measure. To use it, I have to activate the crosshair, and click and drag a line where I want to measure. Make sure you click in a blank space. A yellow box appears giving me real coordinates. The first unit number is the horizontal measurement, second number is vertical, third is the price level.

So to the chart, the "A" black thick line is actually longer in units than the "B" pink line (A=319 units, B=253 units). "C" is just the quick way to measure the X, Y coordinates. The distortion is due to scaling. I could re-adjust the scaling to make it look more natural if I wanted to.

This is a way to quantify your scaling and avoid mistakes like, "this trend has gone on way too far". Or looking at a trend and thinking it is a very steep breakout, but you are just vertical scaled to make it look that way. Fortunately scaling is not a problem for vertical only comparisons like a fibonbacci retracement. If you have a trained eye you can see that in the uptrend breakout (light blue arrow), it retraced near the 50% level, allowing for many traders to double this height to estimate the top.
Attached Thumbnails
Fresh or First Crossover Strategies-measure-demo.gif  
Eric Johnson is offline  
Reply With Quote
Old 01-18-2010, 10:37 AM   #12

Join Date: Jul 2009
Location: Washington D.C.
Posts: 3
Ignore this user

Thanks: 45
Thanked 0 Times in 0 Posts

Re: Fresh or First Crossover Strategies

Quote:
Originally Posted by Eric Johnson »
Hi, This is a thread to share about the idea of "fresh, or first touch". Here are the basics. The first strategy is shown with the red triangles on the "10 pip 50 ma" chart.
>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>
friarwilliam is offline  
Reply With Quote
Old 01-23-2010, 07:19 AM   #13

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

Hello, I have decided to post a plug and play install pack for VT trader. Due to the extensive set up of the many system components, I offer the simpler install pack as a way to evaluate and develop quicker. The reason I switched to forex is because the Euro trades so consistently. Anyone interested can watch the success of the system without the major set up. It can be adopted to other stocks or futures. They can also use the full fantail indicator to see Walter's system. The attachment pack has all the chart envelopes set up, 4 currency pairs, alerts, and you can put on the daily pivots if you want. This is much more complete than the alert previously posted.

VT Trader is free with quotes and backfill with a CMS demo account and download. If you are already using VT, back up your environment, as this can over write it. Once you are logged in to the platform, use the import environment option to activate the attachment that you unzipped(not RAR opened). Always say OK to the alert account questions pop up. Then you should be up and running. if you have the cross hairs activated, you can double click on each line to see what it is, delete the indicator, or modify.

The alert arrows are a "trading system", accessable by right clicking on a chart gives menu. Params , properties, and edit (outputs) are the ways to customize the alerts. You can hide the arrows, show the fantail 2 lines, and customize the sounds etc. The blue arrows are the price exceeds the 50 ema 15 (14) pip envelope, pink arrows are fantail expansion of both lines, and the white arrow is the 14 ema 17 pip envelope price cross(EUR/USD only). Pull the white horizontal line to the bottom of each chart. The fantail expansion and price exceed operate off of a single pip setting. The margin setting turns off the alert at a farther out pip level. Keep this in mind if you customize. And that the arrows will appear on contraction also.
VT just released an update version, it can be a bit buggy if you change the templates or time frames many times on a single chart. I have delayed releasing this attachment, because it is a fairly complex system. If all goes right, the idea is that you just wait for the occasional alert, make the high probability trade, and it makes things simple. Well hope it is helpful for some. I can answer questions, I have found the system very effective.
Attached Files
File Type: zip VT enviro 2 give.zip (216.9 KB, 20 views)

Last edited by Eric Johnson; 01-23-2010 at 08:04 AM.
Eric Johnson is offline  
Reply With Quote
Old 01-23-2010, 08:39 AM   #14

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

It is a bit tricky posting, here is a almost the same install pack, it has the complete many lined fantail that Walter uses. It is in the indicators as "Fantail Var MA's (1)", I wanted it posted on the last thread.
Attached Files
File Type: zip VT enviro with full fantail.zip (216.5 KB, 28 views)
Eric Johnson is offline  
Reply With Quote
Old 01-31-2010, 08:24 AM   #15

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

Hello, I was looking over the major indices to see how my old system did for predicting the recent pullback in the S&P. I had built a mega oscillator system on Quotetracker before I switched to trading forex. It can be simple, as it is based on paint bars, and it can be very complex, as it has so many built in systems. It has the TTM squeeze system, and short and long term indicators. Anyhow it is free, and you can pick and delete what you choose. It has many templates, paintbar library, and is set up for day bars, or minute scalping.
It was viewed by almost 2,000 people, but is buried deep in the coding forum so I posted a link to the thread.

http://www.traderslaboratory.com/for...ools-5174.html
Eric Johnson is offline  
Reply With Quote
Old 02-09-2010, 11:07 AM   #16

Join Date: Aug 2008
Location: Bangkok
Posts: 131
Ignore this user

Thanks: 4
Thanked 21 Times in 17 Posts

Re: Fresh or First Crossover Strategies

I keep Quote tracker on my computer to check the indices with the system I described above. I was just looking over the free backfill for MSFT and saw an example of what this system does so well. I took many of the indicator lines off and just left paintbars. The red line up shows where long term and short term indicators are showing the following. It is time for the market to lose momentum. This can either be a reversal coming, or 50% of a longer trend. In this case, near the white vertical line, it was an early warning that a 50% level had been reached. Notice how early it came in and how the market reacted, by doubling the level before making a major pullback.

The green paintbar line up to the left shows a bottom nicely. The other red line up is not counted, because it was caused by a price gap. For advanced observation, the green lineup of July 08 is at the 50% level of the down trend that lasted for that year.
Attached Thumbnails
Fresh or First Crossover Strategies-msft-clean.png  
Eric Johnson is offline  
Reply With Quote

Reply

Tags
envelopes, fresh, reversals

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who Wants a Fresh New Look? ckait Automated Trading 2 09-07-2009 03:32 PM
Need Help with Hull MA Crossover Strategy clbradley Automated Trading 8 04-13-2009 01:48 AM
I am excited, sleep less, still fresh walterw Trading Psychology 14 11-18-2007 07:16 AM
Fresh on the scene thundertrader Forex Trading Laboratory 19 07-30-2007 06:06 PM
Short Covering and Fresh Buying Soultrader Technical Analysis 0 02-28-2007 12:49 PM

All times are GMT -4. The time now is 03:02 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.