Convert arrow to another timeframe

 

Hello,

is there a way to convert an arrow from M1 to H1? Thanks in advance. 

 
Arthur Singer:

Hello,

is there a way to convert an arrow from M1 to H1? Thanks in advance. 

change your timeframe of your graphic to H1

 
I mean an indicator that can transmit that.
 
Arthur Singer :
I mean an indicator that can transmit that.

To clarify ....

You have an indicator. This indicator generates arrows. Do you want to run this indicator on H1 chart and see the arrows produced on M1?

 
Yes
 
Arthur Singer :
Yes

I can advise you to review the open source codes of MTF indicators.

* codebase section
 
for(int i=iBars(_Symbol,PERIOD_M1)-2;i>=0;i--)
   {
      UpBuffer[i]=0;
      DownBuffer[i]=0;
      
      // Von H1 -> M1
      datetime Period_Time=iTime(_Symbol,_Period,i);
      int TimeFrame_M1=iBarShift(_Symbol,PERIOD_M1,Period_Time);
      
      if(TimeFrame_M1>0 && TimeFrame_M1<i)
      {
         if(MovingAverageBuffer10_Period[i]>MovingAverageBuffer20_Period[i] && PriceAction_Up_Buffer[TimeFrame_M1]>0)
         {
            UpBuffer[i]=low[i];
         }
         if(MovingAverageBuffer10_Period[i]<MovingAverageBuffer20_Period[i] && PriceAction_Down_Buffer[TimeFrame_M1]>0)
         {
            DownBuffer[i]=high[i];
         }
      }
   } 
I know I've already looked for some, but I can't do anything with them. The code is mine, but this one doesn't work.
 
Arthur Singer :
I know I've already looked for some, but I can't do anything with them.

I don't know if anyone can answer this without seeing your indicator.

 
Arthur Singer:
I know I've already looked for some, but I can't do anything with them. The code is mine, but this one doesn't work.

...

Reason: