Hey guys,
Have a question about some code.
Im trying to use a progressive system only when my current account balance is below a 'high' of my account balance.
So basically i have the following:
if (equityStart < AccountBalance())
{
equityStart = AccountBalance();
}
equityStart is an initial balance i have (so its the initial 'high' of my account balance. If my account balance heads south from there then it will start the progression. If some of my following trades (im not martingaling) are successful and my account balance is higher than equityStart, then i wanted equityStart to equal the account balance then i go back to the initial lot size in the progression and stay there until my account balance decreases again. Basically only using my progression method when im in a hole.
The only thing is its not working and im not sure what code i really need to implement to have it keep track of everything.
Is there some formal way of coding the above?
cheers
Have a question about some code.
Im trying to use a progressive system only when my current account balance is below a 'high' of my account balance.
So basically i have the following:
if (equityStart < AccountBalance())
{
equityStart = AccountBalance();
}
equityStart is an initial balance i have (so its the initial 'high' of my account balance. If my account balance heads south from there then it will start the progression. If some of my following trades (im not martingaling) are successful and my account balance is higher than equityStart, then i wanted equityStart to equal the account balance then i go back to the initial lot size in the progression and stay there until my account balance decreases again. Basically only using my progression method when im in a hole.
The only thing is its not working and im not sure what code i really need to implement to have it keep track of everything.
Is there some formal way of coding the above?
cheers
Luck is where preparation meets opportunity.......