|
|
|
|
|||||||
| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() |
| Bookmarks | |||||||
del.icio.us
|
StumbleUpon
|
Google
|
Digg
|
Facebook
|
Furl
|
Reddit
|
Netscape
|
|
|
LinkBack | Thread Tools | Display Modes | Language |
|
|||
|
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. |
|
|||
|
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 |
| The Following User Says Thank You to BlowFish For This Useful Post: | ||
darknite999 (03-26-2008) | ||
|
|||||||||||||||
|
Re: Easylanguage and Script Help
![]() 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
__________________
Remember - Take the path of least resistance. |
|||||||||||||||
| The Following User Says Thank You to Blu-Ray For This Useful Post: | ||
darknite999 (03-26-2008) | ||
|
|||
|
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. |
|
||||
|
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. |
| The Following User Says Thank You to BlowFish For This Useful Post: | ||
darknite999 (03-26-2008) | ||
|
|||
|
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. |
|
||||
|
Re: Easylanguage and Script Help
Darknite
It would depend on your particular entry and stoploss criteria, Here's a strategy code I've done, but I've based it on entry 1 tick below the low of the reversal bar, with the stoploss being x amount of ticks above the high of the reversal bar ( I've made that section as an input, so you can decide ). Inputs: ProfTarget(30),StopLoss(1 ); { These inputs are in number of ticks } Vars: ShortEntry(0), Permission(0), Mintick(0), mystop(0), MP(0); MP = marketposition; Mintick = minmove/pricescale; Condition1 = C[1]>C[2] and H > H [1] and H > H[2] and C < O; if condition1 and MP = 0 then begin ShortEntry = Low - (1*mintick); mystop = High + (Stoploss*mintick); permission = 1; end; if permission = 1 then begin SellShort next bar at ShortEntry Stop; Permission = 0; end; if mp = -1 then begin buytocover ("ProfitTarget") next bar at ShortEntry - (ProfTarget*mintick) limit; buytocover ("StoppedOut") next bar at mystop stop; end; If you have exact entry and exit criteria different from above, just let me know and I'll amend it for you. Hope this helps Blu-Ray
__________________
Remember - Take the path of least resistance. |
| The Following User Says Thank You to Blu-Ray For This Useful Post: | ||
thrunner (03-27-2008) | ||
|
|||||||||||||||
|
Re: Easylanguage and Script Help
Hey, Thanks very much for your help. I would like to place a stop loss 2 ticks above the high and sellshort 1 tick below the low i want to buy to cover 30 below where I came in. Cheers and once again thank you, Darknite. |
|||||||||||||||
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MBT FX Trading Performance Script | Sparrow | Coding Forum | 3 | 03-06-2008 07:12 AM |
| Searching TTM Scalper Indicator Script for QuoteTracker | ray112 | Coding Forum | 0 | 02-06-2008 05:51 AM |
| Some EasyLanguage Help Please | jjthetrader | Coding Forum | 4 | 10-14-2007 07:34 PM |
| Chat Script from Nov. 7, 2006 on Forex Trading | Soultrader | Chat Room Scripts | 0 | 11-07-2006 02:28 PM |
| Antonio: Please help me on MP for easylanguage | nasdaq5048 | Market ProfileŽ | 12 | 10-31-2006 05:53 PM |