I need a simple script. Can anyone really write it without reasoning and demagogy? I'm willing to pay. - page 7

 
Yes, everything works! OK! Another request, if it's not difficult, can you make TP separate for each trade? (e.g.: TP1=..., TP2=...). I sometimes do not have time to manually change TP on the second order. And, if possible, should we keep lots starting from 0.01 in increments of 0.01 (for micro account), but should we also keep lots starting from 0.1 in increments of 0.1 (for classic account)? In other words, I want to set the lots in a range from 0.01 to 8.0, or up to what terminal allows. Once again, thank you!
 
int buy_tp[10]={20,25,30,35,40,45,50,60,65,70};
int sell_tp[10]={20,25,30,35,40,45,50,60,65,70};
int buy_sl[10]={20,25,30,35,40,45,50,60,65,70};
int sell_sl[10]={20,25,30,35,40,45,50,60,65,70};задавать здесь через перекомпиляцию
Files:
 
tp/sl from setup not active
Files:
 
I'm sorry, you need more lots, I'll add them now.
 
double buy_lot[10]={0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1};
double sell_lot[10]={0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1};

//double buy_lot[10]={0.1,0.2,0.3,0.4,0.5,1,0.5,0.8,0.9,0.1};
//double sell_lot[10]={0.1,0.2,0.3,0.4,0.5,1,0.5,0.8,0.9,0.1};
Files:
 

It is not always possible to fully check the allowed lot size, so it is better to read the DC website and put it as is.

variants of lines with a chain of lots is convenient to banish, and to add copies
for now is enough for checking and working

Files:
 
Thank you! But i think i must have described something wrong or i don't quite understand how to use it. :( Now let me try to describe it by an example: 2 orders are placed at once, for example BUY. This is what should happen:
i.e. 2 orders open at a time in the same direction with the same lot at the same price, but with different TP
TicketOpen TimeTypeSizeItem PriceS / LT / PClose Time PriceCommissionTaxesSwapProfit
7741212008.11.24 12:12buy0.01eurusd1.26641.26441.2684





7741222008.11.24 12:12buy0.01eurusd1.26641.26441.2700





 

The next time you can open 2 orders with 0.05 lot, the next time with 0.1 lot Well, that's how it is. I consider a deal as 2 open orders in one direction at the same price, with the same lot size and different TP (with SL there options, you can have the same, but you can have different ones - not important, you can have the same SL). If in the script variants you have already posted it can be implemented, how do you set it up?


SORRY!!!

Thanks!!! Got it all set up myself. Awesome! Testing now!

 
Yes, everything is working perfectly! Kudos to you!
 
:-)
Reason: