Hi, I try using order expiration after defined number of hours. But when back-testing sometimes orders expires at midnight. my build

Hi, I try using order expiration after defined number of hours. But when back-testing sometimes orders expires at midnight. my build

@fxdreema I did tried do back test with time tab, not working. And I tried tick tab, can back test, but it is not working on real account. I switched condition block with once a day block and it opens pending orders on real acc. Is it possible that you add offset to time filters blocks?
Yes, it is possible that I wont receive tick in that minute. What If I use this approach inside on timer tab instead on tick tab? shared/ckYVWMTPd
Found solution myself. Instead Once a day block use condition block to compare server time with time stamp value. That value can be shifted by hour, this give me ability to optimize time filter when back testing.


Maybe my explanation was not enough. I need to run optimization with different certain hour values one hour as step.
Hi, I want to open order at certain time of the day and I want to run back testing optimization with time constant. But there is no parameter field to enter for optimization. I want to optimize time with one hour intervals. how can I do that? I tried once a day time filter block.
Yes long numbers, multiplying worked for me. Can long numbers slow down optimization?
I restarted my MT4 platform, and journal started show log entries. I used crude method to convert to pips by entering *10000 text to adjust line. I know that this method is not universal it can change with currency pair or broker. For test purpose its enough.
Strange, I used log message to learn what value I get, but nothing appeared in journal. I will check my mt4 platform or restart it.
I want to get price range as number in pips, so I could use it in formula. I try to use formula block to get price range, but no value appears shared/IZ3hwTn0e
Its hard to tell from picture, but if you press left upper corner button "Projects" and create a shared copy it would be way faster to get help. You dont need AND block, you should switch block 2 instead block 5, at some point you have to turn it on back.
No, it don't create loop, because after one millisecond of waiting once per tick block return negative (yellow) output and loop will not continue. I Tried loops without tick filter and they crash mt4 
I think this option would give unstable results, because there is possibility that once per bar and condition blocks might pass before once per tick block. Especially when low time frames and MA values.
In my opinion, block witch lets choose predefined custom optimization parameter would add great value to this site. The default MT4 options are quite limited. It would be nice to have such parameters as sharpie ratio, profit*profit factor or others.

My final solution to turn on and off blocks.

I recreated my project and found that mistake was check profit block.

Maybe I found a bug, because first array of blocks act as filter and second does trading until conditions are met. But trace activity blocks are always active, so this situation raised my question. And strangely no trade block does nor work, because EA opens multiple trades. 
When Block is turned off, will program skip that block and execute next connected block or leave until next pass? If I turn off 1, 65 and 141 blocks and turn on 7, will program execute from block 7 and ignore all blocks coming from 1?
It worked, thanks. I looks so obvious when somebody shows, I start to doubt my common knowledge 