Stochastic Oscillator EA v2


About the Stochastic Oscillator

The Stochastic Oscillator Indicator was developed in the late 1950s by Dr. George Lane . The term stochastic refers to the point of a current price in relation to its price range over a period of time. The stochastic oscillator show 2 lines (Main and Signal line) and s support and resistance level. He is included in Metatrader. The default settings are: K% 5, D% 3 Slowing 3.

Trade logic of this forex robot

The Stochastic Oscillator EA is a forex robot based on the Stochastic Oscillator with its Main Line, Signal Line and the Support and Resistance levels. He included 5 Stochastic based entry and 3 exit strategies.

Entry Strategies:

  • Crossover in Oversold/Overbought Level: Trades if the Main and Signal lines crosses above or below the Support and Resistance levels.
  • Main Line BreakIn: Opens a long trade if the Main Line breaks into the above Level. Vice versa for short trade.
  • Main Line BreakOut: Opens a long trade if the Main Line breaks out of the above Level. Vice versa for short trade.
  • Signal Line BreakIn: Opens a long trade if the Signal Line breaks into the above Level. Vice versa for short trade.
  • Signal Line BreakOut: Opens a long trade if the Signal Line breaks out of the above Level. Vice versa for short trade.

Exit Strategies:

  • Exit On Crossover: Closes the trade on a crossover of the main and signal lines.
  • Main Line BreakThrough: Closes the trade if the Main Line crosses the predefined level.
  • Signal Line BreakThrough: Closes the trade if the Signal Line crosses the predefined level.

Stochastic Level Mode

If you set the Stochastic Level Mode to “Use only buy level” the Sell Entry Level and Sell Exit Levels will be calculated based on the Buy Levels like this:
Sell Entry Level = 100-Buy Entry Level. Sell Exit Level = 100-Sell Entry Level.

Included functions

All versions have variable Magic Number, Take Profit, Stop Loss, Lot Size and Slippage.






More information

  • You can install the product on limitless demo and live accounts.
  • Note that this Expert Advisor does not draw any indicator on the chart.
  • You do not understand all the functions? Take a look at our function glossary.
  • The license of every product you download is time limited, but you can re-download newer versions any time in your purchase history.
  • Version

    MT4 Basic v2.00
    MT4 Advanced v2.00
    MT4 Pro v2.00
  • Changelog

    Sep 22, 2016:

    Added: Has now 5 Entry Strategies
    Added: Has now 3 Exit Strategies (Advanced and Pro)
    Added: Reverse On Opposite Signal (Pro version)

    May 24, 2016:

    Added: Exit Strategy in Advanced and Pro version
    Added: Stochastic Level Mode

    Jan 13, 2016:

    Minor updates and fixes in all MT4 versions

    added: ATR Trail to MT4 Pro version

    Mar 17, 2015:

    Initial release MT4 Pro

    Apr 11, 2015:

    Some improvements in all MT4 versions Added “Max once per Bar” function to all MT4 Advanced and Pro versions

    Feb 07, 2015:

    Initial release MT4/MT5 Basic and Advanced

53 thoughts on “Stochastic Oscillator EA v2

  1. Hello,

    Is it possible to only enter a trade if there was a recent 100 over 200 MA crossover with this EA?


    1. No, you only have the options to add one Moving Average as a filter and the EA will only trade if the price is either above or below it. A MA Cross as filter would require a custom modification.

  2. Hi Yannick, I have the following problem. I have the EA working from 7:00 to 22:00 every day, but at the end of the day any open position doesn’t close on the next crossover and remains open. Can you fix it?

    1. I just checked the source code and the exit strategy is not time filtered. Do you have the latest version 2.00?

  3. Hi Yannick, it would be nice to add a news avoiding function in your Stochastic Oscillator EA soon. It will save us from a lot of trouble. Thanks

  4. Yannick, all I want to know is, if I want to open order at crossover, also close at crossover, in both way long/short, any place on stochastic, what parameter do I have to put in, Buy Entry Level, Sell Entry Level, Buy Exit Level and Sell Exit Level?

    1. Set the BuyEntryLevel to 100 if you want to enter a buy trade on all Crossovers below that level (SellEntryLevel to 0).
      The ExitOnCrossover strategy does not need the ExitLevels. It will close the trade on the next crossover.
      Please also take a look at the CloseOnOppositeSignal function.

      1. Thanks a lots, Yannick, today I founded he doesn’t worked on money management but he used to worked that task last week.

          1. 0.5, 1.0 lot size at 10 % risk (true, but open constant 0.5/1.0), when tried with 0.01 lot with 20 % risk he still open 0.01 lot size, my ACC is micro.

          2. It is difficult to help you with this in the comment section. Please open a new topic in the forum and provide your settings and some information about your account.

  5. hi

    i need an exper advisor based on the stochastic osc and EMA, moving average cross over, do u have it or can u built it?

  6. Hello,

    Yannick, I tried this awesome EA which is a long time I wish to have something like this, open and close position, its work well just for open position, but something lag or I mean its not closed the ordered at the any specified condition after profit, would you find out what is wrong, with my set up or something else? Do it it have to set exit level when set exit condition when crossover or, please help.


  7. Hello, this is what I have been looking for. But I would like to use it only for exiting a trade. I would manually open it. Is this possible?

  8. Hello, how do I set the time to trade ? Default setting is zero for start and end ? please guide. I am in India.

  9. hello, I want to purchase the stochastic EA. does it have a trailing stop option. I am already trying out the free version on a cent account and I am quite happy withit.

  10. Yannick, is it possible to select the timeframe of the MA filter on the Stoch EA. EA trades 1 hour on 15 min chart and uses the 15 min MA or trading 15min chart and MA in the direction of 1 hour Stoch.

  11. Hi Yannick,
    Please help me understand the Exit Strategy. what do mean by Buy Exit Level and Sell Exit Level.
    Thanks in Advance

    1. You can define 2 exit levels. Example: if you enter a buy trade below the 20 line and the buy exit level is set to 60, the trade will be closed as soon as the stochastic reaches the level of 60.

      1. What’s the meaning ‘the license of every product you download is time limited’? Is it means when the new version release I should purchase the new one?

        1. Each file you download is limited to a certain time to make sure you always use the newest one. You can download new versions for free.

  12. Hi, am interested in Stoch EA. is it compatible with ECN brokers? since ECN brokers do not accept orders with SL and TP. does the EA add the SL and TP at the next tick?

    1. You have to go through the normal purchase process. Purchase > Checkout > Fill in the form > Purchase

  13. Can you tell me please,
    regarding your Stochastic Oscillator, meta4, Pro,
    i try you demo in mt4 free but am not see good prominence, can i see your meta4 Pro version live trading detail statement please ?


  14. Does the inverse strategy initiate trades on the same cross, i.e. crossing support from above or resistance from below. I bought your EA but am looking for an inverse stoch strategy that initiates a sell when stoch crosses down from above resistance and initates a buy when it crosses up from below support. Any way to use this EA to do that?
    I would also like to add an MACD filter (+ only when buying, – only when selling)
    This is the closest I’ve gotten to any EA that would do this for me. Could I pay you to Mod it for these specs?

    1. The inverse strategy works exactly the same way as the normal strategy does, but it only opens a sell trade instaed of a buy trade and a buy instaed of a sell.
      I am not planning to add a MACD filter. But I can make a modification for you. Please contact me here.

  15. Hello. I am looking for an EA that will alert me if the 100,10,10 stoch crosses above the 80 level or below the 20 level. Will I be able to do this based on your EA? Do you have an email alert to inform me of the crossing of either level? Thanks.

    1. You can use this EA on every currency you like. The EA is not programmed for on specific currency.

Leave a Reply

Your email address will not be published. Required fields are marked *