SYNTHETIC EQUITY TRADING EA

Specification

1.) You provide the source code of following EA:

2.) Input Signal is the EURUSD for example

3.) PART A: Moving Average Strategy with 2 MAs and a SLOPE (lookback) / Input Parameters: MA Period 1 (range 1-10, MA Period 2 (range 1-100), SLOPE lookback (range 1-5)

4.) LONG SYNTHETIC MARKET ORDER CONDITION: if symbol value MA1 crosses > MA2 and the slope of the symbol = symbol value now > symbole value now-lookback then SIG=+1

5.) SHORT SYNTHETIC MARKET ORDER CONDITION: if symbol value MA1 crosses < MA2 and the slope of the symbol = symbol value now < symbole value now-lookback then SIG=-1

6.) with every new SYNTHETIC order the past will be closed SIG=0

7.) every order produces a SYNTHETIC open equity stored with each bar in an array synt_open_equity[1....x]

7.1.) BUY: calculation of the  synt_open_equity=(symbol_value(now)- symbol_value(one back))*lots*lotsize

7.2.) SELL: calculation of the  synt_open_equity=(symbol_value(one_back)- symbol_value(now))*lots*lotsize

8.)  synt_open_equity should be showen in a graph window in the symbol chart area

8.) PART B: now the synt_open_equity array is the input signal for the next long and short trades

9.) LONG MARKET ORDER CONDITION: if synt_open_equity value MA1 crosses > MA2 and the slope of the synt_open_equity = synt_open_equity now > synt_open_equity now-lookback then BUY

10.) SHORT MARKET ORDER CONDITION: if synt_open_equity value MA1 crosses < MA2 and the slope of the synt_open_equity = synt_open_equity   now < synt_open_equity now-lookback then SELL

11.) trades will start at a given time: for example 09.00am and will close at a given time: 09.00pm ....so no overnight, only trading in the specified timeframe !!!


Responded

1
Developer 1
Rating
(406)
Projects
460
34%
Arbitration
24
42% / 46%
Overdue
6
1%
Working
2
Developer 2
Rating
(12)
Projects
16
19%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(249)
Projects
398
38%
Arbitration
82
41% / 20%
Overdue
69
17%
Busy
Similar orders
Raffaele Furnari 50 - 85 USD
Hallo zusammen, ich brauche einen Expert Advisor der am einem bestimten Zeitpunkt den man einstellen können solte von den letzten 10-20 candels das high und low erfassen soll und dan einen durch bruch dieser zone erkennen soll. In diesem moment sollte der Bot eine position öffnen mit einer voreingestellten Lotsize, sobald die position offen ist sollte der Bot einen moving Stoploos einstellen natürlich mit

Project information

Budget
80+ USD
VAT (20%): 16 USD
Total: 96 USD
For the developer
72 USD
Deadline
from 1 to 7 day(s)