Hi,
I'm looking for some code to add to my expert. I need the expert to calculate the stoploss in pip from the orderopenprice() to the 30ema and then calculate how many lots to use that is 2% of the available account equity.
in other words:
$1000 Account Equity
2% = $20
pips from MA to current price = 55pips
Lots = 0.3
If anyone can give some idea here it would be nice.
Jannie
I'm looking for some code to add to my expert. I need the expert to calculate the stoploss in pip from the orderopenprice() to the 30ema and then calculate how many lots to use that is 2% of the available account equity.
in other words:
$1000 Account Equity
2% = $20
pips from MA to current price = 55pips
Lots = 0.3
If anyone can give some idea here it would be nice.
Jannie