[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 524

 
This might be easier to understand -
I have a bunch of two BUY and SELL orders.
The first one (BUY) is opened as soon as the program is activated in the tester.
The second one (SELL) is opened as soon as the first one is closed.
Having started the tester, we see the result -


BUY-
-----
----------
---------------
-------------------close (BUY)/open (SELL)

The code completes and program execution stops. You need an BUY position to be opened after SELL, then SELL again, etc... A la loop...
 
Lim1 писал(а) >>
This might be easier to understand -
I have a bunch of two orders BUY and SELL.
The first one (BUY) is opened as soon as the program is activated in the tester.
The second one (SELL) is opened as soon as the first one is closed.
Having started the tester, we see the result -


BUY-
-----
----------
---------------
-------------------close (BUY)/open (SELL)

The code completes and program execution stops. We need BUY after SELL, then SELL again, etc... A la loop...


And the code?
 
Lim1 >>:

Нужно чтобы после SELL открывалась позиция BUY, затем вновь SELL итд... А ля цикл...

if ((OrdersTotal() % 2) == 0) {

// Open Buy

} else {

// Open Sell

}

 
Lim1 >>:
Вот так наверное попонятнее будет -
У меня есть связка из двух ордеров BUY и SELL.
Первый (BUY) открывается сразу после включения программы в тестере.
Второй (SELL) открывается сразу по закрытии первого.
Запустив тестер видим результат -


BUY-
-----
----------
---------------
-------------------close (BUY)/ open (SELL)

Далее код заканчивается и выполнение программы останавливается. Нужно чтобы после SELL открывалась позиция BUY, затем вновь SELL итд... А ля цикл...

It's not a loop but an if statement then ...

Files:
t-nov.mq4  2 kb
 

Sorry, I got stuck in...
It's hard to read more than 500 pages, maybe this topic has already been discussed, please don't swear...
Question: are there any DCs who write comments in Russian in the logbook? Russia is a developer, but can not get away from the English-language programming... Once again, I'm sorry if I hurt someone's feelings.

 
Has anyone by any chance seen a function to replace the standard
iClose(0,tf, iBarShift(0,tf,Time[i],false)) 
array generation for
iRSIOnArray
iCCIOnArray
iEnvelopesOnArray
iMomentumOnArray etc. etc.

steps are annoying
 
bliznec1986 >>:
Помогите пожалуйста подправить код индикаторов.
1 Как сделать что бы индикаторы (оба) находясь на минутках, брал данные с задаваемого внешней переменной таймфрейма 2, 3, 4и т.д. и правильно отражал это на графике. ну например обычно берем индикатор вешаем его его на график м1, берем кпрпиеру график м3 с теми же параметрами этот же индикатор вешаем на м3 или любой другой тайм фрейм . Так вот нужно чтобы можно было менять этто ТФ не открывая окно сграфиком нужного ТФ т.е на один и тт же график минуток можно было навешивать эти индюки по нескольку штук и чтобы первый брал данные с м1 2-й с м3(4,5,6 и т.д) Срабатывать должен только по сформированному бару, Между считать нельзя и чтобы все показывалось также как если бы мы их навешивали на другие графики с разными ТФ.

2 есть еще проблема со 2 м индикатором - спектрометр когда мы навешиваем один индикатор на график работает нормально, ностоит навесить на тот же график 2, 3 то и первый пропадает с графика и новые добавленные не прорисовываются как это исправить + добавить 1-й пункт.

Буду очень признателен помогите пожалуйста.

ЗЫ "индикаторы приложил"

Will you tell me how to use it =))

 
GVA63 писал(а) >>

Sorry, I got stuck in...
It's hard to read more than 500 pages, maybe this topic has already been discussed, please don't swear...
Question: are there any DCs who write comments in Russian in the logbook? Russia is a developer, but can not get away from the English-language programming... Once again sorry, if I offended anybody's feelings.


You have not offended anybody's feelings, you are silly. The main news comes from Europe and America, and Russian is not popular there.
Open a real account at Alpari, they translate most of the news, but only for real clients.

 
costy_ >>:
Случайно не видел ли кто функций что то вроде замены стандартным
формирование массивов для
iRSIOnArray
iCCIOnArray
iEnvelopesOnArray
iMomentumOnArray ит.д и т.п.

ступеньки надоели

So the formulas for calculations are in the TA section, writing who knows how to code is like two fingers ...

Just who needs it and why?

 

Please tell me which formula is used in this indicator, especially the one that clings to the price.

Files:
Reason: