flatbefore / flatafter in a daily timeframe?
- This topic has 6 replies, 3 voices, and was last updated 3 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:
Forums › ProRealTime English forum › ProOrder support › flatbefore / flatafter in a daily timeframe?
I got an interesting suggestion from IG support (not PRT support but IG) to my problem that often strategies were stopped monday morning because PRT sends orders too early to a market that is still closed.
The support suggested to use flatbefore/flatafter to solve this and this might be solution. I thought that this to commands were not available when running a strategy on daily bars.
@Nicolas: Can you confirm that this commands also work on daily bars? So for example when I want the strategy to place a limit order monday 9:00 but the strategy runs on daily bars. Will this work in that way that the strategy really places the order at 9:00 and not before if i include the line:
1 |
defparam flatbefore=090000 |
It is obviously a problem in the communication between IG and PRT.
The only thing that I say is that it is not possible to fix it from my side as it looks like. And if I’m wrong with that, I’d be VERY grateful if somebody could tell what to do to avoid the problem!
Perhaps the answer is now obsolete.
Now that multi-timeframe is available, you can use daily timeframe to calculate conditions and intraday timeframe to execute orders, so flataftfer\flatbefore (or other conditions of the variable time) can work.
Find exclusive trading pro-tools on