Trading Entry Based on Manually Drawn Trendlines - futures io
futures io futures trading

Trading Entry Based on Manually Drawn Trendlines

Discussion in EasyLanguage Programming

Updated by achaean2711
    1. trending_up 1,291 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 replies
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

Search this Thread

Trading Entry Based on Manually Drawn Trendlines

(login for full post details)
  #1 (permalink)
Montreal, QC
Posts: 1 since Apr 2020
Thanks: 0 given, 0 received

Hi all,

I'm doing some practice with generating a trading entry based off of a manually drawn trendline. In a recent example, I'm struggling to get a strategy to recognize a trendline I've manually drawn on the chart. It appears that TL_Exist remains false throughout the chart. Perhaps I need to change TLID? Do I need to determine what the ID is on a manually drawn line? Otherwise... any thoughts or ideas that could steer me in the right direction? Your assistance is greatly appreciated!

if TradeSize <> 0 AND TLID > 0 then 
	TLV = 0;
	TLVPrev = 0;

	if LastBarOnChart AND TL_Exist(TLID) then 
		TLV = TL_GetValue(TLID, Date, Time);
		TLVPrev = TL_GetValue(TLID, Date[1], Time[1]);
		if TLVPrev > 0 and TLV >0 then 
			TLV = TLV + (TLV - TLVPrev);
			if TradeSize > 0 then 
					if Close > TLV Then
						buy("TLBuy LE") next Bar TradeSize shares at TLV Limit
						Buy("TL Buy LE") next Bar
						TradeSize shares at TLV stop;
				if Close < TLV Then
					Sellshort("TL Short LE") next bar -TradeSize shares at TLV Limit
					SellShort("TLShort SE") next bar -TradeSize shares at TLV stop;


Reply With Quote

futures io Trading Community Platforms and Indicators EasyLanguage Programming > Trading Entry Based on Manually Drawn Trendlines

June 2, 2020

Upcoming Webinars and Events

Introducing Edge Pools: Prop Pricing Model w/Edge Clear

Jul 9

Every journal equals ten meals for the hungry


Copyright © 2020 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