Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 07:55 AM
smalltalk's Avatar
Senior Member
 
Join Date: Apr 2006
Location: Yogyakarta
Posts: 116
smalltalk is on a distinguished road
Stochastic based EA

Hi,

Anyone knows of stochastic based EA here in forex-TSD? I'm learning to develop my own EA so I need the mq4 example of how to reference stochastic indicator in an EA.

Regards,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-07-2007, 08:21 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by smalltalk View Post
Hi,

Anyone knows of stochastic based EA here in forex-TSD? I'm learning to develop my own EA so I need the mq4 example of how to reference stochastic indicator in an EA.

Regards,
We have thread about this indicator (including many EAs) Stochastic Oscillator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 08:45 AM
smalltalk's Avatar
Senior Member
 
Join Date: Apr 2006
Location: Yogyakarta
Posts: 116
smalltalk is on a distinguished road
Thank you ND for your swift response...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-07-2007, 01:09 PM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
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 ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 08-07-2007, 01:22 PM
Member
 
Join Date: Dec 2006
Posts: 67
marko [IRL] is on a distinguished road
Quote:
Originally Posted by Shinigami View Post
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
Thank u just absolutly clear expl. Good man.

Marko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 08-07-2007, 01:27 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
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))
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 08-07-2007, 01:31 PM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 513
Shinigami is on a distinguished road
If you use current bar information, you use 0. If you use closed bars only, you use 1. That example was taken from the posted link.
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
ea stochastic, stochastic ea


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RSI ADX Stochastic Shinigami Suggestions for Trading Systems 11 12-17-2008 09:11 AM
Need Help to develop new EA based on stochastic entry abrs70 Expert Advisors - Metatrader 4 2 11-24-2006 01:43 AM
stochastic danu Expert Advisors - Metatrader 4 1 06-21-2006 07:47 AM
rsi and stochastic One Indicators - Metatrader 4 5 04-01-2006 06:12 AM


All times are GMT. The time now is 07:33 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.