stfl / backtestd-expert

8 stars 4 forks source link

Fixed lot size #13

Closed yairelmaliah closed 3 years ago

yairelmaliah commented 3 years ago

Adding fixed lot size optimization with no tp or sl , only entry and exit indi

stfl commented 3 years ago

This should be fairly straight forward. I don't have the dev environmant on this machine but you can add this by changing the following to MoneyFixedLot. I think that's the name of the class which is part of the standard library provided by MQL5

https://github.com/stfl/backtestd-expert/blob/6f39c4f06ff7364458afc832e964eca9e32dd1d4/Experts/backtestd/backtestd-expert.mq5#L573

make sure you add the #include accordingly on top..

The money object in BacktestExpert is of type Money which is the interface MoneyFixedRisk implements.

https://github.com/stfl/backtestd-expert/blob/6f39c4f06ff7364458afc832e964eca9e32dd1d4/Include/backtestd/Expert/BacktestExpert.mqh#L62