I have here a strategy with two timeframes. My question is: is this handsight trading?
Here's the strategy:
protected override void Initialize()
{
Add(PeriodType.Minute, 120);//this is index1
Add(RSI(4,1));
Add(SMA(200));
CalculateOnBarClose = true;
ExitOnClose = false;
EntriesPerDirection = 1;
EntryHandling = EntryHandling.UniqueEntries;
}
protected override void OnBarUpdate()
{
// Condition for longs
if(BarsInProgress != 0)
return;
//check for 120min chart
if (Close[1] > SMA(BarsArray[1]20)[1]&&
//check loaded chart.
RSI(14, 1)[0] < 25)
{
EnterLong(DefaultQuantity, "long1");
}
This is my intention:
Check if close above SMA on 120min chart.
RSI below 25, then long
So:
- Is this handsight trading?
- When I backtest this on a 5minute chart, does it check the 120 bar every 5minutes? or every two hours?
thank you!

Comment