OpenHighLowClose mt4 ea

İş Gereklilikleri

Hello,


I need an ea as below: Read and tell me if you can make it.

Open High Low Close Ea Instruction:

Add OHLC  prices  of Previous 1 Candle and Divide it by 4  . The value will be the pivot .
Example:

EURUSD:  O= 1.3158 , H= 1.3198 , Low= 1.3119  Close= 1.3121 .

From this example price the ea should do the following:
Add OHLC of Prvious 1  bar /4 .
1.3158+1.3198, +1.3119 +1.3121 /4  = 1.3149 pivot .

Buy Rule:  Buy when Open xbar >Pivot 1 bar
Close Buy  if Opening    xbar < Pivot 1 bar
Sell Rule : Sell if Open xbar < Pivot 1 bar
Close Sell if Open xbar > Pivot 1 bar
Stop Loss and Take Profit= Variable
Work with 4/5 digit quotes .
Work on all time frame.
Each Tick Mode:
Lot Size Variable and ability to use mm/risk setting so user can use manual lots or mm . See the code below on how I want the mm to be like:
[4/23/2013 8:09:32 AM] siriyke: extern int MagicNumber=10001;
extern double Lots =0.1;
extern double LotsPercent =0.01;
extern double StopLoss=250;
extern double TakeProfit=500;
extern int TrailingStop=0;
extern int Slippage=3;
//+------------------------------------------------------------------+
//    expert start function
//+------------------------------------------------------------------+
int start()
{
  double LotSize = Lots;
  if(LotsPercent>0)LotSize = LotsPercent*0.01*AccountBalance();
  double MinLot = MarketInfo(Symbol(),MODE_MINLOT);
  double MaxLot = MarketInfo(Symbol(),MODE_MAXLOT);
 
  double StopLevel = MarketInfo(Symbol(),MODE_STOPLEVEL)*Point;
  double FreezeLevel = MarketInfo(Symbol(),MODE_FREEZELEVEL)*Point;
  double MaxLevel = MathMax(StopLevel, FreezeLevel);
 
  LotSize=MathMax(LotSize,MinLot);
  LotSize=MathMin(LotSize,MaxLot);
 
  int normKoef = 3;
  if(MinLot>=0.01)normKoef=2;
  if(MinLot>=0.10)normKoef=1;
 
  int k=1;
  if(Digits==3 || Digits==5)k=10;
 
  double TheStopLoss=0;
  double TheTakeProfit=0;
  if( TotalOrdersCount()==0 )

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(15)
Projeler
65
58%
Arabuluculuk
6
17% / 33%
Süresi dolmuş
39
60%
Serbest
2
Geliştirici 2
Derecelendirme
(493)
Projeler
1022
58%
Arabuluculuk
30
27% / 23%
Süresi dolmuş
133
13%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(164)
Projeler
218
50%
Arabuluculuk
6
17% / 67%
Süresi dolmuş
11
5%
Serbest
4
Geliştirici 4
Derecelendirme
(491)
Projeler
956
74%
Arabuluculuk
27
19% / 67%
Süresi dolmuş
101
11%
Yüklendi
Yayınlandı: 1 makale, 6 kod
5
Geliştirici 5
Derecelendirme
(182)
Projeler
342
42%
Arabuluculuk
118
12% / 73%
Süresi dolmuş
104
30%
Serbest
Yayınlandı: 4 kod
6
Geliştirici 6
Derecelendirme
(26)
Projeler
45
29%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
21
47%
Serbest
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
8
Geliştirici 8
Derecelendirme
(12)
Projeler
17
35%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
3
18%
Serbest
9
Geliştirici 9
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(273)
Projeler
396
63%
Arabuluculuk
70
53% / 26%
Süresi dolmuş
198
50%
Serbest

Proje bilgisi

Bütçe
20 - 27 USD
Son teslim tarihi
from 1 to 4 gün