| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Quote:
Thread about Parabolic SAR Parabolic SAR indicator Thread about RSI http://www.forex-tsd.com/setup-quest...indicator.html Thread about Momentum indicator Momentum indicator Thread about Divergence Divergence Indicator |
|
|||
|
double iStochastic( string symbol, int timeframe, int %Kperiod, int %Dperiod, int slowing, int method, int price_field, int mode, int shift)
Calculates the Stochastic oscillator and returns its value. Parameters: symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol. timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe. %Kperiod - %K line period. %Dperiod - %D line period. slowing - Slowing value. method - MA method. It can be any ofMoving Average method enumeration value. price_field - Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close. mode - Indicator line index. It can be any of the Indicators line identifiers enumeration value. shift - Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Sample: if(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,0 )>iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL, 0)) return(0); iStochastic - MQL4 Documentation
__________________
MQL4 programming is easy ^^ |
|
|||
|
Quote:
Marko |
|
|||
|
May be i am wrong but it should be 1 instead of 0.
because 0 is open current bar. For example: if(iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,1 )>iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL , 1)) |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/8999-stochastic-based-ea.html
|
||||
| Posted By | For | Type | Date | |
| forex tsd: Blogs, Photos, Videos and more on Technorati | This thread | Refback | 08-12-2007 01:55 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RSI ADX Stochastic | Shinigami | Suggestions for Trading Systems | 10 | 06-06-2008 03:54 AM |
| Need Help to develop new EA based on stochastic entry | abrs70 | Expert Advisors - Metatrader 4 | 2 | 11-24-2006 12:43 AM |
| stochastic | danu | Expert Advisors - Metatrader 4 | 1 | 06-21-2006 06:47 AM |
| rsi and stochastic | One | Indicators - Metatrader 4 | 5 | 04-01-2006 06:12 AM |