Help with Easy Language Strategy with Renkos - MultiCharts | futures io social day trading
futures io futures trading


Help with Easy Language Strategy with Renkos
Updated: Views / Replies:1,505 / 3
Created: by greenroomhoo Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Help with Easy Language Strategy with Renkos

  #1 (permalink)
Elite Member
annapolis USA
Futures Experience: Intermediate
Platform: Ninja, MC, Sierra, Amibroker
Broker/Data: PFG (too bad), IB, Fidelity, AMP
Favorite Futures: ES, NQ, Equities, Forex, Etc.
greenroomhoo's Avatar
Posts: 276 since Jun 2011
Thanks: 107 given, 228 received

Help with Easy Language Strategy with Renkos

Im about to blow my head off with frustration on a coding issue i cannot figure out. I have a strat i am running on daily renkos. The entry is not relevant but i am having an issue with my trailing stops in the strategy. The logic i am trying to code is relatively simple.

A trailing stop off the last pivot low that moves up after a new higher pivot low is formed. The initial stop is the higher of the last pivot low or 95% of the entry price. see code excerpt below:

if marketposition = 0 then
if condition7 then buy 100 shares next bar at market;

//Long Stop Language
Condition20 = PivotLowVSBar( 1, low,Leftstrength, rightstrength, rightstrength+1) <> -1 ; // if new pivot low forms this is true
if marketposition = 0 and condition20 then longpivotstop = Low[rightStrength]; // when flat and a new pivot low forms, the intrabarpersist variable longpivotstop is set
//equal to the Low of the bar at the new pivot
if marketposition = 1 and condition20 and Low[rightstrength]>Longpivotstop then LongPivotStop = Low[rightStrength]; // when long and a new pivot forms that is higher than the last
//pivot low, longpivotstop is reset to the new higher low.
if marketposition = 1 then begin
currentlongstop = Entryprice*.95; //sets initial stop to 5% from entryprice
If Longpivotstop > currentlongstop and longpivotstop<last then currentlongstop = longpivotstop;
Sell ( "Pivot LX" ) next bar at currentlongstop stop;

The above code seems to generally work ok but there is something i am missing. See attached screen shot i marked up.

Any ideas with what i am screwing up in my logic? its making me crazy.....

Attached Thumbnails
Help with Easy Language Strategy with Renkos-7-2-2012-8-48-07-pm.png  
Reply With Quote
  #2 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 46,775 since Jun 2009
Thanks: 29,831 given, 86,150 received

Please remember Renko's and backtesting don't go well together. Renko's have false opens, and all backtest results will be false.

Best way to troubleshoot your issue in my opinion would be to print the trailing stop price to a debug window, along with a time stamp, so you can see what is happening.

I assume if you change the dataseries to something less exotic, like a 1-range bar, that it works correctly? If so, likely the issue is the Renko bar itself and the false prices.

You could make the first dataseries a 1-range, and the second dataseries your Renko. MultiCharts only allows execution on the first dataseries. Signals could be generated from the secondary series.


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
  #3 (permalink)
Elite Member
annapolis USA
Futures Experience: Intermediate
Platform: Ninja, MC, Sierra, Amibroker
Broker/Data: PFG (too bad), IB, Fidelity, AMP
Favorite Futures: ES, NQ, Equities, Forex, Etc.
greenroomhoo's Avatar
Posts: 276 since Jun 2011
Thanks: 107 given, 228 received

thanks mike. ill try that. i understand about the limitations of backtesting and renkos...

Reply With Quote
  #4 (permalink)
Elite Member
annapolis USA
Futures Experience: Intermediate
Platform: Ninja, MC, Sierra, Amibroker
Broker/Data: PFG (too bad), IB, Fidelity, AMP
Favorite Futures: ES, NQ, Equities, Forex, Etc.
greenroomhoo's Avatar
Posts: 276 since Jun 2011
Thanks: 107 given, 228 received

hey mike - i did what you said and figured out my logic issue. if anyone wants the code for trailing pivots i came up with i can post. many thanks

one quick follow up question - I am struggling with coding renkos as data2 for triggering entries and exits. my issue comes with data1 (regular minute bars) having many more bars than data2 (renkos). when there are no renkos in data2 - i get entries and exits on data1.

Im sure there is some boneheaded function i am missing. I tried using "barstatus <> = -1" but that only fixed some of my incorrect entries on data1.

What am i missing?

Reply With Quote


futures io > > > > Help with Easy Language Strategy with Renkos

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Fundraiser: Feeding Families in Need (ends Dec 17)


Ask Me Anything (Brokers & Platforms) w/Ilan Levy Mayer @ Cannon Trading

Dec 13

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very simple easy language Help ttsang EasyLanguage Programming 4 March 8th, 2012 02:24 PM
easy language ..not easy... Serger EasyLanguage Programming 4 April 26th, 2011 04:42 PM
MC: Simple strategy code problem / Easy Language true EasyLanguage Programming 4 December 19th, 2010 09:48 AM

backtesting, code, data, dataseries, dow, easy language, es, marketposition, multicharts, pivots, range bar, renko, signals, strategy, trailing stop, trailing stops, triggering, variable

All times are GMT -4. The time now is 10:12 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-12-12 in 0.11 seconds with 15 queries on phoenix