• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:18pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:18pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Non-deleting Fractal to Fractal Trendlines mq4 3 replies

Horizontal Line Indicator Based On Price Close, Not Touch 2 replies

Fractal alerts based on when fractal is confirmed 0 replies

Trendline, Trendline and Trendline 4 replies

Trendline indicator (NOT Demark or fractal) 20 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 5
Attachments: Fractal based trendline indicator, horizontal fractal S/R indicator
Exit Attachments
Tags: Fractal based trendline indicator, horizontal fractal S/R indicator
Cancel

Fractal based trendline indicator, horizontal fractal S/R indicator

  • Post #1
  • Quote
  • First Post: Jun 19, 2010 12:54am Jun 19, 2010 12:54am
  •  aquaart
  • | Joined Nov 2008 | Status: Tech Analyst- Right 50% of the time | 528 Posts
Two great fractal based SR indicators.

Feel free to post your thoughts or help about these indicators.

All credit to Kang_Gun and the 2nd person who created MoutekLineNextGen for the creation of these indicators. (I could not find again where i got the 2nd indicator from.)
Thank you

The sr_KG_Sup_n_Res.mq4 produces horizontal lines as in the first picture.
These horizontal lines of support and resistance are the results of fractal highs and lows. The S/R line produced from the fractal low/high bar, will vary in length according to the timeframe the fractal is being determined from. i.e a S/R produced from the M30 fractal is much shorter than the S/R produced from the H4 fractal.


Attached Image (click to enlarge)
Click to Enlarge

Name: KG_SR_indicator.jpg
Size: 138 KB
Attached File(s)
File Type: mq4 sr_KG_Sup_n_Res.mq4   8 KB | 4,254 downloads



The 2nd indicator MoutekLineNextGenH1.mq4 produces trendlines based on a fractal thoughtline by identifying highs and lows with x number of bars left and right of the ultimate low or high. This most of the time produces trendlines from H1 fractal to H1 fractal (5 min TF with FractalOfLevel = 25), or H4 fractal to H4 fractal (5 min TF with FractalOfLevel = 97)with reasonable satisfaction. It works very very well.

Attached Image (click to enlarge)
Click to Enlarge

Name: KG AND Mouteki SR indicator.jpg
Size: 234 KB
Attached File(s)
File Type: mq4 MoutekLineNextGenH1.mq4   21 KB | 4,108 downloads


A problem arises when occasionally the FractalOfLevel = 25 fits the M30 fractal instead of the H1 fractal, as this produces M30 to H1 trendlines. These M30 fractal to H1 fractal trendlines do not produce good trendlines and affect trading.

If anyone is able to make the trendline produce H1 to H1 fractal trendlines only, or H4 to H4 fractal trendlines only on the 5 minute timeframe that would much appreciated. If not I hope the FF community like these 2 indicators that I have found to be very useful.
  • Post #2
  • Quote
  • Jun 21, 2010 10:01am Jun 21, 2010 10:01am
  •  aquaart
  • | Joined Nov 2008 | Status: Tech Analyst- Right 50% of the time | 528 Posts
You can change this:
Inserted Code
[font=Courier New][size=3]int SetTDPoint(int B) {[/size][/font]
[font=Courier New][size=3]int shift,i;[/size][/font]
[font=Courier New][size=3]bool failed;[/size][/font]
[font=Courier New][size=3]for (shift=B;shift>FractalOfLevel-1;shift--) {[/size][/font]
[font=Courier New][size=3]   failed=false;[/size][/font]
[font=Courier New][size=3]   for(i=FractalOfLevel;i>0;i--) {[/size][/font]
[font=Courier New][size=3]      if(High[shift+i]>=High[shift]) failed=true;[/size][/font]
[font=Courier New][size=3]      if(High[shift-i]>=High[shift]) failed=true;[/size][/font]
[font=Courier New][size=3]   }[/size][/font]
[font=Courier New][size=3]   if (!failed) ExtMapBuffer1[shift]=High[shift];[/size][/font]
[font=Courier New][size=3]   failed=false;[/size][/font]
[font=Courier New][size=3]   for(i=FractalOfLevel;i>0;i--) {[/size][/font]
[font=Courier New][size=3]      if(Low[shift+i]<=Low[shift]) failed=true;[/size][/font]
[font=Courier New][size=3]      if(Low[shift-i]<=Low[shift]) failed=true;[/size][/font]
[font=Courier New][size=3]   }[/size][/font]
[font=Courier New][size=3]   if (!failed) ExtMapBuffer2[shift]=Low[shift];[/size][/font]
[font=Courier New][size=3]}[/size][/font]
[font=Courier New][size=3]for(i=FractalOfLevel-1;i>=0;i--) {[/size][/font]
[font=Courier New][size=3]   ExtMapBuffer1[i]=0;[/size][/font]
[font=Courier New][size=3]   ExtMapBuffer2[i]=0;[/size][/font]
[font=Courier New][size=3]}[/size][/font]
[font=Courier New][size=3]return(0);[/size][/font]
[font=Courier New]}[/font]

TO THIS

Inserted Code
[font=Courier New][size=3]int SetTDPoint(int B) {[/size][/font]
[font=Courier New][size=3]int shift,i,a,b,c,m,FractalTimeFrame;[/size][/font]
[font=Courier New][size=3]bool failed;[/size][/font]
[font=Courier New][size=3]FractalTimeFrame=60;[/size][/font]
 
[font=Courier New][size=3]for (shift=B;shift>FractalOfLevel-1;shift--)[/size][/font]
[font=Courier New][size=3]   {[/size][/font]
[font=Courier New][size=3]   failed=false;[/size][/font]
 
[font=Courier New][size=3]   m=TimeMinute(Time[shift]);[/size][/font]
[font=Courier New][size=3]   b=((FractalTimeFrame-m)/Period())-1;[/size][/font]
[font=Courier New][size=3]   c=FractalTimeFrame/Period();[/size][/font]
[font=Courier New][size=3]   a=c-b-1;[/size][/font]
 
[font=Courier New][size=3]   for(i=FractalOfLevel+a;i>0;i--)[/size][/font]
[font=Courier New][size=3]      {[/size][/font]
[font=Courier New][size=3]         if(High[shift+i]>=High[shift])[/size][/font]
[font=Courier New][size=3]            failed=true;[/size][/font]
[font=Courier New][size=3]      }[/size][/font]
 
[font=Courier New][size=3]   for(i=FractalOfLevel+b;i>0;i--)[/size][/font]
[font=Courier New][size=3]      {[/size][/font]
[font=Courier New][size=3]         if(High[shift-i]>=High[shift])[/size][/font]
[font=Courier New][size=3]            failed=true;[/size][/font]
[font=Courier New][size=3]      }[/size][/font]
 
[font=Courier New][size=3]   if (!failed)[/size][/font]
[font=Courier New][size=3]         ExtMapBuffer1[shift]=High[shift];[/size][/font]
[font=Courier New][size=3]         failed=false;[/size][/font]
 
[font=Courier New][size=3]   for(i=FractalOfLevel+a;i>0;i--)[/size][/font]
[font=Courier New][size=3]   {[/size][/font]
[font=Courier New][size=3]      if(Low[shift+i]<=Low[shift])[/size][/font]
[font=Courier New][size=3]         failed=true;[/size][/font]
[font=Courier New][size=3]   }[/size][/font]
 
[font=Courier New][size=3]   for(i=FractalOfLevel+b;i>0;i--)[/size][/font]
[font=Courier New][size=3]   {      [/size][/font]
[font=Courier New][size=3]      if(Low[shift-i]<=Low[shift])[/size][/font]
[font=Courier New][size=3]         failed=true;[/size][/font]
[font=Courier New][size=3]   }[/size][/font]
 
[font=Courier New][size=3]   if (!failed)[/size][/font]
[font=Courier New][size=3]      ExtMapBuffer2[shift]=Low[shift];[/size][/font]
[font=Courier New][size=3]}[/size][/font]
 
[font=Courier New][size=3]for(i=FractalOfLevel-1;i>=0;i--) {[/size][/font]
[font=Courier New][size=3]   ExtMapBuffer1[i]=0;[/size][/font]
[font=Courier New][size=3]   ExtMapBuffer2[i]=0;[/size][/font]
[font=Courier New][size=3]}[/size][/font]
[font=Courier New][size=3]return(0);[/size][/font]
[font=Courier New][size=3]}[/size][/font]

in this indicator MoutekLineNextGenH1.mq4.

It will then draw trendlines through 1 hour fractals without using any 30 minute fractals on the 5 minute timeframe.......

Is there a better way of doing this?????


Does someone have the ability to do the same thing for 4 hour fractals on a 5 minute timeframe?

Or

Does someone have the ability to generalise this so that it can be chosen whether u want 4 hour fractal trendlines or 1 hour fractals trendlines on whatever minute timeframe?????

Thanks
 
 
  • Post #3
  • Quote
  • Jun 25, 2010 7:40am Jun 25, 2010 7:40am
  •  aquaart
  • | Joined Nov 2008 | Status: Tech Analyst- Right 50% of the time | 528 Posts
The above was far from perfect....

gone back to the old indicator....


If anyone can help with the above difficulty I am having that would be much appreciated....

Thanks
aquaart
 
 
  • Post #4
  • Quote
  • Jul 3, 2010 8:03am Jul 3, 2010 8:03am
  •  Byn
  • | Joined Jul 2009 | Status: Member | 45 Posts
Hey Aquaart, I see your trading on a similar style to me, and looking for a trendline indicator to go with the SKR horizontal indi.

please let me know if you find it..

Byn
 
 
  • Post #5
  • Quote
  • Jul 18, 2011 4:01pm Jul 18, 2011 4:01pm
  •  subterfuge
  • | Joined Sep 2006 | Status: Member | 81 Posts
Hi,
I cant seem to find the indicators in this thread to actually download??

I doubt it does what I am actually after, but i'd like to take a look at it.

I want something that, once to factals are drawn/made (say 2 waves up, both with decent retraces) it would then draw a trendline based on them peaks AND also extend the trendline quite alot further.

Does that make sense? Does that indicator exist, or is anyone able to code it?

thanks

Sub
 
 
  • Post #6
  • Quote
  • Jul 18, 2011 6:51pm Jul 18, 2011 6:51pm
  •  hanover
  • Joined Sep 2006 | Status: ... | 8,095 Posts
Quoting subterfuge
Disliked
I cant seem to find the indicators in this thread to actually download??
Ignored
Have another look in post #1. They're carefully hidden, but they are there!
Attached Image (click to enlarge)
Click to Enlarge

Name: 2011-07-19_1048.png
Size: 482 KB
 
 
  • Post #7
  • Quote
  • Last Post: Jul 19, 2011 3:27am Jul 19, 2011 3:27am
  •  subterfuge
  • | Joined Sep 2006 | Status: Member | 81 Posts
Quoting hanover
Disliked
Have another look in post #1. They're carefully hidden, but they are there!
Ignored
so they are! Couldn't see them for looking and in the end found it elsewhere online, lol.

Wonder how hard it would be to tweak the indicator to attempt to do what I mentioned in the previous post.
I guess you could have code that basically said, if a high fractal is drawn, then when the next high fractal is made (and only if the new high fractal is higher than the previous one), draw a trendline through the price peaks that made the fractals and extend that trendline so it runs well into the blank space of the chart.
Same for low fractals.
 
 
  • Platform Tech
  • /
  • Fractal based trendline indicator, horizontal fractal S/R indicator
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023