Stochastic Oscillator, the beginning - page 20

 

Alert for Stochastic Oscillator

Hello everyone! I have recently come up with some settings of Stochastic Oscillator which applied on a 4hr chart gives some really promising results. Basically, I have attached the template in this posting too. The settings as you can see from the template is 21,9,9.

Also, I have attached an mt4 file (myStochastic.mt4) which is the code of the Stochastic Oscillator copied directly from Forex Trading Software: Forex Trading Platform MetaTrader 4 Now, what I would like to request a kind soul to help me to modify the code such that when the following criteria is met, I get an arrow on the indicator for buy / sell

1. Buy - Both %K and %D (aka the stochastic line) < 20 AND %K crosses the signal line from the bottom

2. Sell - Both %K and %D (aka the stochastic line) > 80 AND %K crosses the signal line from the top

I would be extremely grateful for the help and really appreciate it.

Thanks

Raheem

Files:
 

there are very many stochastics do this and more in this and "Indicators with alert/signal" threads

 

can anyone explain Bars... in coding

I am new in forex ea and I am not well verse in programming. But I know few thing and I am trying to understand this code

if(Bars<100){

Print("bars less than 100");

return(0);

What does Bars represents?

Thanks guys..

This is part of the EA which Newdigital posted above. Stoch_21

 
rahmanalwi:
I am new in forex ea and I am not well verse in programming. But I know few thing and I am trying to understand this code

if(Bars<100){

Print("bars less than 100");

return(0);

What does Bars represents?

Thanks guys..

This is part of the EA which Newdigital posted above. Stoch_21

Hello,

https://www.mql5.com/en/forum/178427

Book is really easy to read and understand even for people who doesn't have any programming idea.

Specifically you could read the chapter Creation of Custom Indicators.

Besides this good lessons:

MQL4 Language for Newbies. Technical Indicators and Built-In Functions - MQL4 Articles

MQL4 Language for Newbies. Custom Indicators (Part 1) - MQL4 Articles <--This one is for you

MQL4 Language for Newbies. Custom Indicators (Part 2) - MQL4 Articles

Multiple Null Bar Re-Count in Some Indicators - MQL4 Articles

 

ColourbarStoch code for William Blau's DoubleSmoothed Stch.

Hi,

I found greatl formulated Willam Blau's DoubleSmoothed Stch. but need Colourbars option on this indicator. If anyone help coding this I will appritiate very much. Thanks in advance...

 

liquid sunshine filter

(twin of rsi filter) (bucket)

https://www.mql5.com/en/forum/178733/page2

https://www.mql5.com/en/forum/178416

 

moonshine - step stoMetro (step rsi mod)

step ma sto: Igorad(2005); NK(2008)

& Hist_StepMA_Stoch_KV1_Ex_03.mq4

 

VKW_Bands -stochastic mod

Reason: