buy zone for tradestation 2000i

If you don't know where to start, start here! Don't be afraid to ask questions.

Moderator: moderators

italiantrader
rank: <50 posts
rank: <50 posts
Posts: 12
Joined: Thu May 17, 2007 11:58 am
Reputation: 0
Gender: None specified

Postby italiantrader » Mon Nov 05, 2007 10:42 am

Sorry for the disturb, so I found the function addtime in a website, the function bartype I think is not important if I use minute and tick chart. I need only the function dailyopen, someone can write it in text form? Thanks.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

vittorio
rank: <50 posts
rank: <50 posts
Posts: 39
Joined: Thu Feb 15, 2007 4:09 pm
Reputation: 0
Location: Italy
Gender: Male

Postby vittorio » Mon Nov 05, 2007 1:17 pm

Sorry for the disturb, so I found the function addtime in a website, the function bartype I think is not important if I use minute and tick chart. I need only the function dailyopen, someone can write it in text form? Thanks.



Input : WantDay(NumericSimple);
Var: x(0);
Array : DayOpen[10](0);

{ This keeps track of daily opens regardless of time interval of chart }
If Date > Date[1] then begin

{ Slide each value in the array back one }
For x = 10 downto 1 Begin
DayOpen[x] = DayOpen[x - 1];
End;

DayOpen[0] = Open;
End;

DailyOpen = DayOpen[WantDay];

User avatar
daniil
rank: 50+ posts
rank: 50+ posts
Posts: 61
Joined: Mon May 07, 2007 6:40 am
Reputation: 0
Gender: Male

Postby daniil » Tue Nov 06, 2007 1:23 am

4x=0!

Please test MT4 BZ and report me.
please load as many indicators as many sessions you want. please choose different "session_name" parameters ("London", "NY"...)
for alpari you use London = 8, NY = 13...

Attachments
BZ.zip
(1.11 KiB) Downloaded 36 times

4x=0
rank: 150+ posts
rank: 150+ posts
Posts: 410
Joined: Tue Oct 17, 2006 10:53 pm
Reputation: 0
Gender: Male

Postby 4x=0 » Tue Nov 06, 2007 1:42 am

"Please test MT4 BZ and report me. "

And this day, the 5th day of November, 2007, marks a historical event. The day 4x=0 and many others finally obtained a BZ line plotter for MT4, thanks to our compadre, pirate Daniil!

4x=0

4x=0
rank: 150+ posts
rank: 150+ posts
Posts: 410
Joined: Tue Oct 17, 2006 10:53 pm
Reputation: 0
Gender: Male

Postby 4x=0 » Tue Nov 06, 2007 2:19 am

Once I figure out how to install this sucker I will send you more feedback than you probably wanted.

Off the bat, we can take off the center line, that isn't needed. And we only need 2 lines for each session, one +4 and one -4 of the open. These lines can be solid not dashed, and here are the colors:

sydney = orange
tokyo = yellow
london = red
nyc = blue

IF you really want to be advanced, we keep each session on for 48 hours, but after 24 hours the old session becomes dashed lines. :) can you handle that?

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

4x=0
rank: 150+ posts
rank: 150+ posts
Posts: 410
Joined: Tue Oct 17, 2006 10:53 pm
Reputation: 0
Gender: Male

Postby 4x=0 » Tue Nov 06, 2007 4:56 am

Hey I got it to work and I changed a few things.

Do you know how long I have waited for this?? HAHAH

Thanks Daniil, you da man!



Beautiful isn't it?

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 11405
Joined: Sun May 14, 2006 9:31 pm
Reputation: 45
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Tue Nov 06, 2007 5:44 am

Now, have a new buyzone for each hour. That's right, 24 buyzones!! But the lines should only extend for 60 minutes and not into the next hour.

You know the average 60 minute range. Should make it easy to take pips.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!

Please do NOT PM me with trading or coding questions, post them in a thread.

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 11405
Joined: Sun May 14, 2006 9:31 pm
Reputation: 45
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Tue Nov 06, 2007 5:49 am

Hey 4x=0, please do us a favor and write a step by step guide on how to setup MT4 and install the buyzone code.

I have never used MT4 so I am curious.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!



Please do NOT PM me with trading or coding questions, post them in a thread.

4x=0
rank: 150+ posts
rank: 150+ posts
Posts: 410
Joined: Tue Oct 17, 2006 10:53 pm
Reputation: 0
Gender: Male

Postby 4x=0 » Tue Nov 06, 2007 6:17 am

I must have been the last trader on the planet to learn how to install an MT4 indicator. Well, except you :) -- It's easy.

Put the file in the directory

c:\programfiles\metatrader\experts\indicators\

Close MT4, re open it.

On the top menu go to "insert" --> "indicators" --> "custom"

That should do it.

User avatar
daniil
rank: 50+ posts
rank: 50+ posts
Posts: 61
Joined: Mon May 07, 2007 6:40 am
Reputation: 0
Gender: Male

Postby daniil » Tue Nov 06, 2007 6:22 am

Avery!
4x=0 has many copies of MT4, so he put it into the wrong folder.
No problem to set it up, just copy bz.mt4 to "experts/indicators" and restart MT4.

attach as many indicators as many sessions you want. they must have different "session_name" parameter.
pls check - the attached draws lines every hour for 1 hour


TRO please tell me do you have beta of "project omega"? will you use it? will you code your indicators for it?

BRGDS, Dan
Attachments
BZ_everyhour.zip
(1.16 KiB) Downloaded 38 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “beginners forum”