작업 종료됨
명시
Description:
I have already an EA which is opening first a buy
and sell order and after one of these orders has been closed, ea is
placing a pending order with an entry trigger.
If this pending order with trigger is executed in the market, EA is opening again and pending after the order in market is closed and so on.
EA I will send you in discussion.
EA is having right now two different opening strategies (for both Strategies –
they open first a buy and sell order) money management for both
strategies are same and should also for new strategies be the same.
What do I want now? I want a 3 Strategie of EA - Moneymanegment for all orders which are active in Market stays as it does right now.
I want if EA has placed the basis order (basis orders are the orders which are activ in the market) or when ea is new on chart and if there is already a basis order (basis order is buy and sell order) are in the Market - EA should place the following order (which EA would place after Basis order is closed) place an pending direct and not when first order is closed.
So Note - every basis (basis is orders activ in terminal) order in Terminal does have following orders in Pending Status:
first order – If there is an basis order in the market, first order will be placed as pending. first order becomes after execution an basis order
pending2 – wiht first order together pending 2 will be placed as pending. After above first order becomes an basis order this order is good for xseconds
and pending 3– with first order together pending 3 will be placed as pending. After above first order becomes an basis order this pending 3 is good for xseconds
EVERY Basis orders. This means also if first order becomes basis order -
this new Basis order does have a new first order, pending 2 and 3 and
note Pending 2 and 3 never becomes a basis order and EA should also handel pending 2 and 3 not as basis.
Trigger
of first order pending should be active when basis order is closed (in actual strategy 1 and 2 pendings are alredy triggered).
Trigger should work as he does right now. Trigger does change limit of
First order and Pending 2 and 3
Again: So if there is a basis buy or,
and a sell order in the market. EA should place for each basis direct a
first order and if active Pending 2 and pending 3 as pending.
Trigger of the pending (first order) should be active if basis order is closed. If trigger does change limit of first order – limit of pending 1 and pending 2 has to be changed too.
Distance of pending (first order) is: actual TP of first order plus input double PendingOrderPips=100; - So not TP of first order is changing - so TP of pending has to be updated.
Lots- same as first order
Also, I want this third Strategie set as active and inactive
The third strategie does also have another function which will be explained now.
To
the first pending in pending status should be placed a pending 1 and
pending 2 this pending 1 and pending 2 are good after first order
becomes as basis good for x seconds.
The pending 2 and pending 3 should be placed with same lots or Multiplier lots from first order. But xpips away from first order pending (note first pending limit does change –
so pending 2 and pending 3 limits has to change too) and pending 2 and
pending 3 should be after first order is in the market good for xseconds.
Pending 2 – does not reopen - Reopen does only Basis not pending 2 and 3
xpips away from first order pending - 5 pips
Multiplier from first pending
TP – should be used from sets – TP management should be done as EA does do right now for Basis order.
Good for x seconds- 15sec after first order becomes as Basis. Means first order is placed in market
Pending 3 – does not reopen - Reopen does only Basis not pending 2 and 3
xpips away from first order pending - 10 pips
Multiplier from first pending
TP – should be used from sets – TP management should be done as EA does do right now for Basis order.
Good for x seconds- 15sec after first order becomes as Basis. Means first order is placed in market
After
the seconds for pending 2 and Pending 3 are activated (activated is
when first order becomes Basis) are gone pending 2 and pending 3 should
be cancelled.
Note reopening works only for Basis order – First order becomes after execution a Basis order. Pending 2 and Pending 3 also if executed does not be reopened.
EA does always handel his Basis buy and sell order. After
one of this basis buy and sell order is closed there will be the basis
buy or sell order triggered as first order in pending status and opened than in the market as basis order.
Example
We have 4 orders possibilities for each direction buy/sell
1 order is opening order of EA - this is BASIS order
If an basis order is active then direct will be placed
2 first order
3 if active Pending 2
4 if active Pending 3
If
now Basis is closed first order pending start trigger and will be
opened in the market and becomes a basis order. After first order
becomes active and a basis order Seconds for pending 2 and pending 3 are
starting.