Replies

Yassine_Mestari
22 Sep 2013, 02:10

they recently added the multi framing , wich is a very good thing , as every thing has a beginning , i think in the futur we'll niot have this problem because they will fixe it , me too i work and MTF iand i have the same poroblem


@Yassine_Mestari

Yassine_Mestari
21 Sep 2013, 22:06 ( Updated at: 23 Jan 2024, 13:16 )

i think because it's saturday (sunday)

your answer is here

[/forum/calgo-reference-samples/163]


@Yassine_Mestari

Yassine_Mestari
21 Sep 2013, 20:47

yes you're right but it was just an example to simplify with 3, periods.

conclusion , no way to detect the trend before the next period

 

thank you 


@Yassine_Mestari

Yassine_Mestari
21 Sep 2013, 19:51

perfect !! it's exactly what i nead to know.

so  there is no way to know at 16h15 if my simple average is falling o raising, not before 17h?

because my real problem ,i want to detect if at 16h my moving average is top , the only way i have is to wait the next value(17h) and if it's failing i can deduce tha t there were a top at 16h?

is there a way to know it before 17h because one hour is a big delay to take decision

 

thank you a lot


@Yassine_Mestari

Yassine_Mestari
21 Sep 2013, 19:11

if i understand your answer : at 16h15 the simple average of 1h for 3 periode will be the average of the values of  (14h15 , 15h15 and 16h15 ) and not values ( 14h , 15h , 16h)  ?


@Yassine_Mestari

Yassine_Mestari
21 Sep 2013, 14:39

RE: RE:

hichem said:

Hello and welcome to ctdn.

 

I use a time frame of 5min and a simple average of 1h and need to check the value of my simple average in the caltulate method on every tick.

Actually the Calculate() methode gets fires on each tick. you can get the last value of your simple moving average by calling the .LastValue property on you moving average object.

 

it's possible ? and which value it will return if we suppose we are at 16h15 ?

 

The value returned will depend on the price at that hour. It is not fixed.

thank you for your quick answer.

That's mean the last value for my 1h moving average at 16h15 will be its value of 16h right ? and we there is no solution to find if the 1h moving average is raising or failling à 16h15, not before 17h ?


@Yassine_Mestari