Tommaso, thanks for this tool. It works perfect.
I just wanted to note a couple of things. I'm using this tool in a demo account with Zennor Piproid. In a EA like this, that is adding pending orders continuously or almost always there are pending orders, there ir something that may should be changed.
I'm talking about this:
Code: Select all
if(OrdersTotal()==0)
{
EquityForTP_Close=AccountBalance() *multiplerEquityForTP_Close;
EquityForSL_Close=AccountBalance()- (AccountBalance()*InitialBalancePercentForSL_Close);
if(doNotUseSL_Close==true)EquityForSL_Close=0;
EquityForJS_Close=EquityForSL_Close;
if(usePercentForSettingBE==true&& useBasketBEandJump==true)
{
EquityForSettingBE=AccountBalance()*multiplerEquityForSettingBE;
}
else EquityForSettingBE=AccountBalance()+AllOverProfitForSettingBE;
nextJSStep=EquityForSettingBE;
GlobalVariableDel(JSGvName);
GlobalVariableDel(StepGvName);
}
It wouldn't be better if it recalculates the "EquityForXXX" when there are 0 OPENED orders... instead of 0 TOTAL orders (opened and pending included) ?
I'm going to tweak it myself, just wanted to ask if that has any sense.
Anddd... what about adding a magic number input, so the EA only acts over one kind of trade? Would it complicate too much the code?
Regards,
Adrián.