Auftrag beendet
Spezifikation
Specifications - Stochastic Oscillator & Moving Average EA
Key data: MetaTrader 5 programming language
Instruments: for different currencies and indices
Time frame: 5 minutes chart
Settings for the EA: Volume in lot (e.g. 0.005); Lot volume per 100 USD; Stochastic Oscillator settings (see point 1 below) must also be freely configurable; Moving Average settings (see point 1 below) must also be freely configurable; In the settings of the Expert Advisor, all parameters must be adjustable which can be changed for these two indicators used ( Stochastic Oscillator + Moving Average)
Description for the development of the Expert Advisor
1. The idea of the trading system is as follows:
Positions are opened when the moving average running in a stochastic oscillator(indicator window 1) has goes to the upper level (90) or the lower plane(10) of the stochastic oscillator, the points of intersection of the MA (black line) with the (red line) when these 2 lines intersect in the 2 levels -10 or in the +90 level.
1. Trading signals:
Buy signal: The Linie of the Moving average (black line) displayed in the indicator window 1 of the Stochastic Oscillator touches the lower plane (10) of the Stochastic Oscillator. The candle must have touched the lower level (10) only once in the M5 chart – candle should to be closed in this level !!! Trigger for an Order: the points of intersection of the MA (black line) with the (red line) / only when these 2 lines intersect in the 2 levels -10 or in the +90 level.
=> closing of the buy position: If the line of the Moving Average (black line) displayed in indicator window 1 of the Stochastic Oscillator touches the middle plane (50) of the Stochastic Oscillator. The candlestick must have touched the middle plane (50) only once in the M5 chart; – candle does not necessarily have to be closed in this plane !!! This value must be changeable in the settings.
Sell signal: The Linie of the Moving Average (black line) displayed in indicator window 1 of the Stochastic Oscillator touches the upper plane (90) of the Stochastic Oscillator. The candlestick must have touched the upper level (90) only once in the M5 chart – candle should to be closed in this level !!! Trigger for an Order: the points of intersection of the MA (black line) with the (red line) / only when these 2 lines intersect in the 2 levels -10 or in the +90 level.
=> closing of the sell position: If the line of the Moving Average (black line) displayed in the indicator window 1 of the Stochastic Oscillator touches the middle plane (50) of the Stochastic Oscillator. The candlestick must have touched the middle plane (50) only once in the M5 chart – candle does not necessarily have to be closed in this plane !!! This value must be changeable in the settings.
2. Closing of the trade also possible through take profit –
during the opening of positions, a take profit is set at a fixed distance from the opening price, indicated in points.The value is set in the InpTakeProfit input parameter.
3. Position management with stop loss
A fixed stoploss isset at each position opening at a fixed distance from the opening price, specified in Points, The value is set in the input parameter InpStopLoss.
4. Other settings for the Expert Advisor
− Volume in lot (e.g. 0.005)
− Lot volume per 100 USD
− Allow Buy (true/false)
− Allow Sell (true/false)
− Number of maximum open sales positions (e.g. 3)
− Number of maximum open long positions (e.g. 3)
− Sell Reset Level for Stochastic Oscillator Indicator (e.g.. 50)
− Buy Reset Level for Stochastic Oscillator Indicator (e.g.50)
− Magnification factor of the Stochastic Oscillator (e.g. -1,-2,-3, ...)
− Open Trade After Reset (true/false)
− Stop loss in points (e.g.4000)
− Take-Profit in points (Bsp. 4000)
− Start time of the EA (e.g. 08:00)
− End time of the EA (e.g. 22:00)
− Audible Alerts (true/false)
− MagicNumber (e.g. 386204)
− Comment: (e.g. SOMA_EA)