Hello, I am testing some strategies and am wondering how to solve my problem in most natural way.   
I need to add an entry signal which consists of few conditions
1. volatility is in a range
2. it is a particular day of the week
3. ema crossover

What I am doing is writing a new indicator function, which would return constant for all mktdata and then use sigFunction to define all I need. Indicators would be:

const.ind1
const.ind2
is.day1
volatility
ema

Signal:
add.signal(start, name=sigFormula, arguments=list(columns=c("all above"),
formula="(const.ind1 < volatility < const.ind2) & (is,day1) & (ema > Close)", cross=TRUE),
label='triger')

However this does not feel right… Do you have any suggestions?  

Also, in this case cross=TRUE means it will give only the first successive value in subsequent TRUE observations?

Also, I would very much appreciate if you could explain me the difference between sigComparison and sigCrossover. It says dimension reduced, but does this mean dimension is 'cross' argument? As far as I understand sigComparison gives TRUE for all successive TRUE variables, while sigCrossover gives only the first of subsequent TRUE values. Is this correct?

I know I could find these things out by myself, but if someone could direct me in the right way and save me some time, it would be great. It does take time to reveal how this black box works...  


Kind regards,--  
Dominykas Grigonis


	[[alternative HTML version deleted]]

