need help with a plot in EasyLanguage with knowledge of ThinkScript - EasyLanguage Programming | futures io social day trading
futures io futures trading


need help with a plot in EasyLanguage with knowledge of ThinkScript
Updated: Views / Replies:2,360 / 22
Created: by kidvic Attachments:2

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
 2  
 
Thread Tools Search this Thread
 

need help with a plot in EasyLanguage with knowledge of ThinkScript

  #21 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 received


Jura View Post
Can you expand more on what the trend line drawn from right to left needs to do? Is that right-to-left trend line still drawn on the same bars and price coordinates? Or should that line be drawn on future, yet to form price bars? If so, how should that trend line be updated; extended further into the future or remain in place?

Btw, your current code draws a trend line on historical data and then extends it once on the next bar. Is that what you want it to do? I'm asking because this is something else than I understood from your previous posts in this thread, so there might be a misunderstanding here.

PS: a screenshot with your goal will probably speak more than words.

lets say I want to plot a trendline on bar number 10 ago to bar number 11. Now when I say 10 ago I mean last bar on chart (current bar that has not closed yet - 9) total 10, using currentbar in the last configuration will do the same, except counting from the 1st bar on chart up, and not last bar on chart down. , so the the other one should be( lastbaronchart - 10) It does not work this way.
Sorry, not at home right now.


Last edited by kidvic; May 22nd, 2015 at 03:55 PM. Reason: re-clarification
Reply With Quote
 
  #22 (permalink)
Trading for Fun
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader, ThinkOrSwim
Favorite Futures: Options, Futures
 
Posts: 92 since Mar 2015
Thanks: 13 given, 2 received

@Jura:
This is what I want to accomplish......
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #23 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


My interpretation of what you're trying to do is the following:

 
Code
Variables:
	tlID(0);
	
if (BarStatus(1) = 2) then begin

	if (tlID = 0) then begin
	
		// Create the trend line 10 & 11 bars ago
		tlID = TL_New_s(Symbol_Date[11], Symbol_Time_s[11], Symbol_Low[11],
			Symbol_Date[10], Symbol_Time_s[10], Symbol_High[10]);
			
		TL_SetColor(tlID, red);
		TL_SetSize(tlID, 2);
	
	end
	else begin
		
		// Now update the trend line so that bar 10 becomes 11,
		// which I guess means the line will always needs to be plotted
		// 10 bars ago from the current
		TL_SetBegin_s(tlID, Symbol_Date[11], Symbol_Time_s[11], Symbol_Low[11]);
		TL_SetEnd_s(tlID, Symbol_Date[10], Symbol_Time_s[10], Symbol_High[10]);	
	
	end;

end;
Which draws the line from High[10] to Low[11], and then updates the trend line on each bar so that the old bar 10 becomes the new bar 11. I'm not sure if this interpretation is correct, because I can also read your screenshot as meaning to say 'keep the trend line on the same bar'.

Here's what the above code looks like:

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Then when the code updates, the trend line moves with it, reflecting the 'old bars' becoming 'new bars':

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote

Reply



futures io > > > > > need help with a plot in EasyLanguage with knowledge of ThinkScript

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
ATR Trailing Stop: Convert Thinkscript to Easylanguage kamisyed MultiCharts 7 March 31st, 2017 06:13 PM
Easylanguage: Function to Plot Text Verticaly nunoonline EasyLanguage Programming 2 December 22nd, 2010 06:17 AM
does this road to knowledge sound ok? micksta Beginners and Introductions 5 March 17th, 2010 02:13 AM
Does having some trading knowledge get in the way? shodson Psychology and Money Management 4 March 9th, 2010 04:27 PM
improve and train your knowledge wh Psychology and Money Management 0 September 12th, 2009 05:19 PM


All times are GMT -4. The time now is 04:12 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-15 in 0.08 seconds with 20 queries on phoenix via your IP 54.90.92.204