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

Reply
Old 08-15-2011, 02:13 PM   #1

Join Date: Apr 2007
Location: Andalusia
Posts: 23
Ignore this user

Thanks: 3
Thanked 1 Time in 1 Post

Smile Easylanguage Help

If I want to at say 6:00 am , take the price at exactly that time or I may change the time to 1:00 P.M., how do you program that?
I want to assign that to a variable, that then will be used in code that I already know how to do, but am having problems assigning the exact price at a time.
Please Help, it would be appreciated.
moneymarkets is offline  
Reply With Quote
Old 08-15-2011, 02:43 PM   #2

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Easylanguage Help

Code:
input:
specific.time(600);

var:
specific.price(0);


if TIME = specific.time then

specific.price = close;
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
moneymarkets (08-15-2011)
Old 08-15-2011, 03:37 PM   #3

Join Date: Apr 2007
Location: Andalusia
Posts: 23
Ignore this user

Thanks: 3
Thanked 1 Time in 1 Post

Smile Re: Easylanguage Help

Will that give you the close of that bar or price of time? I tried something similar and got different results with different time frames. I was trying to get something that would work on any tick, etc. I need the open price at say 6:00 a.m.

thanks for your quick response

if time =opentime then begin
openprice=open;
end;

With above I got different prices on different time frames?

Last edited by moneymarkets; 08-15-2011 at 03:51 PM.
moneymarkets is offline  
Reply With Quote
Old 08-15-2011, 03:57 PM   #4

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Easylanguage Help

Quote:
Originally Posted by moneymarkets »
Will that give you the close of that bar or price of time? I tried something similar and got different results with different time frames. I was trying to get something that would work on any tick, etc. I need the open price at say 6:00 a.m.

thanks for your quick response
open price is even easier...

just replace the keyword "CLOSE" with "OPEN".


Code:
input:
specific.time(600);

var:
specific.price(0);


if TIME = specific.time then

specific.price = OPEN;
bear in mind, tradestation and most of the chart programs use the bar ending time as reference.

if you are using a 5 min chart, the bar 0600 starts at 0555 and ends at 0600.
if you are using a 1 min chart, the bar 0600 starts at 0559 and ends at 0600.


forget about tick charts, it is a different animal.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
moneymarkets (08-15-2011)
Old 08-15-2011, 04:13 PM   #5

Join Date: Apr 2007
Location: Andalusia
Posts: 23
Ignore this user

Thanks: 3
Thanked 1 Time in 1 Post

Re: Easylanguage Help

Thats what I thought, ticks may be impossible to get the price at x time. Guess have to use minute charts for it.
Thanks again.
moneymarkets is offline  
Reply With Quote
Old 08-15-2011, 08:00 PM   #6

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Easylanguage Help

Quote:
Originally Posted by moneymarkets »
Thats what I thought, ticks may be impossible to get the price at x time. Guess have to use minute charts for it.
Thanks again.
not impossible, you just have to deal with each situation differently.

tradestation, OEC, etc., can do analysis down to the minute level,
while MultiCharts can drill down to the seconds level.

when you are using tick charts, you are basically dealing with sub-minute analysis.


if the x time is a session opening, then it is easy to find/pinpoint that trade.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 08-17-2011, 11:16 AM   #7

Join Date: Aug 2011
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Easylanguage Help

I read about a strategy that is used on a 15 minute bar and waits for an inside bar, then it trades the break of the high and the low of the bar before the inside bar. I've been trying to code the strategy in EL, but am having difficulty with a couple of things. Some help would be appreciated. First, does anybody know what this strategy might be called, or where I can read about it in detail?

As far as the coding goes (keep in mind I am very new at EL and programming at all):
(1) If I put the strategy I have written on a fifteen minute chart, it only trades (in and out) on a fifteen minute time ie 10:00, 2:15 etc.

(2) The code I wrote is not trading only after an inside bar. It is trading more often than that.

(3) I don't know how to do anything other than a fixed stop. I'd like to code this to stop a tick or two (best if I could optimize that) above or below the bar previous to the inside bar. I would assume I use a variable for the high or low price of that bar and then add or subtract a tick to it or something like that, but I don't quite have my head wrapped around it.

Most important: A BIG thanks to anybody who could help!
dcfs is offline  
Reply With Quote
Old 08-17-2011, 11:35 AM   #8

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Easylanguage Help

Quote:
Originally Posted by dcfs »
I read about a strategy that is used on a 15 minute bar and waits for an inside bar, then it trades the break of the high and the low of the bar before the inside bar. I've been trying to code the strategy in EL, but am having difficulty with a couple of things. Some help would be appreciated. First, does anybody know what this strategy might be called, or where I can read about it in detail?

As far as the coding goes (keep in mind I am very new at EL and programming at all):
(1) If I put the strategy I have written on a fifteen minute chart, it only trades (in and out) on a fifteen minute time ie 10:00, 2:15 etc.

(2) The code I wrote is not trading only after an inside bar. It is trading more often than that.

(3) I don't know how to do anything other than a fixed stop. I'd like to code this to stop a tick or two (best if I could optimize that) above or below the bar previous to the inside bar. I would assume I use a variable for the high or low price of that bar and then add or subtract a tick to it or something like that, but I don't quite have my head wrapped around it.

Most important: A BIG thanks to anybody who could help!
two ways to approach this:

1. hire a professional programmer

2. learn to do it yourself (and with help from forums like this).


to do the second method, you have to first get yourself started.
ie. go get the manual, get the ebooks... go through the examples in the ebooks. Then give your idea a try.

you can get the ebooks from either tradestation or MultiCharts website. They are free.
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 08-17-2011 at 11:47 AM.
Tams 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
Easylanguage at What Price trader273 Coding Forum 1 05-22-2010 11:23 PM
Median in Easylanguage trader273 Coding Forum 9 04-06-2010 01:43 PM
Looking For Coder That Knows MQL & EasyLanguage CafeTrader Coding Forum 3 03-18-2009 07:05 PM
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM

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