help coding H1 open strategy
Forums › ProRealTime English forum › ProOrder support › help coding H1 open strategy
- This topic has 9 replies, 4 voices, and was last updated 3 years ago by robertogozzi.
Viewing 10 posts - 1 through 10 (of 10 total)
-
-
09/15/2020 at 8:36 PM #14437709/15/2020 at 9:04 PM #14437909/16/2020 at 8:09 AM #144382
I would recommend to adapt 5 with the pointsize, if it is not equal to 1:
1234567Timeframe(1h,UpdateOnClose)c = closeTimeframe (default)Buy 1 Contract at c + 5*pointsize StopSellshort 1 Contract at c - 5*pointsize StopSet Target pProfit 10Set Stop pLoss 103 users thanked author for this post.
09/16/2020 at 9:37 AM #14439009/16/2020 at 9:45 AM #144395You have a stop loss too close to the market entry …. do a test by further distancing the stop.
1 user thanked author for this post.
09/16/2020 at 9:48 AM #144397It must process too much tick by tick data
1 user thanked author for this post.
09/16/2020 at 11:48 AM #14441909/16/2020 at 11:53 AM #144422There you go:
123456789Timeframe(1h,UpdateOnClose)c = closeTimeframe (default)IF time >= 080000 AND time <= 110000 THENBuy 1 Contract at c + 5*pointsize StopSellshort 1 Contract at c - 5*pointsize StopSet Target pProfit 10Set Stop pLoss 10ENDIFTIME is the time when a bar closes. If you want to refer the time it opens use OPENTIME, instead.
1 user thanked author for this post.
09/16/2020 at 10:58 PM #14448309/17/2020 at 1:28 AM #144484Add this as the first line:
1DEFPARAM FlatAfter = 173000or you can use these common lines:
1234If Time >= 173000 and OnMarket ThenSell at MarketExitshort at MarketEndif1 user thanked author for this post.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
Find exclusive trading pro-tools on
Similar topics: