RicardoSantos

[STRATEGY][RS]Renko V0

1180 7 63
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
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out