Hi fellows,
i'm looking for Programmingsupport in using the Orderhistory and Orderprofit-function. The idea is to calculate the Lotsize for the next Trade. Let me describe what i mean.
1. i would set a ratio between SL/TP, for example 1/4 in the settings (external variable). That means if i have a SL with 30 my TP is 120 pips.
2. i have to set an InitialLotsize (external Variable) for example 1 Lot
3. i will define a StartingBalance (SumProfits == 0)
4. Start Trading:
if i have a win keep the initial Lotsize. i will increase StartingBalance.
if i had a loss calculate new Lotsize:
MathCeil(ABS(SumLossPips)/TP)
i will put in here a table, maybe you can understand what i mean.
i will increase the lotsize with that formula with every Trade i had a loss. When i get a Wintrade i will have a look in the Table und see if i could switch back to initial Lotsize or if i have to use the Lotsize in the last column.
i have to track sum of OrderPrfofit until it's positiv, after that i'll 'reset' the system with the new Balance.
i think this is a good idea for a recoverysystem of losstrades.
Maybe someone could help?
i'm looking for Programmingsupport in using the Orderhistory and Orderprofit-function. The idea is to calculate the Lotsize for the next Trade. Let me describe what i mean.
1. i would set a ratio between SL/TP, for example 1/4 in the settings (external variable). That means if i have a SL with 30 my TP is 120 pips.
2. i have to set an InitialLotsize (external Variable) for example 1 Lot
3. i will define a StartingBalance (SumProfits == 0)
4. Start Trading:
if i have a win keep the initial Lotsize. i will increase StartingBalance.
if i had a loss calculate new Lotsize:
MathCeil(ABS(SumLossPips)/TP)
i will put in here a table, maybe you can understand what i mean.
i will increase the lotsize with that formula with every Trade i had a loss. When i get a Wintrade i will have a look in the Table und see if i could switch back to initial Lotsize or if i have to use the Lotsize in the last column.
i have to track sum of OrderPrfofit until it's positiv, after that i'll 'reset' the system with the new Balance.
i think this is a good idea for a recoverysystem of losstrades.
Maybe someone could help?
Attached File(s)
Sample.xls
22 KB
|
269 downloads