Renko automatic trading
Forums › ProRealTime English forum › ProOrder support › Renko automatic trading
- This topic has 66 replies, 17 voices, and was last updated 4 years ago by 孫榗溢.
-
-
12/11/2020 at 12:23 PM #153364
Since we have really limited backtest data on 10s timeframe: would it be an idea to optimise every 2 days, pick 10 results then take an average over a week or month? Or optimise daily and take an average after a couple of weeks?
Any thoughts on how to get an average optimised value on this timeframe that might actually work?
12/11/2020 at 12:25 PM #15336612/11/2020 at 2:31 PM #153404i just replaced your indicator with this one.
your idea on getting an average over a couple of weeks is not a bad idea, maybe reoptimize after 1 week and keep the first still live and see how the new one performs
and at the same time take an average of the first optimization and the second and at the end have 3 running at the same time
12/11/2020 at 4:35 PM #153425thnx. I’ve got a snippet I added to a rough version, i’am unsure how useful it will be.
What it does i.e. for long, it shows the buy signals you miss when you’re in a long positionposition, So it doesn’t count the signal when the position is opened, only the buysignals when longonmarket.
It does also calculated cumulative those signals which total could go up quite rapidly.
In general the higher the amount of cumulative signals, is not a good sign for robustness.
for testing if interested.
123456789101112131415161718192021222324252627282930313233conbuy=buysignalcondsell=sellsignal// show signalsonce showsignals=1if showsignals thenonce count1l=0once count1s=0if not onmarket or ((longonmarket and shortonmarket[1]) or (longonmarket[1] and shortonmarket)) thencount2l=0count2s=0endifif longonmarket thenif condbuy thencount1l=count1l+1count2l=count2l+1endifendifif shortonmarket thenif condsell thencount1s=count1s-1count2s=count2s-1endifendifgraph count1l as "long signals in position cumulative"graph count2l as "long signals in position"graph count1s coloured(255,0,0,255) as "short signals in position cumulative"graph count2s coloured(255,0,0,255) as "short signals in position"endif12/11/2020 at 7:26 PM #153430Link to above added as Log 263 to here …
12/11/2020 at 9:45 PM #153438@paul by implementing your snippet, do we need to change cumulateorders= true? I was experimenting with cumulate orders = true in my code as you can see but failed to get more positive results. I think it would be worth taking a look at implementing some reversal code to exit trades as I think the current one isn’t performing very well.
12/13/2020 at 9:33 AM #153540do we need to change cumulateorders= true
no because although it hits the same points, I wanted to optimise a strategy normally with 1 position, but still have visible the missed signals & the totals.
I’am not a fan of reversal because it cover ups the fact that the original signal was poor.
1 user thanked author for this post.
12/14/2020 at 8:08 PM #153751i just replaced your indicator with this one.
Hi!
If not too complicated can you write how replace the indicator? I have to modify some parameters? If I simply replace there is an error about number of called parameters….
Thanks in advance!
12/18/2020 at 1:30 PM #154279Results from first optimization on 70/30 WF have now been live for one week, seems ok so far.
did a new optimization on 70/30 WF and will be running it live simultaniously to this one and see if the first one fades or not.
1 user thanked author for this post.
12/18/2020 at 3:31 PM #154302If not too complicated
Maybe snucke would prefer to share his version of the .itf with us all?
Be easier than typing instructions etc??
12/18/2020 at 3:53 PM #15430912/18/2020 at 6:00 PM #154327Hi snucke and everyone else, how do you ensure that the minimum stop distance isn’t violated? I’m on IG and I’ve been trying a few different versions but the algorithm fails because the minimum stop distance of 6 pips isn’t respected. Thanks in advance for any tips regarding this.
12/18/2020 at 6:25 PM #154331IG minimum stop distance on the DJ is 10
12/18/2020 at 6:43 PM #154334Right, my bad. Any idea of how to configure this in the code?
EDIT: This restriction applies to the stop orders as well right?
12/18/2020 at 7:00 PM #154336This is my attempt at respecting the stop distance, it was added in the end of the stop loss code in snuckes latest version of this. I’m putting it on demo again to see if it works.
Attempt at respecting minimum stop distance1234567if newSL > 0 then //and abs(newSL-tradeprice) < stopRoom thenif newSL-tradeprice > 0 and newSL-tradeprice < stopRoom thennewSL = newSL + (stopRoom-(newSL-tradeprice))elsif newSL-tradeprice < 0 and newSL-tradeprice > -stopRoom thennewSL = newSL - (stopRoom+(newSL-tradeprice))endifendif -
AuthorPosts
Find exclusive trading pro-tools on