Multicurrency advisor. Preferably the opinion of the developers. - page 5

 
YuraZ:

What Andrey means is that IF you use the calculation for the instruments you want

it is "correct" to use closed bars!


it is correct!


Yes, but if the tick did not come at the hour boundary, but much later, will MT close the bar?

 

YuraZ, why so much text, and why twisting my thinking?

You don't need to rewrite the indicators, you just need to tweak the expert a bit.

 
LeoV:
YuraZ:

What Andrey means is that IF you use the calculation for the instruments you want

it is "correct" to use closed bars!


it is correct!


Yes, but if a tick hasn't come at the hour boundary, but much later, will MT close the bar?

it will close for this instrument with the arrival of the next tick at the NEW HOUR of this bar - this instrument

there will simply be a delay.


on the post above look at the logic by which a new hour can be counted !

 
komposter:

YuraZ, why so much text, and why twisting my thinking?

You don't have to rewrite the indicators, you just have to tweak the Expert Advisor a bit.

What are you twisting?


I agree, the indicators should not be rewritten, you just feed them with the appropriate bars.

 

LeoV, an algorithm for you (using 3 pairs as examples):

1. If there is a new bar on pair #1 (on the chart of which the Expert Advisor is working), then:
1.1 If the opening time of bar #0 on pair #2 == the opening time of bar #0 on pair #1, we will use bar #1 in all calculations related to pair #2 (we store it in a variable). If not, we will use bar number 0.
1.2 Calculate the "working bar" for the 3rd pair in the same way as point 1.1.
1.3 Perform calculations: on pair No. 1 - with bar No. 1, on pair No. 2 - with the bar calculated in point 1.1, on pair No. 3 - with the bar calculated in point 1.2.
1.4 Depending on the results of the analysis, make a trading decision.

 
YuraZ:

Andrei, what did you rewrite?
I agree, indicators do not need to be rewritten - just give them the bars they need

I will not waste time on useless evidence. I will not waste my time with useless proofs. Who needs them?
I just can not understand why there is so much text when the response to any message can be fit into 5-10 lines?

Someone's reading it....

 
LeoV:

21.05.2008 16:38


LeoV take a look at this post it's just a source... what I wanted to say from the beginning

it's clear and concise ...

 

Try loading on a lot of different pairs

void start()

{

        Comment("    V0="+iVolume(Symbol(),PERIOD_D1,0)+" V1="+iVolume(Symbol(),PERIOD_D1,1)+" V2="+iVolume(Symbol(),PERIOD_D1,2)+" V3="+iVolume(Symbol(),PERIOD_D1,3));

}

you will see which pairs are worth catching the beginning of the bar...

at the time when other pairs are sleeping

for example EURJPY or GBPJPY ticks easily :-) do it just to get a better probability of finding the beginning of a new hour

 
YuraZ:

Try loading on many different pairs

Is there any way to do this in the "market overview" window? When any tick comes in?

 
LeoV:
YuraZ:

Try loading on many different pairs

Is there any way to do this in the "market overview" window? When any tick comes in?

newBar = 0;
iBarEUR = 0; iBarEURJPY = 0;
iBarCHF = 0;  iBarGPBJPY  = 0;
 
if (   Time_NEW !=  iTime( "EURUSD" ,  PERIOD_H1, 0 ) ) // новый час
{

   Time_NEW ==  iTime( "EURUSD" ,  PERIOD_H1, 0 );
   iBarEUR = 1; 
   newBar = 1;

}
if (   Time_NEW !=  iTime( "USDCHF" ,  PERIOD_H1, 0 ) )// новый час
{
   
   Time_NEW ==  iTime( "USDCHF" ,  PERIOD_H1, 0 );
   iBarCHF = 1; 
   newBar = 1;
}
if (   Time_NEW !=  iTime( "GBPJPY" ,  PERIOD_H1, 0 ) )// новый час
{
   Time_NEW ==  iTime( "GBPJPY" ,  PERIOD_H1, 0 )  ; 
   iBarGPBJPY = 1; 
   newBar = 1;
}
if (   Time_NEW !=  iTime( "EURJPY" ,  PERIOD_H1, 0 ) )// новый час
{
   Time_NEW ==  iTime( "EURJPY" ,  PERIOD_H1, 0 )  ; 
   iBarEURJPY = 1; 
   newBar = 1;
}

if ( newBar == 1 )
{
   // у вас есть номера баров для всех 4 пар
   // тут запускайте ваши индикаторы подавая им номера баров
   //iBarEUR; содержат нужные номера баров
   //iBarCHF ;
   //iBarGPBJPY ;
   // iBarEURJPY 
}

In the "Market Watch" window

indicate the pairs read by your TS

Reason: