Discussion re Pure Renko strategy
Forums › ProRealTime English forum › ProOrder support › Discussion re Pure Renko strategy
- This topic has 345 replies, 24 voices, and was last updated 4 years ago by bertrandpinoy.
Tagged: renko
-
-
03/10/2020 at 3:51 PM #121721
Break even also helps:
12345678910111213141516171819202122232425262728293031//Break evenstartBreakeven = 50PointsToKeep = 5once breakeaven = 1//1 on - 0 off//reset the breakevenLevel when no trade are on marketif breakeaven>0 thenIF NOT ONMARKET THENbreakevenLevel=0ENDIF// --- BUY SIDE ---//test if the price have moved favourably of "startBreakeven" points alreadyIF LONGONMARKET AND close-tradeprice(1)>=startBreakeven*pipsize THEN//calculate the breakevenLevelbreakevenLevel = tradeprice(1)+PointsToKeep*pipsizeENDIF//place the new stop orders on market at breakevenLevelIF breakevenLevel>0 THENSELL AT breakevenLevel STOPENDIF// --- end of BUY SIDE ---IF SHORTONMARKET AND tradeprice(1)-close>startBreakeven*pipsize THEN//calculate the breakevenLevelbreakevenLevel = tradeprice(1)-PointsToKeep*pipsizeENDIF//place the new stop orders on market at breakevenLevelIF breakevenLevel>0 THENEXITSHORT AT breakevenLevel STOPENDIFendif03/10/2020 at 4:15 PM #12172703/10/2020 at 4:32 PM #12172903/10/2020 at 4:37 PM #121732@Paul — your 1 second code is amazing, 2 good wins in the 20 minutes since I loaded it! I like how responsive it is, locks in any profit so quickly. Nice one!
All these Renkos are so hard working and they get out of losing positions so fast – blink and they change direction. I like that!
1 user thanked author for this post.
03/10/2020 at 4:47 PM #121733@nonetheless Yeah me too! I’am losing faith a bit of systems working 10-20 years back, how about this! 🙂
Never tried anything on this timeframe and most likely it got lucky because of the dayrange.
But you see the difference between the backtest & demo? backtest long at 1642 and 1645, but not in the demo. I don’t understand it.
03/10/2020 at 4:54 PM #121734blink and they change direction. I like that!
Me too!
Since lately … blink on the DJi and if you are going in the wrong direction then you can be 100’s in loss!!!
backtest long at 1642 and 1645, but not in the demo.
Do you mean Backtest on Demo Account vs Forward Test / Live running on Demo Account?
03/10/2020 at 4:59 PM #121735the difference between the backtest & demo?
Yeah, that is a weird one. Maybe different engines? maybe slippage? or the way the Renko blocks are calculated … who knows.
03/10/2020 at 5:05 PM #12173603/10/2020 at 5:16 PM #121737big time-difference or not trading is not right.
I agree … doesn’t give us confidence.
We should try this and that to see if we can get Backtest (BT) synchronised nearer to Forward Test (FT).
We only have spread to adjust on the Platform, so we’d have to have several Systems on BT and FT at same time with 1, 2, 3, 4 … etc points in the code to simulate slippage??
We may be surprised at the results?
03/10/2020 at 5:27 PM #121738here’s an update
Seems the trailing-stop I modified some time works good too (in the backtest)! Now you can set which one you want to use in top of the code.
I’ve tested the breakeven. But for now it doesn’t seem too add much because of the quick trailingstop & small stoploss.
Increased the nbbarlimit to 4 (minimum=1) It should make sure, if an order is not executed for any reason, like there was no data on that second, it’s repeated again. At least that’s the intention.
1 user thanked author for this post.
03/10/2020 at 5:30 PM #121740It could be that 1 second is not always long enough for the signal to travel from the PRT Server location to IG Server location?
Maybe 2 seconds may give better like for like comparison between BT and FT?
Do we even know if PRT Server is co-located with IG Server … or is one in France and one in London??
Are BT Servers in different locations and / or not as fast as FT Servers??
Just a few thoughts anyway.
03/10/2020 at 5:36 PM #12174103/10/2020 at 5:48 PM #12174303/10/2020 at 5:51 PM #12174403/10/2020 at 5:56 PM #121746They are good fun Paul, thank you so much!
I am going to put 2 x v2p Systems on FT … they take so many trades that I am going to use 1 x v2p System for semi-manual trading … as in, I stop the System when I am away from the screen or if I think ‘I know better‘ than the System! Then I see how results stack up after 1 week.
Just an experiment … keep my hand in on manual trading! 🙂
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on