Spread trading in Meta Trader - page 81

 
Critic >>:

По соотношениям получается примерно 1:3.2, но это с рваным графиком, как сказали выше.

Алгоритм в принципе я описал, но вот код функции на всяк случай (вместо 30 дней можно брать любое количество, отбрасываются пара экстремальных):


Thank you.
 
rid писал(а) >>

Which other one? - We have the same link in our posts - look carefully! And the link opens exactly that EA - which I "meant".

I'm not sure how to do that, but I'm sure it's the same one, and it's the one that closes the total profit/loss of two or more positions with the same magician.

If you look carefully, your link indicates not on page 44, but on 38 (hover your mouse over it, you'll see).

That's why it's not clear which EA we're talking about.

One works with magik, but does not work with stoploss,

the other one works vice versa.

This is from page 44:

  • NumberAccount=0- trading account number. If 0 (zero), then the EA is allowed to work on any trading account.
  • Symbol="" - Trade instrument. The following values are allowed: "" - any trading instrument, "0" - only current instrument and any value from Market Watch (EURUSD, GBPUSD, etc.).
  • Operation=-1- Trade operation. Valid values: -1 - any trade, 0 - OP_BUY, 1 - OP_SELL.
  • Profit=50- Profit in the currency of the deposit.
  • MagicNumber=0- Position ID.
  • ShowComment=True- Show values of external EA parameters in comments

But with 38 :

  • CurSymbolOnly=True- Work only with positions of the current symbol.
  • StopLoss=40- Level of total loss in pips on account.
  • TakeProfit=60- Level of total profit in pips on account.
  • ShowComment=True- Show comment.
  • NumberAccount=0- Number of trading account.
  • UseSound=False- Use beeper.
  • NameFileSound="expert.wav" - Name of sound file.
  • Slippage=3- Price slippage.
  • NumberOfTry=5- Number of trade attempts on errors.
 

So there's a forum glitch here!

After all, the addresses in our posts are the same! Like this:

http://www.kimiv.ru/index.php?option=com_remository&Itemid=13&func=fileinfo&id=44

where 44 is the page number.

 
forex-k >>:

Да кстати возможно игра с лотами вообще того не стоит. Проведя анализ различных пар я пришел к выводу что в принципе лоты должны быть почти всегда равны даже на паре золото серебро. Критерий это равномерное распределение прибыль/убыток.

Вот индикатор показывающий как развивалась прибыль/убыток с одинаковыми лотами на паре золото -серебро если бы мы открылись на зеленой линии с лотами 0.1 и 0.1

зеленая гистограмма это прибыль/убыток в валюте депозита


It's just your luck with the tools...

For gold and silver, based on their point values, dimensions, etc., the lots fit as 1:0.82


Here is the script based on lot1 = 1.

Throw in tool 1 on the chart, enter tool 2, voila.

It may not work the first time, if there is no daily candlestick history. Then you just need to repeat it.

Files:
lots.mq4  3 kb
 
Guys, can you tell us if there is a delta in EUROPHY and FRANKFYCH, does it matter what to buy and what to sell at the same time?
 
kaln82 >>:
ребята подскажите плиз, вот допустим что на ЕВРОФЬюЧ и ФРАНКФЬюЧ образовалась определённая дельта расхождения, имеет значение что покупать и что продавать одновременно .

Imho, applying arbitrage (not to pick on definitions) to currencies (between each other) and futures (between each other) is wrong, because in both cases we are simply dealing with crosses.

For the time being, everything will be fine, but then the cross will fly away - and there will be a very good moose, and nothing can be done about it.


Arbitrage is well applicable to correlated instruments of stock and other markets, but not forex.


For example, look at the correlations between: gold-oil-miniSP-miniNASDAC-dex-eurostock-ftse-sas, furnace_fuel-gasoline, soybean-corn-wheat.

 
Critic >>:

Имхо применять арбитраж (не придираться к определениям) к валютам (между собой) и фьючерсам (между собой) неправильно, так как и в первом и во втором случае мы имеем дело просто с кроссами.

До поры, до времени все будет шоколадно, но потом кросс улетит - и оооочень хороший лось будет, и ничего тут не поделать.


Арбитраж неплохо применим к коррелируемым инструментам фондового и прочих рынков, но не форекса.


Например, посмотрите корреляции между: золото-нефть-миниСП-миниНАСДАК-дакс-евростокс-фтсе-сас, печное_топливо-бензин, соя-кукуруза-пшеница.

a very good point about catching arbitrage on currencies or currency futures

the instruments should return, otherwise infinite losses are possible,

as an exception, currency gaps can only be used for directional pips

 
So where to find these tools
 
kaln82 >>:
Так гдежетакие инструменты найти

similar futures

 

Here you can see the profits jumping up and down but not flying away and this is important

gold silver spot lots are the same


Reason: