artmedia70 писал(а)>> Have you tried to attach any of Kim's? Igor has a lot of interesting stuff and no problem what screws in, what twists out, what twists in.
I slightly reworked its three-level exit function. Now it closes a position three times and then trawls the rest to the victory...
мне не нужен return. дело происходит в подфункции.. мне нужно чтоб while() долбало, пока не отпустит.. кратко вот так:
что поправить и где, чтоб заработало?
double tmp=Ask;
while(Ask<=tmp)
{tmp=Ask; // присваивает темпу значения аск.Sleep(1000); // спим чтоб не часто рефрешить.
RefreshRates(); // присвавиваем аск последнее значение.
}
Print("Заработало");
as long as there is no refreshrates before the truth check, tmp will always equal Ask.
Have you tried to attach any of Kim's? Igor has a lot of interesting stuff and no problem what screws in, what twists out, what twists in.
I slightly reworked its three-level exit function. Now it closes a position three times and then trawls the rest to the victory...
The trailer has a full list of its functions...
I don't know anything about programming at all.
Я совсем не шарю в програмировании
There's a lot of traylings out there... You didn't say which one you wanted...
the simplest one, point by point.
Can you tell me how to define the time of Hai/Low drawing.
I need to set the following condition in my EA: if Hai time is earlier than Low time, then .....
this is how the maxima are written:
HiPrice = MathMax(HiPrice,iHigh(NULL,PERIOD_D1,shift+1))
LoPrice = MathMin(LoPrice,iLow(NULL,PERIOD_D1,shift+1));
And this one, I'm not sure if it's right:
if (TIME_MINUTES(HiPrice)>TIME_MINUTES(LoPrice))
{ ...... }
Помогите! Прикрутите кто нибудь трейлинг-стоп к этому коду.
Screwed it on. Simple. As requested. From Igor Kim.
// -----------------I've framed everything I've added like this-----------------------------
//zhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzh
мне не нужен return. дело происходит в подфункции.. мне нужно чтоб while() долбало, пока не отпустит.. кратко вот так:
что поправить и где, чтоб заработало?
as long as there is no refreshrates before the truth check, tmp will always equal Ask.
Maybe like this:
int HiTime = TIME_MINUTES(Time[HiPrice]);
int LoTime = TIME_MINUTES(Time[LoPrice]);
Sorry for the delay - wasn't home...
Screwed it on. Simple. As requested. From Igor Kim.
// -----------------I've framed everything I've added like this-----------------------------
//zhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzhzh
Thank you so much!!!