i know we can do compress and expand time frames on time based time frames like this :
TimeFrameSet( in15Minute); //set Time frame to 15 min
m = MA( P, Periods ); // calculate MA
TimeFrameRestore(); // restore Time frame to original
now if we want to see it on 1 min Time frame then we will do
M_on_15min=TimeFrameExpand( m, in15Minute,Expandfirst);
this all is ok.
But what if we want to calculate MA on range bars and show on 1 min.
i tried like this :
TimeFrameSet(3) // sets mode to Range bars
TimeFrameSet(500); //sets range bars to 5 points
m = MA( P, Periods ); // calculate MA
TimeFrameRestore(); // restore Time frame to original
now next what..........?
i tried expanding the way above but didn't work.
searched the help file but not found answer.
so seeking some Master to guide me now.
Whether this is possible or not if yes then how to do it?
TimeFrameSet( in15Minute); //set Time frame to 15 min
m = MA( P, Periods ); // calculate MA
TimeFrameRestore(); // restore Time frame to original
now if we want to see it on 1 min Time frame then we will do
M_on_15min=TimeFrameExpand( m, in15Minute,Expandfirst);
this all is ok.
But what if we want to calculate MA on range bars and show on 1 min.
i tried like this :
TimeFrameSet(3) // sets mode to Range bars
TimeFrameSet(500); //sets range bars to 5 points
m = MA( P, Periods ); // calculate MA
TimeFrameRestore(); // restore Time frame to original
now next what..........?
i tried expanding the way above but didn't work.
searched the help file but not found answer.
so seeking some Master to guide me now.
Whether this is possible or not if yes then how to do it?