I would like to make a condition like this:
If CCI is higher than prev CCI and EMA10 is higher than prev EMA10, go long....... and etc
What numbers should I use on the "offset bar" and the "numbars" settings?
Is this right?
if (
vCCI14.getValue(CCIStudy.CCI) > vCCI14.getValue(CCIStudy.CCI, 1, -1) &&
vEMA10.getValue(MAStudy.MA) > vEMA10.getValue(MAStudy.MA, 1, -1)
Please.........
If CCI is higher than prev CCI and EMA10 is higher than prev EMA10, go long....... and etc
What numbers should I use on the "offset bar" and the "numbars" settings?
Is this right?
if (
vCCI14.getValue(CCIStudy.CCI) > vCCI14.getValue(CCIStudy.CCI, 1, -1) &&
vEMA10.getValue(MAStudy.MA) > vEMA10.getValue(MAStudy.MA, 1, -1)
Please.........
Comment