need help to code shift for 2 indicator buy condition

 

hi there

I have 2 indicators, the first one is the main indicator The buy order is activated when the buy signal occurs, provided 

and  the second indicator was given a buy signal with a number shift between 1 to 12 bars, ask for help in how to do the Buy condition code  MQL4


Example

  int Siftt1 =  (1||2||3||4||5||6||7); 

 

  Buy   = (Trend1(0,0)>Trend1(1,0))&&(Trend2(2,Siftt1)>Trend2(3,(Siftt1);


Trading Signals in MetaTrader 5: A Better Alternative to PAMM Accounts!
Trading Signals in MetaTrader 5: A Better Alternative to PAMM Accounts!
  • www.mql5.com
We are pleased to announce that MetaTrader 5 now features Trading Signals, thus giving a powerful tool to investors and managers. While you are following the trades of a successful trader, the terminal will be automatically reproducing them in your account!