Virtual pending order EA addition to existing EA

Tarea técnica

Overview.
Existing EA with below logic #1 shows high potential for positive trades as a standalone.  Added logic #1 allows a bad trade to hedge and up positive by adding hidden pending orders in the direction of trend or during a breakout..  This EA alone with this logic before pending orders shows nearly 90% win rate.
 


Trade Logic #1      
User Input Trade Logic 1=Enable or disable.  Enable would allow( EA to be used alone with below criteria)
For a buy trade  Volume    
Trade# Type  Distance from trigger(Points) Order Type TP SL
1 Buy Custom Lot 0-Market  Input already in existing EA 
2 Buy Custom Lot Input Value 1 Hidden Pending Order same as calculated TP for 1 
3 Buy Custom Lot Input Value 5 Hidden Pending Order same as calculated TP for 1 
4 Sell Custom Lot Input Value 30 Hidden Pending Order when trade comes back into contact with Line 2 in Keltner Indicator. *Same as Profit for Trade#1
5 Sell Custom Lot Input Value 35 Hidden Pending Order when trade comes back into contact with Line 2 in Keltner Indicator. **
6 Sell Custom Lot Input Value 40 Hidden Pending Order when trade comes back into contact with Line 2 in Keltner Indicator. ***
7 Sell Custom Lot Input Value 45 Hidden Pending Order when trade comes back into contact with Line 2 in Keltner Indicator. ****
      
      
      
Logic behind trading.       
As you can see basic hedging for controlling the loss of a breakout and possibly capitalizing heavy on the breakout.       
Using close by command to  ie close Trade  4 with trade 1 when profitable. 5 close 2 etc. Thise code has been included in file Closeby test.mq4     
**Once Trade #5 is executed, change SL of trade 4to breakeven of 4.      
***Once Trade #6 is executed, change SL of trade 4&5 to breakeven of 5.      
****Once Trade #7 is executed, change SL of trade 4,5,6 to breakeven of 6.      
Close basket when "breakout" comes back into contact with #2 Line of Keltner Indicator.      
Close all and delete pending orders when trade sequence complete.      
Opposite also holds true for sell trade. 

Volume of custom Lot=(Current Profit of existing opposite trades/OPen lots for those trades)*10
-This calaculation can be done from existing variables in EA.

Archivos adjuntos:

ZIP
HFT_scalper.zip
232.2 Kb

Han respondido

1
Desarrollador 1
Evaluación
(40)
Proyectos
58
22%
Arbitraje
10
10% / 70%
Caducado
13
22%
Libre
2
Desarrollador 2
Evaluación
(8)
Proyectos
9
0%
Arbitraje
6
0% / 100%
Caducado
4
44%
Libre
3
Desarrollador 3
Evaluación
(491)
Proyectos
1017
58%
Arbitraje
29
28% / 24%
Caducado
132
13%
Libre
4
Desarrollador 4
Evaluación
(49)
Proyectos
74
18%
Arbitraje
30
17% / 53%
Caducado
31
42%
Libre
5
Desarrollador 5
Evaluación
(90)
Proyectos
159
61%
Arbitraje
40
18% / 63%
Caducado
70
44%
Libre
6
Desarrollador 6
Evaluación
(219)
Proyectos
370
42%
Arbitraje
145
17% / 41%
Caducado
124
34%
Libre
7
Desarrollador 7
Evaluación
(54)
Proyectos
164
43%
Arbitraje
43
47% / 16%
Caducado
58
35%
Libre
8
Desarrollador 8
Evaluación
(62)
Proyectos
140
46%
Arbitraje
19
42% / 16%
Caducado
32
23%
Libre
Solicitudes similares
independent-minded coder and algorithmic trader who has forged a solo career crafting financial strategies using MetaQuotes languages, MQL4 and MQL5. Driven by a blend of analytical thinking and a love for technology, John has become a self-made expert, navigating the dynamic world of algorithmic trading with finesse. With an unquenchable curiosity for financial markets and a knack for coding, John's daily routine
I need to automate the supertrend indicator on ctrader with partial tp and sl. I already have a sort of script (without tp and sl) but when I go to compile it gives me an error. would you be able to make it work by adding the partial tp and sl

Información sobre el proyecto

Presupuesto
100 - 200 USD
Para el ejecutor
90 - 180 USD
Plazo límite de ejecución
de 1 a 3 día(s)