int init(){
// Пересчет изменения цены в изменение прибыли определяется следующим коэффициентом,// который впоследствии нужно будет умножить на объем сделки, выраженный в лотахif(EquityScale) {
Symbol1.K = MarketInfo(Symbol1.Name, MODE_TICKVALUE)/MarketInfo(Symbol1.Name, MODE_TICKSIZE);
Symbol2.K = MarketInfo(Symbol2.Name, MODE_TICKVALUE)/MarketInfo(Symbol2.Name, MODE_TICKSIZE);
Symbol3.K = MarketInfo(Symbol3.Name, MODE_TICKVALUE)/MarketInfo(Symbol3.Name, MODE_TICKSIZE);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Unfortunately, I can't connect (to check) to the Broco server, there's no connection to it at the moment for some reason.
The connection has come up. This happens on their demo servers.
This is what the spread chart looks like:
It looks like you have an error in your calculations.
You could probably take purely currency EURUSD and EURGBP
And for the dollar index in the spread indicator, introduce a dimensional correction somehow.
There are two methods:
For spread chart analysis, the second method is the most accurate.
Bring the code responsible for calculating the triple spread. We will look for the error together.
Hardly an error there. Spreads of Related Instruments from the same marketplace (e.g. soybeans ZS-ZM-ZL) are rendered perfectly in all combinations.
But of course - look at the code. Probably, we will indeed find an error there.
Here is the code of spread drawing:
Thedirection of positions is set here by the sign at its size.
Here is the graph.
The upper window is your variant.
Lower window - my variant EURGBP - (6E + DX) =0 .06 :0.09:0.10
The upper window is your option.
Ok. Please charge it too on the Euro 6EH1 chart
The rest of the parameters:
Entered lots into your indicator carefully: