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

Reply
Old 03-25-2008, 03:24 PM   #1

Join Date: Mar 2008
Posts: 25
Ignore this user

Thanks: 8
Thanked 0 Times in 0 Posts

Easylanguage and Script Help

Hello, (Apologies in advanced if I have posted this in the wrong place)

I'm new to easylanguage scripting and was wondering if someone could help me please.

I want to write a script that will show me, on an upward trend of 3 or more candlesticks, the highest high of that trend. The new high must be a red candelstick and the trend must contain at least one green candle.

How would I go about doing this please?

Thanks for you help in advanced,
Darknite.
darknite999 is offline  
Reply With Quote
Old 03-25-2008, 04:44 PM   #2
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,349
Ignore this user

Thanks: 317
Thanked 355 Times in 256 Posts
Blog Entries: 104

Re: Easylanguage and Script Help

please spec out a little bit more about what you mean by
1 "upward trend".
is the lowest low >= 4 bars ago or
must the trend members lows all be higher than previous low or
_______ ???

thx
zdo is offline  
Reply With Quote
Old 03-25-2008, 05:49 PM   #3

Join Date: Mar 2008
Posts: 25
Ignore this user

Thanks: 8
Thanked 0 Times in 0 Posts

Re: Easylanguage and Script Help



I hope this sums it up

Once again thanks for your help it's much apreciated.

Cheers,
Darknite
darknite999 is offline  
Reply With Quote
Old 03-26-2008, 09:24 AM   #4

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Easylanguage and Script Help

IF C[1]>C[2] and c[2] > C[3] and C[3] > C [4] and H > H [1] and C < O then
plot1 (h+1,"High")
else
noplot1;

Set to plot a dot, it should plot over the high on bar close. You can but your own logic in quite simply. The number in square brackets [n] signifies n bars ago. Haven't tested it as I typed it straight into the post. I'm sure BlueRay wll correct it if I am wrong
BlowFish is offline  
Reply With Quote
The Following User Says Thank You to BlowFish For This Useful Post:
darknite999 (03-26-2008)
Old 03-26-2008, 09:45 AM   #5

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 292 Times in 105 Posts

Re: Easylanguage and Script Help

Quote:
Originally Posted by BlowFish »
IF C[1]>C[2] and c[2] > C[3] and C[3] > C [4] and H > H [1] and C < O then
plot1 (h+1,"High")
else
noplot1;

Set to plot a dot, it should plot over the high on bar close. You can but your own logic in quite simply. The number in square brackets [n] signifies n bars ago. Haven't tested it as I typed it straight into the post. I'm sure BlueRay wll correct it if I am wrong
hehehe....nice one Blowfish.

The only thing I would add to the line would be :

H > H[2] and H > H[3] and H > H[4]

Just incase one of the previous candles had a higher high leaving a long shadow. As with Blowfish, I've never tested it, but give it a try and let us know how you get on.

Cheers

Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote
The Following User Says Thank You to Blu-Ray For This Useful Post:
darknite999 (03-26-2008)
Old 03-26-2008, 12:55 PM   #6

Join Date: Mar 2008
Posts: 25
Ignore this user

Thanks: 8
Thanked 0 Times in 0 Posts

Re: Easylanguage and Script Help

Great!!

It worked just about so I had a look through what you told me and made a few adjustments so instead it was this:

IF C[1]>C[2] and H > H [1] and H > H[2] and C < O then
plot1 (h+1,"High")
else
noplot(1);

How would I do this for a strategy please?

how do I add a stoploss and tell it to sell and buy back 30 points below...

Once again greatly apreciated and thanks for your help,
Darknite.
darknite999 is offline  
Reply With Quote
Old 03-26-2008, 01:42 PM   #7

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Easylanguage and Script Help

I have never used a strategy in TS so I will defer to BlueRay Hopefully will learn something too. There are a bunch of reserved words to buy sell etc. that I guess would go in instead of plot.

Easylanguage really is pretty easy (IMHO) and a bit of hands on will get you there in no time at all.

Perhaps look at one of the sample strategies to see how it hangs together. Im sure there must be one for a moving average Xover or something similar.

Be interested how it pans out for you.
BlowFish is offline  
Reply With Quote
The Following User Says Thank You to BlowFish For This Useful Post:
darknite999 (03-26-2008)
Old 03-26-2008, 02:35 PM   #8

Join Date: Mar 2008
Posts: 25
Ignore this user

Thanks: 8
Thanked 0 Times in 0 Posts

Re: Easylanguage and Script Help

Cheers,

If anyone else could help me please that would be brilliant

In the mean time i'll see if I can find a sample strategy that has those commands i'm looking for (haven't found so far and the websites on google are running out :P)

All I need to know is how to sellshort and I think it's buy to cover 30 points below...

Grrrrr difficult :P

Cheers.
darknite999 is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Antonio: Please help me on MP for easylanguage nasdaq5048 Market Profile 13 09-23-2010 09:50 AM
Searching TTM Scalper Indicator Script for QuoteTracker ray112 Coding Forum 11 02-15-2010 09:07 AM
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM
MBT FX Trading Performance Script Sparrow Coding Forum 3 03-06-2008 07:12 AM
Chat Script from Nov. 7, 2006 on Forex Trading Soultrader Chat Room Scripts 0 11-07-2006 02:28 PM

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