Spread trading in Meta Trader - page 71

 
rid >>:


Похоже, так :

double Complex_1_1=iCustom( NULL,0,"C_Com",Symbol_1,Symbol_2,N1,N2,MA_per,0,1);
double Complex_2_1=iCustom( NULL,0,"C_Com",Symbol_1,Symbol_2,N1,N2,MA_per,1,1);

тож не получается. Ведь переменные Symbol_1,Symbol_2 заданы в параметрах индюка и советника, - как extern string, а такой вид в iCustom наверное, нельзя задавать....

Maybe because Symbol_1,Symbol_2 are string variables? Then "Symbol_1", "Symbol_2"... And MA parameters are string.

 
rid >>:

Да ничего не пишет. Нули возвращает.

А вот так

double Complex_1_1=iCustom( NULL,0,"C_Com",N1,N2,MA_per,0,1);
double Complex_2_1=iCustom( NULL,0,"C_Com",N1,N2,MA_per,1,1);

работает. Но цифры в комменте Comment(Complex_1_1,"\n",Complex_2_1, "\r\n");

не совпадают с самим индюком на визуальном графике в десятки раз.

do not bother with iCustom (there is an error, but you need to find it)

the formula that is used in the indicator into the EA.

But in an EA, you don't need to use a cycle as in an indicator, but only getting the right value of a certain bar, the right bar, the right instrument, and that's it.

my EAs all work this way, regardless of the indicators.

 
Jahspear >>:

Может, потому что Symbol_1,Symbol_2 это переменные типа string? Тогда надо "Symbol_1","Symbol_2"... И параметры МА - string.

No, that won't work either.

 
forex-k >>:

не мучайся с iCustom (там ошибка но нужно ее найти)

перенеси формулу которая используется в индикаторе в советник.

только в советнике уже не нужно использовать цикл как в индикаторе а только получение нужного значения определенного бара, нужной машки, нужного инструмента и все.

мои советники все работают так, независимо от индикаторов.


Yes, indeed. It would be a lot easier. That's what it means that by the end of the day my brain has "blurred" - there was the simplest solution on the surface.

But we should still deal with extern string in iCustom.

It is clear that if it is not the first parameter of a function, iCustom does not "see" string variables

 

In the Market Watch I found a large group of instruments (green background)

With markings:

#XLP - SEL SECTOR: C STR SPDR

#XLV - SEL SECTOR: H CARE SPDR

#XLC - SEL SECTOR: C DSC SPDR etc. ....

or

#DBC - POWERSHARES DB CM IDX etc.

Didn't find any decoding there.

Can someone tell me what these symbols are and where it says about them?

//------------------------------------------

Also.

FGBSH0 - what is it (next to the eurobonds in the OBSERVER)?

 
rid >>:

В Обзоре рынка обнаружил большую группу инструментов (на зел. фоне)

С обозначниями:

#XLP - SEL SECTOR: C STR SPDR

#XLV - SEL SECTOR: H CARE SPDR

#XLC - SEL SECTOR: C DSC SPDR и т.п. ....

или

#DBC - POWERSHARES DB CM IDX и т.п.

Не нашел там (в Б. ) расшифровки.

Кто-ниб, подскажите, что это за символы и где про них написано?

//------------------------------------------

И ещё.

FGBSH0 - это что такое (рядом с евробоблами в ОБЗОРЕ)?

good point!

are so-called ETFs - exchange-traded funds - funds that are traded on the stock exchange.

each of them has a share in the S&P but not a very large 10 to 14%


e.g. XLV - the healthcare sector,

Its share (company share) is 13.17% http://www.sectorspdr.com/eqsnaps/?do=snapshot&symbol=XLV

XLP - companies which are part of the S&P 500, dealing with consumer goods http://www.sectorspdr.com/eqsnaps/?do=snapshot&symbol=XLP

etc.


I guess for this topic the correlation with the SP500 could be very interesting.

//---------------------------

FGBS (H0) - futures - German Government bonds Euro Schatz Future

Schatz is German for treasury, wealth.

 

OK. Thank you.

German papers of varying urgency are also a good option.

 
rid писал(а) >>
I sent you the address of my brokerage company - there are more instruments there.

Good afternoon, RID, could you send me in your mailbox and a question: this is the brokerage house you work with. At the weekend I found a couple of other instruments with a good correlation: CH0,CCH0,CCK0-cocoa,CTH0,CTK0-cotton.

 

question to all who are interested in this topic: your personal selection of lot sizes coincide with the size, which gives the script NEOCLASSICA lot? for some reason on GCG0 it shows 1, and SIH0-16

 
The script only works correctly for a pair of tools with the same dimensionality - of the same order.
Reason: