How to get value of another indicator

#1
=========== Formula_1 name ia "AAAAA" ==============

// Run in 1-Tick interval

N=Param("N",1,1,1000);

TimeFrameMode(1);
TimeFrameSet( -1); // 1 Tick

out = HHV(V,N);



=========== Formula_2 name ia "BBBB" ==============


// Run in 1-Minute interval

// I want to get the "out" value of the Formula "AAAAA"
// How to Write ??

// Example: ====

// value="AAAAA.out"(10); // calculate HHV(V,10) in 1-Tick interval
// and return value to 1-Minute interval
// plot(value, "out_10", coloewhite);

// value="AAAAA.out"(20); // calculate HHV(V,20) in 1-Tick interval.....
// plot(value, "out_20", coloeyellow);

// value="AAAAA.out"(30);
// plot(value, "out_30", coloegreen);
 
#2
Use formula1 as a #include file in the second file and declare the ouput in the first file as Public

=========== Formula_1 name ia "AAAAA" ==============

// Run in 1-Tick interval

N=Param("N",1,1,1000);

TimeFrameMode(1);
TimeFrameSet( -1); // 1 Tick

out = HHV(V,N);



=========== Formula_2 name ia "BBBB" ==============


// Run in 1-Minute interval

// I want to get the "out" value of the Formula "AAAAA"
// How to Write ??

// Example: ====

// value="AAAAA.out"(10); // calculate HHV(V,10) in 1-Tick interval
// and return value to 1-Minute interval
// plot(value, "out_10", coloewhite);

// value="AAAAA.out"(20); // calculate HHV(V,20) in 1-Tick interval.....
// plot(value, "out_20", coloeyellow);

// value="AAAAA.out"(30);
// plot(value, "out_30", coloegreen);
 

Similar threads