I have a coded entry filter
....if(Opens()==0)
{
if(sma50.LookBack(1)>sma150.LookBack(1) && Close.LookBack(1) > Highest())
{
Long();
}
if(sma50.LookBack(1)<sma150.LookBack(1) && Close.LookBack(1) < Lowest())
{
Short();
}......
However, this entry filter affects ALL markets selected during backtest. I want to add another entry filter which affects some markets so that the above can affect some markets. So how do i code that??
Second entry filter
SMA 25 > SMA 100 = Long....but it fetches some market like GC, SI, ES, TU etc
SMA 25 < SMA 100 = Short....but it fetches some markets only e.g. PA, NQ, GI etc.
Response will be highly appreciated
....if(Opens()==0)
{
if(sma50.LookBack(1)>sma150.LookBack(1) && Close.LookBack(1) > Highest())
{
Long();
}
if(sma50.LookBack(1)<sma150.LookBack(1) && Close.LookBack(1) < Lowest())
{
Short();
}......
However, this entry filter affects ALL markets selected during backtest. I want to add another entry filter which affects some markets so that the above can affect some markets. So how do i code that??
Second entry filter
SMA 25 > SMA 100 = Long....but it fetches some market like GC, SI, ES, TU etc
SMA 25 < SMA 100 = Short....but it fetches some markets only e.g. PA, NQ, GI etc.
Response will be highly appreciated