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,366 / 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 90,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

Reply
 
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, 225 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
begin
if condition7 then buy 100 shares next bar at market;
end;

//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;
end;

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,240 since Jun 2009
Thanks: 29,352 given, 83,223 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.

Mike

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.
6)
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, 225 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, 225 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

Reply



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)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 06:47 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-13 in 0.09 seconds with 20 queries on phoenix via your IP 54.90.92.204