[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Swing lines-custom indicator


  • Date: Wed, 16 Dec 2009 12:41:59 -0000
  • From: "dbeslic" <dbeslic@xxxxxxxxx>
  • Subject: [EquisMetaStock Group] Swing lines-custom indicator

PureBytes Links

Trading Reference Links

Hello,

Could you please assist me with writng a custom indicator that will plot swing lines, with the following rules (I apologise if you have already seen this request on other forums):
 
1.	Swing lines connect either Highs or Lows of individual bars - never Open or Close.
2.	If the next bar has a higher high and a higher low (or the same low) when compared to the previous bar, then the swing line goes up connecting the high of the next bar.
3.	If the next bar has a lower high (or same high) and a lower low when compared to the previous bar, then the swing line goes down connecting the low of the next bar.
4.	If the next bar is an inside bar (lower high and higher low than the previous bar), ignore it and don't plot a line on it at all ? wait for the next bar.
5.	If the next br is an outside bar (higher high and lower low), plot a swing line on the high of an outside bar if the following bar (one after the outside bar) has a lower low than the outside bar, OR plot a swing line on the low of an outside bar if the following bar (one after the outside bar) has a higher high than the outside bar.
 
Thanks
Damien
 
 




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    equismetastock-digest@xxxxxxxxxxxxxxx 
    equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/