i want to generate signal in primary bar and execute trade logic in secondary bar, example:
if(Close[0]>Close[1] && BarsInProgress==0) // trade signal (daily price)
{
tradeSignal=true;
}
if(tradeSignal==true && BarsInProgress==1) // conditional order-entry next day based on intraday data
{
double stopOrder=High[0]+.01; // i'm trying to use the prvious days high
EnterLongStop(1,true,1,stopOrder,"Get long");
}
so, i'm trying to generate my signals on daily data and submit the order the following day using intraday data. what am i doing wrong here? when i run this in strategy analyzer nothing happens.

Comment