İş tamamlandı
İş Gereklilikleri
Dear programmers,
Double Grid EA
Live example:
1. At 8:30h (ENTRY) the EA opens two positions (1.2000), a BUY and a SELL of 0,1 lots (LOTS), both, with a SL of 20 pips (GRID) and without TP. *ALL ORDERS WILL HAVE A SL OF 20PIPS*
2. Immediately at (8:30h) the EA creates 4 orders:
>2 at +20pips (1.2020) one Sell Limit and one Buy Stop (both with a SL of 20pips).
>2 at -20pips (1.1980) one Buy Limit and one Sell Stop (both with a SL of 20pips).
(Every time the price reaches a new 20pip level (GRID) repeat num. 2.)
3. The balance of the account in USD (i.e. 1000USD) at the start of the day 8:30h has to be kept in a memory for a later calculation of the actual profit.
4. Let’s suppose that the price goes up for 20pips (1.2020) (GRID), in that moment the SL of the SELL will execute, and two new positions will be executed from the previous orders created at
point 2, one Sell and one Buy. The BUY and SELL orders that are at level (1.1980) will be deleted and viceversa.
In this moment we will have 3 positions: 2BUYS (1.2000) and (1.2020) and 1SELL (1.2020)
5. Repeat point number 2. In example, every time the price reaches a new grid level, 4 orders will be created as explained in point 2.
6. When the balance of the account has reached 50usd (TARGET) from the initial balance (1050USD), all positions will be closed at market and the pending orders will be deleted.
No more orders or positions will be opened until next day at (8:30h) (ENTRY)
7. If the balance does not reach the (TARGET) the will countinue operating until (EXIT) (i.e. 21:45h) and then close all positions and pending orders.
VARIABLES:
1. Lot size (LOTS)
2. Starting time (ENTRY)
3. Closing time (EXIT)
4. Grid distance and SL for all positions (GRID)
5. Balance target in usd for the day (TARGET)