RicardoSantos

[STRATEGY][RS]Renko V0

1545 views
80
1545 7
request for mm.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
strategy(title='[STRATEGY][RS]Renko V0', shorttitle='S', overlay=true, pyramiding=0, initial_capital=100000, currency=currency.USD)
trade_size = 10000

ro = open
rc = close
buy_entry = rc[4] < ro[4] and rc[3] > ro[3] and rc[2] > ro[2] and rc[1] > ro[1] and rc > ro
sel_entry = rc[4] > ro[4] and rc[3] < ro[3] and rc[2] < ro[2] and rc[1] < ro[1] and rc < ro

strategy.entry('buy', long=strategy.long, qty=trade_size, comment='buy', when=buy_entry)
strategy.entry('sell', long=strategy.short, qty=trade_size, comment='sell', when=sel_entry)
Can I do ? buy_entry = rc>ro
Reply
you can, strategy was written per user request tho.
Reply
MakisMooz MakisMooz
my modification
Reply
Alphaoptions MakisMooz
Makis - good mod. Did you run a profitability comparison to compare with the above?
Reply
MakisMooz Alphaoptions
@Alphaoptions Inside script there are 3 scenarios. 2 mine and 1 of Ricardo. Click image above to go to link and get the code.
Open code and comment / uncomment to run other scenario. I am working to add more scenarios to test. If you need help or want to add your scenario snd msg.
Reply
MakisMooz Alphaoptions
3 Scenarios Tested
Net Profit
1. $1651.00
2. $793.00
3. $435.50
Reply
Alphaoptions MakisMooz
Excellent - thank you. will study when have the time it deserves. Great job. Thanks for sharing.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out