Fractals ZigZag indicating Wolfe Waves

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #25762 quote
    Pere
    Participant
    Veteran

    Hi.

    I saw recently the Fractals ZigZag indicator (https://www.prorealcode.com/prorealtime-indicators/fractals-zigzag/#comment-2952), and thought that it would be very nice to detect Wolfe Waves on the graphics.

    Could it be posible to add a number on the last 5 points, like 1, 2, 3, 4 and 5? In this way I could see if the last 5 points fulfill the conditions of these Wolfe Waves.

    Or much better, could it be possible to automatically detect these waves and mark them on the screen?

    For those who don’t know the conditions for these kind of waves, they are as follows:

    For Up-trending waves:

    • Point 2 is a high peak
    • Point 1 is the minimum previous to the point 2
    • Point 3 is the next minimum after point 2. It should be lower than point 1
    • Point 4 is the next maximum after point 3, higher than point 1
    • Point 5 is the last minimum, the lowest one, lower than point 3.

    For Down-trending waves, exactly the inverse.

    #26192 quote
    Nicolas
    Keymaster
    Master

    Hi Petrus, very interesting. I’d like to help, but I got no enough time until the next week. Please remind me if I don’t give news next week. Maybe someone else could help in the meantime ? 🙂

    Alai-n thanked this post
    #35151 quote
    Atenoip
    Participant
    New

    Awesome idea, let us know about the progress. Thank you

    #63411 quote
    MrCrous
    Participant
    Average

    Hi,

     

    I am also interested in such an indicator.


    @nicolas
    , do you think you can have a look on this thread please?

    Thank you.

    MrCrous

    PS : Below, a code from  TS8xx, maybe just help us to find equivalent functions ?

     

    INPUTS: 
    	TICKCHG(10), {Change (number of ticks) required to set up a new swing 
    		high/low.} 
    	PCTCHG(.2), {Percent change in price to set up a new swing high/low} 
    	OCCUR(1), 
    	PLOTBARS(40), 
    	ETALINE(true), 
    	ZIGZAG(TRUE); 
     
    ARRAY: 
    	PBAR[50](0), 
    	P[50](0); 
     
    VARS: 
    	X(0), 
    	PP(1), 
    	JA_SLOPE1(0), 
    	JLA_CTR(0), 
    	JLA_LINE(0), 
    	JAIRHBAR(0), { LAST SWING HIGH BAR} 
    	JAIRLBAR(0), {LAST SWING LOW BAR} 
    	LOWSEEK(FALSE), {LOOKING FOR A LOW OR A HIGH?} 
    	W(0), {COUNTER} 
    	JLA_IRH(0), {LAST SWING HIGH VALUE} 
    	JLA_IRL(99999), {LAST SWING LOW VALUE} 
    	JA_SLOPE2(0), 
    	JA_SLOPE3(0), 
    	JLA_PT1(0), 
    	WOLFE(0); 
    {==================MAIN  
     
     
    PROGRAM=========================} 
     
     
    IF CURRENTBAR = 1 THEN P[50] = C; 
    IF LOWSEEK = FALSE AND P[50] <= H THEN 
    	BEGIN 
    	P[50] = H; 
    	PBAR[50] = 0; 
    	END; 
     
    IF LOWSEEK = TRUE AND P[50] >= L THEN 
    	BEGIN 
    	P[50] = L; 
    	PBAR[50] = 0; 
    	END; 
     
    IF (LOWSEEK = FALSE AND PBAR[50] <> 0) THEN 
    	BEGIN 
    	IF (TICKCHG = 0 
    		AND L < P[50] * ( 1 - PCTCHG / 100) ) 
    		OR (TICKCHG <> 0 
    		AND L < ( P[50] - tickchg * minmove points)) THEN 
    		BEGIN  
    			IF ZIGZAG = TRUE THEN  
    				PLOT4[PBAR[50]](P[50],"SWINGS"); 
    		LOWSEEK = TRUE; 
    		FOR W = 1 TO 49 
    			BEGIN 
    			PBAR[W] = PBAR[W+1]; 
    			P[W] = P[W+1]; 
    			END; 
    			P[50] = L; 
    		PBAR[50] = 0; 
    		END; 
    	END;  
     
    IF (LOWSEEK = TRUE AND PBAR[50] <> 0) THEN 
    	BEGIN 
    	IF (TICKCHG = 0 
    		AND H> P[50] * ( 1 + PCTCHG / 100)) 
    		OR (TICKCHG <> 0 
    		AND H > (P[50] + tickchg * minmove points )) THEN 
    		BEGIN 
    		IF ZIGZAG = TRUE THEN  
    			PLOT4[PBAR[50]](P[50],"SWINGS"); 
    		LOWSEEK = FALSE; 
    		FOR W = 1 TO 49 
    			BEGIN 
    			PBAR[W] = PBAR[W+1]; 
    			P[W] = P[W+1]; 
    			END; 
    		P[50] = H; 
    		PBAR[50] = 0; 
    		END; 
    	END; 
     
    IF TIME = LASTCALCTIME 
    		AND DATE = LASTCALCDATE 
    		AND P[48 - PP] <> 0 THEN 
    		BEGIN 
    		PP = -1; 
    		WOLFE = 0; 
    		WHILE WOLFE < OCCUR AND PP < 46 
    			BEGIN 
    			PP = PP + 1; 
    			VALUE1 = P[47-PP]; 
    			VALUE2 = P[48-PP]; 
    			VALUE3 = P[49-PP]; 
    			VALUE4 = P[50-PP]; 
    			 
    			CONDITION1 = 
    				VALUE2 > VALUE1 
    				AND VALUE4 > VALUE3 
    				AND VALUE4 < VALUE2 
    				AND VALUE3 < VALUE1 
    				AND VALUE4 > VALUE1; 
    				 
    			CONDITION2 = 
    				VALUE2 < VALUE1 
    				AND VALUE4 < VALUE3 
    				AND VALUE4 > VALUE2 
    				AND VALUE3 > VALUE1 
    				AND VALUE4 < VALUE1; 
    	 
    			IF CONDITION1 OR CONDITION2 THEN  
    				WOLFE = WOLFE + 1; 
     
    			END; 
     
    		JA_SLOPE1 = (P[49-PP] - P[47-PP]) / (PBAR[47-PP] - PBAR[49-PP]);  
    		JA_SLOPE2 = (P[50-PP] - P[47-PP]) / (PBAR[47-PP] - PBAR[50-PP]); 
    		 
    		{LINE 1-3} 
    		if PBAR[47-PP] >=0 and PBAR[49-PP] >= 0 and PBAR[49-PP]-PLOTBARS >=0 then 
    			begin 
    			VALUE90 = TL_New(DATE[PBAR[47-PP]],TIME[PBAR[47-PP]],P[47-PP ], 
    				DATE[PBAR[49-PP]], TIME[PBAR[49-PP]],P[49-PP]); 
    			Value14=TL_SetColor(VALUE90, red); 
    		{VALUE93 = TL_SetExtRight(VALUE90,TRUE);} 
    			VALUE94 = 
    				TL_SETEND(VALUE90,DATE[PBAR[49-PP]-PLOTBARS],TIME[PBAR[49-PP]-PLOTBARS], 
    				TL_GetVALUE(VALUE90,DATE[PBAR[49-PP]-PLOTBARS],TIME[PBAR[49-PP]-PLOTBARS])); //
    			end ; 
     
    		{LINE 1-4} 
    		if PBAR[47-PP] >= 0 and PBAR[50-PP] >= 0 and PBAR[49-PP]-PLOTBARS >= 0 then 
    			begin 
    			VALUE91 = TL_NEW(DATE[PBAR[47-PP]],TIME[PBAR[47-PP]],P[47-PP ], 
    				DATE[PBAR[50-PP]], TIME[PBAR[50-PP]],P[50-PP]); 
    				Value14=TL_SetColor(VALUE91, green); 
    				 
    			TL_SETEND(VALUE91,DATE[PBAR[49-PP]-PLOTBARS],TIME[PBAR[49-PP]-PLOTBARS], 
    			TL_GETVALUE(VALUE91,DATE[PBAR[49-PP]-PLOTBARS],TIME[PBAR[49-PP]-PLOTBARS])); 
    			end ; 
    	 
    		if PBAR[48-PP] >=0 and PBAR[50-PP]-PLOTBARS >= 0 then 
    	  		begin 
    			{ETA LINE} 
    			IF ETALINE THEN 
    				BEGIN 
    				VALUE92 = TL_NEW(DATE[PBAR[48-PP]],TIME[PBAR[48-PP]],P[48-PP ], 
    					DATE[PBAR[50-PP]], TIME[PBAR[50-PP]],P[50-PP]); 
    				Value14=TL_SetColor(VALUE92, blue); 
    				TL_SETEND(VALUE92,DATE[PBAR[50-PP]-PLOTBARS],TIME[PBAR[50-PP]-PLOTBARS], 
    				TL_GETVALUE(VALUE92,DATE[PBAR[50-PP]-PLOTBARS],TIME[PBAR[50-PP] -PLOTBARS])); 
    				END; 
    			end; 
    	 
    		END; 
     
     
    IF DATE = LASTCALCDATE 
    	AND TIME = LASTCALCTIME 
    	AND ZIGZAG = TRUE THEN 
    	BEGIN 
    	JA_SLOPE3 = (P[50] - P[49]) / (PBAR[49] - PBAR[50]); 
    	FOR JLA_CTR = PBAR[49] DOWNTO PBAR[50]	BEGIN 
    		PLOT4[JLA_CTR](P[49] + (PBAR[49] - JLA_CTR) *  
    		JA_SLOPE3,"Swings"); 
    		END; 
    	END; 
     
    FOR W = 1 TO 50 
    	BEGIN 
    	PBAR[W] = PBAR[W]+1; 
    	END;
    Alai-n thanked this post
    #63952 quote
    Alai-n
    Participant
    Veteran

    @MrCrous

    Hello Mr.Crous, what language is it TS8 ??? Thank you

    #63998 quote
    MrCrous
    Participant
    Average

    Hi Alai-n,

     

    I dont know if i have rights to talk about another platform here, so my message may be deleted.

     

    TS8 is Tradestation 8.

     

    BR,

    #64007 quote
    Alai-n
    Participant
    Veteran

    Ok thanks … I think you can talk about other platforms here !!! They are not sectarian 😉

    #64259 quote
    Alai-n
    Participant
    Veteran

    UP

    #64263 quote
    Despair
    Blocked
    Master

    This will be difficult to translate to PRT since it uses arrays. 🙁

    #98911 quote
    ALE
    Moderator
    Master

    Hello Guys
    if could be of your interest I’ve coded Wolf Waves indicator and screener for ProRealTime, for more information : https://www.automatictrading.it/product/wolf-waves-chart-pattern/

    [youtube]https://www.youtube.com/watch?v=OYELivrc0wI[/youtube]

    Thanks
    Ale

    Bullish-Wolf-4.jpg Bullish-Wolf-4.jpg 2019-05-16_17-55-24.jpg 2019-05-16_17-55-24.jpg
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

Fractals ZigZag indicating Wolfe Waves


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Pere @petrus Participant
Summary

This topic contains 9 replies,
has 7 voices, and was last updated by ALE
6 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/20/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...