Autotrading with Renko Bars
Forums › ProRealTime English forum › ProOrder support › Autotrading with Renko Bars
- This topic has 23 replies, 5 voices, and was last updated 2 years ago by Sterk.
Tagged: renko
-
-
09/22/2020 at 1:45 PM #144990
Thank you Nicolas,
Cf the code below.
It seems to work well on index but not on currencies – need to figure out why !
Thank you again.
123456789101112131415161718192021222324Defparam cumulateorders = false//ATR = AverageTrueRange[14](close)Period = 1000boxsize = average[period](ATR)once topprice = closeonce bottomprice = close - boxsizeif(high > topprice + boxsize*2) THENtopprice = closebottomprice = topprice - boxsize*2ELSIF (low < bottomprice - boxsize*2) THENbottomprice = closetopprice = bottomprice + boxsize*2ELSEtopprice = toppricebottomprice = bottompriceENDIFbuy at topprice + boxSize stopsellshort at bottomprice - boxSize stop09/23/2020 at 8:27 AM #145040Everything works fine for me, I put the indicator code for you to test the size of the renko boxes on the graph:
12345678910111213141516171819ATR = AverageTrueRange[14](close)Period = 1000boxsize = average[period](ATR)once topprice = closeonce bottomprice = close - boxsizeif(high > topprice + boxsize*2) THENtopprice = closebottomprice = topprice - boxsize*2ELSIF (low < bottomprice - boxsize*2) THENbottomprice = closetopprice = bottomprice + boxsize*2ELSEtopprice = toppricebottomprice = bottompriceENDIFreturn topprice,bottomprice09/23/2020 at 8:46 AM #14504309/23/2020 at 8:57 AM #14504509/23/2020 at 9:07 AM #14504602/22/2021 at 9:38 AM #162307Hello Nicolas,
Thank you for your work on the Renko code.
Could you show me please how to modify Renko code so that in certain situations, the system only takes Short trades (e.g.) moving averages trending down.
And in other situations it only takes long trades.
Thank you.
04/11/2022 at 11:03 PM #19160404/12/2022 at 12:29 AM #191611Only post in the language of the forumthat you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Thank you 🙂
04/12/2022 at 9:00 AM #191627 -
AuthorPosts
Find exclusive trading pro-tools on