I published the the code, so that everyone can, if he/she wants adapt the code for their own uses, so feel free to make your own changes, and if the work fine others will be for sure happy if you publish your modified version...jedrula » Tue Jan 17, 2017 9:09 am wrote:
better to use one robot
I made litte mod for lock profit when we are in plus.
add new optionand modify OnTimer sectionCode: Select all
extern bool UseBasketSL_LockProfit = true; // Use Basket SL for lock profit when in plus in currency
I think that's a good thingCode: Select all
// JED mod if(UseBasketSLTP==true && UseBasketSLTPinAccountCurr==true && UseBasketSL_LockProfit==false) { double ProfitPair=GetProfitPair(Symbol()); if(NormalizeDouble(BasketTP,2)!=0) { if(ProfitPair>=BasketTP) CloseAll(); } if(NormalizeDouble(BasketSL,2)!=0) { if(ProfitPair<=-1*(BasketSL)) CloseAll(); } } if(UseBasketSLTP==true && UseBasketSLTPinAccountCurr==true && UseBasketSL_LockProfit==true) { double ProfitPair=GetProfitPair(Symbol()); if(NormalizeDouble(BasketTP,2)!=0) { if(ProfitPair>=BasketTP) CloseAll(); } if(NormalizeDouble(BasketSL,2)!=0) { if(ProfitPair<=BasketSL) CloseAll(); } }but I do not want to change anything without your consent.
Cheers
Tommaso