Price to action especific

2020.06.29 指标 专家

指定

I already started doing it but I couldn't finish the EA. Need help. see the attachment


I want an EA with the following functions:


I want to determine that you buy or sell at a certain price: Example. I give a value (price line = R $ 12.10) If a 5min candle closes above the price line, example: $ 12.15 and the maximum for that candle was $ 12.20. In the next candle the EA will buy 200 lots, overcoming the highest price of the last candle + (price to active = $ 0.01) = $ 12.21 and placing the stop loss at the lowest price of the last candle - price to active. (example: lowest price of the last candle $ 11.90 - 0.01 = $ 11.89 stoploss).
The first partial, will be, the purchase price + the difference of the buy price from the stop price (12.21 - 11.89 = 32 cents = $ 12.53) so the takeprofit 50% of the lot. (sell 100/200 lots)
The second partial will be determined by fixed value or trailingstop or breakeneven

Main parameters
Trading strategy
1. Time Candle (m1, m2, m5, m16, m60, h1, h4, d, w)
1. PIP / Cents / Points (can use bond, forex and futures)
2. lot (200)
3. price line ($ 12.10)
4. price to active ($ 0.01)
4. buy / sell / buy and sell

5.% of the batch of the first stopgain (10%, 20%, 30%, 40%, 50, 60, 70, 80, 90, 100%)

6 second stop gain: ($ 15.50) or 0 (inactive) example

** breakeven withoutloss
movingwkuse - enable true / off
levelWloss - distance from the open price to profitable SL
LevelProfit - number of points gained by positions to use
UseMiddleBreakEven - common breakeven for all deals


** traillingstop
trailstopUSE - enable true / false
ifprofitTrail - only for profitable positions
traillingstop - distance trailing stop
TrailingStep - trailling stop modification step

** time trade opition
Enable work on time - true / false
open hour
open minute
close hour
close minute

*** Close all when profit or loss

type of close - dollar / point / pip
closeProfit - close all position when total profit - true / false
priftitesss- number of units for closing profit
Closeloss - true / false
lossss - the number of units for closing loss

*** Limiting loses profit
LimitFor - day / week / mouth / year
LimitType - dollars, point, pip
Limitforlosses - loss limit units

limitforprofit - Profit limit in units

附加的文件:

MQ5
Hedley_EA.mq5
40.2 Kb

反馈

1
开发者 1
2020.06.30
等级
4.76
(45)
项目
56
7%
仲裁
13
38% / 46%
逾期
3
5%
繁忙
2
开发者 2
2020.06.30
等级
5
(5)
项目
9
0%
仲裁
6
17% / 67%
逾期
3
33%
已载入
3
开发者 3
2020.06.30
等级
0
项目
0
0%
仲裁
0
逾期
0
空闲
4
开发者 4
2020.06.30
等级
0
项目
0
0%
仲裁
0
逾期
0
空闲

项目信息

预算
30+ USD
开发人员
27 USD

客户

所下订单1
仲裁计数0