I want an EA which is opening after definated candle numbers in a row and trend on definated Modes Pending order, which will be good for xhours.
EA should then restart and wait for next possible candle numbers in row.
EA should have a magic number
We have three different Order modes on which EA is placing the orders under definated criteria:
Order mode should be selected in sets
Normal Mode
Hedge mode
Third mode is place against trend
Note on all order modes orders will be placed as pending orders.
Normal Mode
EA is opening after defined candles x numbers of candles in a row on high or low (+xpips) on each side, a pending order.
On High a buy on low a sell.
And a third order in candle trend xpips better but only in the trend direction.
So if we have a buy trend, EA is placing on High +xpips a buy order and on low a sell + xpips order.
If one of the two orders in trend (the order on high and the order xpips better) is executed. The other order should be deleted.
Only the Order in the other Direction should stay for x hours to expire.
Expire hours can be defined for each mode.
After Expire or orders are done, EA starts again with strategy and does wait for new placing of the three pending orders.
Example of candel before in row - 3 buy candles - so EA is using the last candel (third high and low) High was 1.2020 Low was 1.1980
We have plus Xpips example 5 pips EA is placing a pending buy at 1.2025 and a pending sell at 1.1975 if we have normal mode with fix lots.
The third order would be in trend…. So a buy order example 40 pips better . So 1.1985
The first buy order is executed, the second buy order (in this example) will be deleted.
Second Mode - EA should also have a Hedge mode - so order will be only open in Hedge direction, with the second order (xpips better) and always only in Hedge direction. EA is placing if there is xcandles in a row a trend and if there are already orders in Market. EA is placing the hedge volume in open Hedge direction +xpips better or worse on basis of candle before.
If we have Hedge mode, EA is placing the right amount as Pending order on definated limits in Hedge direction
Order is good for x hours
Again Hedge Mode:Note EA does placing a Pending order in Hedge direction (plus the order xpips better) if there are already a volume in Terminal.
Note - EA is also placing a Order Xpips better. If one of the boath order is executed, other order will be deleted.
Parameter: same candles in a row - example 2 Candles - EA placing after the definated candles a pending order in direction with fewer Lotsorder in direction of lower order sice (hedge) . Depends on where is fewer lot amount. Placing on high xpips better, or on low xpips worser - on low always a sell and on high always a buy.
Example: We have 6 lots long and 4 Lots short - the order volume is 2 lots If now 2 candles long in a row came - but we have to open 2 lots short - nothing happens If now 2 candles in a row came short - EA is placing a pending on low +xpips as pending. This will be updating every x hours
Third mode is place against trend
This mode has no SL
If we have an trend of xcandels
EA is placing on High or low xlots against trend of trend candels.
Example - we have 3 candles logng in a row - on high of 3 candel high EA is placing a sell order
Using Fix lots in EA sets
Lot definition:
Fix lot - EA is always using the fix lots only for normal mode
Or Hedge amount - EA checks all open trades and does placing the right size for hedge - updating every x hoursUpdating ever x hours
EA does only place the pending order in direction of fewer lots - so if the order is in Market, the orders in Terminal are hedged.
Closing of the Order:
We have partial close of the order. If we can not make partial closing - EA has to open for fix lots just 4 orders - were I can definated in sets the Percent of Fix lots for each order.
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
SL
Is other side High or Low of candle
Only third mode does no SL have
Expiere of pending order - xhours