Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-16-2009, 07:01 PM   #9

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: ARW_new (MultiCharts)

Quote:
Originally Posted by aaa »
Nonono sir
It's my fault = my explanations are always complicates
Is it Better with a graph ?

a picture is worth a thousand words... ;-)


the logic should be:
if avg.st crosses above avg.lt then OK = avg.lt;



for targets, it is better to use trendlines. (ie horizontal line)
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
momentom (05-17-2009)
Old 05-17-2009, 07:09 AM   #10
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 440
Ignore this user

Thanks: 238
Thanked 278 Times in 135 Posts



Re: ARW_new (MultiCharts)

This one looks logical but doesn't work

Please, Show me the way to the next (whisky bar) step

Code:
input:
st.length(	20	),
lt.length(	50	), 
arw.size(	18	);

var:
avg.st(	0	),
avg.lt(	0	),
id.arw(	-1	),

OK(		0	),
Sell.1(		0	),
id.arw2(	0	);

avg.st = averagefc(close, st.length);
avg.lt = averagefc(close, lt.length);

plot1( avg.st, "avg.st");
plot2( avg.lt, "avg.lt");

	if avg.st crosses above avg.lt then 
		OK = avg.lt ;
	if Sell.1 = (OK + 3 points) then
		id.arw2 = ARW_new(date, time, highest( high, 1 ), true );	
			   ARW_setsize( id.arw2 , arw.size   	);
aaa is offline  
Reply With Quote
Old 05-17-2009, 12:30 PM   #11

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: ARW_new (MultiCharts)

you have to write out your thought process...

write them out:
-- one action at a time,
-- one action per sentence,
-- one sentence per line...



you can give this code a try...

I have drawn the trendlines for you,
you can decide on how/where to position the arrow.


Attached Thumbnails
ARW_new  (MultiCharts)-arw_and_trendlines.gif  
Attached Files
File Type: txt Arrow_and_trendline_drawing_exercise.txt (2.0 KB, 23 views)

Last edited by Tams; 05-17-2009 at 01:07 PM.
Tams is online now  
Reply With Quote
The Following 2 Users Say Thank You to Tams For This Useful Post:
aaa (05-17-2009), Stat (02-19-2011)
Old 05-17-2009, 01:34 PM   #12

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: ARW_new (MultiCharts)

p.s. because the 2nd arrow is not on the same bar as the 1st arrow,
you can use the same ID and do not have to create id.arw2.
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
TIKITRADER (08-21-2010)
Old 05-17-2009, 02:45 PM   #13
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 440
Ignore this user

Thanks: 238
Thanked 278 Times in 135 Posts



Re: ARW_new (MultiCharts)

This algorythm is really a master piece of logic (at my modest level)

I should have not be able to do it but I understand 100 % of the progression

It reminds me the lighted maths school hours.

I'm so happy !!!
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-17-2009)
Old 05-17-2009, 03:15 PM   #14
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 440
Ignore this user

Thanks: 238
Thanked 278 Times in 135 Posts



Re: ARW_new (MultiCharts)

Quote:
This one looks logical but doesn't work

Show me the way to the next (whisky bar) step
...

I tell you, I tell you, I tell you we must (die) find (JM)

Tam Tam Tam

Tam Tam Tam

Tam Tam Tam

Tam Tam Tam

aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (08-20-2010)
Old 02-10-2011, 04:34 PM   #15

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: ARW_new (MultiCharts)

Quote:
Originally Posted by aaa »
...

I tell you, I tell you, I tell you we must (die) find (JM)

Tam Tam Tam

Tam Tam Tam

Tam Tam Tam

Tam Tam Tam

my preferred confection.
__________________


..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"...

Last edited by Tams; 02-10-2011 at 04:54 PM.
Tams is online now  
Reply With Quote
Old 02-12-2011, 06:42 AM   #16
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 440
Ignore this user

Thanks: 238
Thanked 278 Times in 135 Posts



Re: ARW_new (MultiCharts)

Try This ;=)

******************

http://www.traderslaboratory.com/for...ator-9287.html
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (02-14-2011)

Reply

Tags
arrow, easylanguage, moving average, trendline

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting OEC to MultiCharts spyro Open E Cry 13 12-08-2009 04:58 AM
MultiCharts Going GOLD Soon ! Tams Brokers and Data Feeds 16 05-27-2009 08:56 AM
Help Converting EFS to MultiCharts rdkyote Coding Forum 3 11-03-2008 10:41 AM
Multicharts ptop Beginners Forum 8 11-04-2007 06:38 AM
MultiCharts and OpenECry data brownsfan019 Brokers and Data Feeds 0 05-07-2007 08:04 PM

All times are GMT -4. The time now is 09:02 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.