OpenHighLowClose mt4 ea

MQL4 전문가 스크립트

명시

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 )

응답함

1
개발자 1
등급
(15)
프로젝트
65
58%
중재
6
17% / 33%
기한 초과
39
60%
무료
2
개발자 2
등급
(493)
프로젝트
1022
58%
중재
30
27% / 23%
기한 초과
133
13%
작업중
3
개발자 3
등급
(164)
프로젝트
218
50%
중재
6
17% / 67%
기한 초과
11
5%
무료
4
개발자 4
등급
(491)
프로젝트
956
74%
중재
27
19% / 67%
기한 초과
101
11%
로드됨
게재됨: 1 기고글, 6 코드
5
개발자 5
등급
(182)
프로젝트
342
42%
중재
118
12% / 73%
기한 초과
104
30%
무료
게재됨: 4 코드
6
개발자 6
등급
(26)
프로젝트
45
29%
중재
2
0% / 50%
기한 초과
21
47%
무료
7
개발자 7
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
게재됨: 1 코드
8
개발자 8
등급
(12)
프로젝트
17
35%
중재
1
0% / 100%
기한 초과
3
18%
무료
9
개발자 9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
10
개발자 10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
개발자 13
등급
(273)
프로젝트
396
63%
중재
70
53% / 26%
기한 초과
198
50%
무료

프로젝트 정보

예산
20 - 27 USD
기한
에서 1  4 일