Details
Free Expert Advisor 3-Stochastic Conception
Buy if
(1) (Stochastic1 main line crosses Stoch1.OversoldLevel up)
(2) and (Stochastic2 main line below Stoch2.OversoldLevell)
(3) and (Stochastic3 main line below Stoch3.OversoldLevel)
Sell if
(1) (Stochastic1 main line crosses Stoch1.OverboughtLevel down)
(2) and (Stochastic2 main line above Stoch2.OverboughtLevel)
(3) and (Stochastic3 main line above Stoch3.OverboughtLevel)
Conditions (2) and (3) are optional.
Close orders on SL, TP, reversed signal.
Free Expert Advisor 3-Stochastic Options
extern string _tmp1_ = " --- Trade params ---";
extern int AccDigits = 5;
// set 5 for all pairs if you have 5 digits after decimal
// point on EURUSD pair (1.34217 etc.)
// set 4 for all pairs if you have 4 digits after decimal
// point on EURUSD pair (1.3423 etc.)
extern bool MarketExecution = false;
// set true for ECN brokers
// true means that sl and tp will be added only after order open
extern double Lot = 0.1;
// lots volume
extern int StopLoss = 250;
// StopLoss is 100 pips
// 0 is the same as no StopLoss
extern int TakeProfit = 100;
// TakeProfit is 100 pips
// 0 is the same as no TakeProfit
extern int Slippage = 3;
// max. permissible slippage value, pips
extern int Magic = 20110207;
// unique orders ID
extern string _tmp2a_ = " --- Stochastic1 ---";
extern int Stoch1.Kperiod = 5;
extern int Stoch1.Dperiod = 3;
extern int Stoch1.slowing = 3;
extern int Stoch1.method = MODE_SMA;
// Moving Average calculation method.
// It can be any of the following values:
// Constant, Value, Description
// MODE_SMA, 0, Simple moving average,
// MODE_EMA, 1, Exponential moving average,
// MODE_SMMA, 2, Smoothed moving average,
// MODE_LWMA, 3, Linear weighted moving average.
extern int Stoch1.price_field = 0;
// Price field parameter. Can be one of this values:
// 0 - Low/High or 1 - Close/Close.
extern int Stoch1.SignalBar = 1;
// SignalBar = 0: get Stochastic1 signals from open bar
// SignalBar = 1: get Stochastic1 signals from closed bar
extern double Stoch1.OverboughtLevel = 70.0;
extern double Stoch1.OversoldLevel = 30.0;
extern string _tmp2b_ = " --- Stochastic2 ---";
extern bool Stoch2.Use = true;
// true: check Stochastic2
// false: ignore Stochastic2
extern int Stoch2.TimeFrame = PERIOD_H4;
// Timeframe of the chart (chart period).
// It can be any of the following values:
// Constant, Value, Description
// PERIOD_M1, 1, 1 minute.
// PERIOD_M5, 5, 5 minutes.
// PERIOD_M15, 15, 15 minutes.
// PERIOD_M30, 30, 30 minutes.
// PERIOD_H1, 60, 1 hour.
// PERIOD_H4, 240, 4 hour.
// PERIOD_D1, 1440, Daily.
// PERIOD_W1, 10080, Weekly.
// PERIOD_MN1, 43200, Monthly.
// 0 (zero), 0, Timeframe used on the chart.
extern int Stoch2.Kperiod = 5;
extern int Stoch2.Dperiod = 3;
extern int Stoch2.slowing = 3;
extern int Stoch2.method = MODE_SMA;
// Moving Average calculation method.
// It can be any of the following values:
// Constant, Value, Description
// MODE_SMA, 0, Simple moving average,
// MODE_EMA, 1, Exponential moving average,
// MODE_SMMA, 2, Smoothed moving average,
// MODE_LWMA, 3, Linear weighted moving average.
extern int Stoch2.price_field = 0;
// Price field parameter. Can be one of this values:
// 0 - Low/High or 1 - Close/Close.
extern int Stoch2.SignalBar = 1;
// SignalBar = 0: get Stochastic2 signals from open bar
// SignalBar = 1: get Stochastic2 signals from closed bar
extern double Stoch2.OverboughtLevel = 70.0;
extern double Stoch2.OversoldLevel = 30.0;
extern string _tmp2c_ = " --- Stochastic3 ---";
extern bool Stoch3.Use = true;
// true: check Stochastic3
// false: ignore Stochastic3
extern int Stoch3.TimeFrame = PERIOD_D1;
// Timeframe of the chart (chart period).
// It can be any of the following values:
// Constant, Value, Description
// PERIOD_M1, 1, 1 minute.
// PERIOD_M5, 5, 5 minutes.
// PERIOD_M15, 15, 15 minutes.
// PERIOD_M30, 30, 30 minutes.
// PERIOD_H1, 60, 1 hour.
// PERIOD_H4, 240, 4 hour.
// PERIOD_D1, 1440, Daily.
// PERIOD_W1, 10080, Weekly.
// PERIOD_MN1, 43200, Monthly.
// 0 (zero), 0, Timeframe used on the chart.
extern int Stoch3.Kperiod = 5;
extern int Stoch3.Dperiod = 3;
extern int Stoch3.slowing = 3;
extern int Stoch3.method = MODE_SMA;
// Moving Average calculation method.
// It can be any of the following values:
// Constant, Value, Description
// MODE_SMA, 0, Simple moving average,
// MODE_EMA, 1, Exponential moving average,
// MODE_SMMA, 2, Smoothed moving average,
// MODE_LWMA, 3, Linear weighted moving average.
extern int Stoch3.price_field = 0;
// Price field parameter. Can be one of this values:
// 0 - Low/High or 1 - Close/Close.
extern int Stoch3.SignalBar = 1;
// SignalBar = 0: get Stochastic3 signals from open bar
// SignalBar = 1: get Stochastic3 signals from closed bar
extern double Stoch3.OverboughtLevel = 70.0;
extern double Stoch3.OversoldLevel = 30.0;
We can add the following extra options
1a) Move StopLoss to breakeven when trade is in profit by X pips
cost +$45
1b) TrailingStop (standard or by fractals)
cost +$45
2a) Dynamic lot calculation (as percent of Account Balance, Accout Equity or account Free Margin)
cost +$45
2b) Dynamic lot calculation (according to Martingale theory)
cost +$95
3) Close open orders at CloseTime
or close only profitable open orders at CloseTime
CloseTime is external param
cost +$45
4) Trade time to open order from hh:mm to hh:mm
example: from 6:30 to 22:45 by ServerTime
cost +$55
5) Possibility to define work days of the week
example:
extern string _tmp3_ = " --- Trade days ---";
extern bool MondayOn = true;
extern bool TuesdayOn = true;
extern bool WednesdayOn = true;
extern bool ThursdayOn = true;
extern bool FridayOn = false;
extern bool SaturdayOn = false;
extern bool SundayOn = false;
cost +$45
6) Sound, Popup, Email alerts on open/close of an order
cost +$65
7) StopLoss, TakeProfit, TrailingStop are hidden to brokers
In this case EA uses 2 types of stops: Fake (or visible) stops and Hidden (or invisible) stops
cost +$180