pdrhParticipant
Average
DEFPARAM CumulateOrders=False
indicator1=SMI[14,3,3](close)
indicator2=Average[3](SMI[14,3,3](close))
c1=(indicator1 CROSSES OVER indicator2)
indicator3=SMI[14,3,3](close)
c2=(indicator3 <= -45)
indicator4=Average[number](WeightedClose)
c3=(high>=indicator4)
IF c1 AND c2 AND c3 THEN
BUY 1 CONTRACT AT MARKET
ENDIF
indicator5=SMI[14,3,3](close)
c4=(indicator5 CROSSES UNDER 40)
IF c4 THEN
SELL AT MARKET
ENDIF
SET STOP pLOSS 30
SET TARGET pPROFIT 100
I have written the above code but get the error message
“REPLACE VARIABLES WITH SPECIFIC VALUES IN THE CODE OF THE TRADING SYATEM ”
Can somebody help me here please
Fix this line with ‘number’ as a number
indicator4=Average[number](WeightedClose)