How to add another indicator in two other time frames as filter.

 

Hello, does anyone know how to code a filter to the expert below? So it looks for another custom indicator in daily and determines the direction and then adjusts the maximum risk percentage? Based on that then it will enter on the direction of the same indicator on the h4 chart? This expert will be placed in the 15min chart.

 
Chartist wrote >>

Hello, does anyone know how to code a filter to the expert below? So it looks for another custom indicator in daily and determines the direction and then adjusts the maximum risk percentage? Based on that then it will enter on the direction of the same indicator on the h4 chart? This expert will be placed in the 15min chart.

sorry how do I post the code?

 
Chartist:

Hello, does anyone know how to code a filter to the expert below? So it looks for another custom indicator in daily and determines the direction and then adjusts the maximum risk percentage? Based on that then it will enter on the direction of the same indicator on the h4 chart? This expert will be placed in the 15min chart.

Hi,

Have a look to the iCustom() function, you will have the TimeFrame parameter and so the ability to choose from wich time frame you want the data. Hope it helps...

To post a piece of code, just use the SRC button and copy and paste the code.