| Technical Analysis The technical discussion forum for traders. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Fresh or First Crossover Strategies can u share the easy language? anyway really impressive thanks. | ||
| |
|
| | #10 | ||
![]() | Re: Fresh or First Crossover Strategies 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); Last edited by Eric Johnson; 01-13-2010 at 12:02 PM. | ||
| |
|
| The Following User Says Thank You to Eric Johnson For This Useful Post: | ||
india quant (01-13-2010) | ||
| | #11 | ||
![]() | Re: Fresh or First Crossover Strategies 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. | ||
| |
|
| | #12 | ||
![]() | Re: Fresh or First Crossover Strategies Quote:
| ||
| |
|
| | #13 | ||
![]() | Re: Fresh or First Crossover Strategies 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. Last edited by Eric Johnson; 01-23-2010 at 08:04 AM. | ||
| |
|
| | #14 | ||
![]() | Re: Fresh or First Crossover Strategies | ||
| |
|
| | #15 | ||
![]() | Re: Fresh or First Crossover Strategies 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 | ||
| |
|
| | #16 | ||
![]() | Re: Fresh or First Crossover Strategies 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. | ||
| |
|
![]() |
| Tags |
| envelopes, fresh, reversals |
| Thread Tools | |
| Display Modes | 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 |