Mam prośbę od jakiegoś czasu próbuję uporać się z pewnym automatem zależy mi na tym aby po stracie zwiększał pozycje 5 razy pod rząd nie wiem jak mam to zrobić prosiłbym o radę poniżej podaję jego kod
Kod: Zaznacz cały
int TakeProfit_L = 39; // Take Profit in points
int StopLoss_L = 147; // Stop Loss in points
int TakeProfit_S = 32; // Take Profit in points
int StopLoss_S = 267; // Stop Loss in points
int TradeTime=18; // Time to enter the market
int t1=6;
int t2=2;
int delta_L=6;
int delta_S=21;
extern double lot = 0.01; // Lot size
int Orders=1; // maximal number of positions opened at a time
int MaxOpenTime=504;
int BigLotSize = 6; // By how much lot size is multiplicated in Big lot
extern bool AutoLot=true;
int ticket,total,cnt;
bool cantrade=true;
double closeprice;
double tmp;
int LotSize()
// The function opens a short position with lot size=volume
{
if (AccountBalance()>=300) lot=0.01;
if (AccountBalance()>=500) lot=0.02;
if (AccountBalance()>=800) lot=0.03;
pozwoliłem sobie poprawić bo tak się lepiej czyta Pierz Andrzej