| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (4) | Thread Tools | Display Modes |
|
|||
|
This EA is just a clever way of drawing lines based on the CCI values as given by:
cciTrendNow = iCCI(NULL, 0, 50, PRICE_TYPICAL, i); cciTrendPrevious = iCCI(NULL, 0, 50, PRICE_TYPICAL, i+1); It has been defined previously in the code that st = 0; Then, you have if (cciTrendNow >= st && cciTrendPrevious < st) { TrendUp[i+1] = TrendDown[i+1]; } if (cciTrendNow <= st && cciTrendPrevious > st) { TrendDown[i+1] = TrendUp[i+1]; } Thus, just put in your own EA the equivalent of the CCI functions and consider it trendup signal when cciTrendNow >= 0 && cciTrendPrevious < 0 and trenddown signal when cciTrendNow <= st && cciTrendPrevious > st This indicator is nothing more but a fancy way of showing on the screen CCI crossing the 0 line. |
![]() |
| Bookmarks |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/5079-supertrend.html
|
||||
| Posted By | For | Type | Date | |
| Forums - Supertrend | This thread | Refback | 11-15-2007 07:24 PM | |
| Forums - Supertrend | This thread | Refback | 11-07-2007 10:56 AM | |
| Forums - Supertrend | This thread | Refback | 10-28-2007 08:47 AM | |
| Forums - Supertrend | This thread | Refback | 10-27-2007 04:37 PM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone have Supertrend line Please? | increase | Indicators - Metatrader 4 | 22 | 07-22-2008 07:12 AM |
| Supertrend and RSTL cross | hua | Suggestions for Trading Systems | 38 | 12-20-2007 05:06 PM |
| Supertrend as Histogram | Hopexicerat | Indicators - Metatrader 4 | 33 | 09-10-2007 10:30 PM |