Forum

the code seems all fine, yet doesn't give me any result.

it starts and ends without any result. what did i miss? int slippage; double stopLoss; double takeProfit; bool isWeekday = (TimeDayOfWeek( TimeLocal ()) >= 1 && TimeDayOfWeek( TimeLocal ()) <= 5 ); bool isTradingHour = (TimeHour( TimeLocal ()) >= 0 && TimeHour( TimeLocal ()) <= 23 );

test freezes before while loop

hello, i am doing a project, and it keep freezing, and finally i figured out where it freezes. and i wrote a simple code to help me solve the problem. the logic i am using is, if the signal line cross 80 from top to bottom, and is true, wait till the signal line cross down 50 level and notify me