I have a long code that works hard every tick
its slowes down my computer
it will help if I'll write Sleep(10000); after every tick?
its slowes down my computer
it will help if I'll write Sleep(10000); after every tick?
Break Out + Pull Back & Pure Break Outs 59 replies
BB break + trendline break 24 replies
Looking for L > Break High Break Low Indicator 1 reply
A break below - A Break Above Question 1 reply
Does The Market Break The Rules ! 5 replies
DislikedI have a long code that works hard every tick its slowes down my computer it will help if I'll write Sleep(10000); after every tick?Ignored
DislikedRather than putting it to sleep why not execute the full code only after x amount of ticks? This would allow it to work harder during very active times and less during the quiet times.Ignored
Disliked{quote} If the strategy look for signal on a specific tick ... then skipping ticks might result in missing signals ... or late signal if the right signal was on a missing tick. Let's take an example (basic) ... entry is when price touch a line ... if the tick touching the line was skipped, the entry will be missed or entered at a worse price.Ignored
DislikedRather than putting it to sleep why not execute the full code only after x amount of ticks? This would allow it to work harder during very active times and less during the quiet times.Ignored
Disliked{quote} thank you (and all the others). is there a simple way to do your suggestion? the code is in mql4 and its within OnTick() function.Ignored
void OnTick() { static uint TickCnt=0; if(TickCnt>=5) { // run your code here TickCnt=0; } TickCnt++; }