For example:
if(SMA(33)>SMA(99)
&& if(CCIfilter == true)
{CCI(6)>0}
)
{
EnterLong("LongTrade");
}
Might be a little confusing, but the idea is, in this simple example, I want to be able to make the strategy enter long if the SMA 33 is greater than 99. I also want to have the ability from the strategy menu on my chart (when I apply it to the chart or strategy tester) to set "CCIfilter" to true, and use that as the filter also. I know I could write the if condition twice with the if(CCIFilter == true) above the whole if statement, but I'm working with 6-20 filters and it would be much simple if I could include those bools in one big if statement, all for the same long entrance, "LongTrade".
Hope this makes some sense... and thank you for any help.
Comment