Hi Thanks, sorry i missing out my sample code, I have coded something like this and it was prompting this,
Error
AI tmeFarnes used n your code should be multiples of the timeframe used on the chart on which your strategy is applied (the base timeframe)
For example
• If you want to mix 15 minute and 10 minute timeframes n your strategy, you should apply the strategy on a 5min chart (because 15 and 10 are multiples of 5).
• If you want to mix 7 minute and 5 minute timeframes in your strategy, you should apply the strategy on a 1 minute chart (because 7 and 5 are multiples of 1).
Sample of the code that i understand from the documentation,
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
// Prevents the system from placing new orders on specified days of the week
daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0
timeframe(10 seconds,updateonclose)
indicator1 = MACDSignal[12,26,9](close)
c1 = (indicator1 > indicator1[1])
indicator2 = CCI[20]
c2 = (indicator2 > indicator2[1])
timeframe(1 minutes,updateonclose)
indicator3 = MACDSignal[12,26,9](close)
c3 = (indicator3 > indicator3[1])
indicator4 = CCI[20]
c4 = (indicator4 > indicator4[1])
timeframe(3 minutes,updateonclose)
indicator5 = MACDSignal[12,26,9](close)
c5 = (indicator5 > indicator5[1])
indicator6 = CCI[20]
c6 = (indicator6 > indicator6[1])
timeframe(5 minutes,updateonclose)
indicator7 = MACDSignal[12,26,9](close)
c7 = (indicator7 > indicator7[1])
indicator8 = CCI[20]
c8 = (indicator8 > indicator8[1])
IF (c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7 AND c8) AND not daysForbiddenEntry THEN
BUY 1 CONTRACT AT MARKET
ENDIF
// Stops and targets
SET STOP pLOSS 20
SET TARGET pPROFIT 50