| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Intraday Orders (EL) Quote:
organize your thoughts/logics, separate the "global" requirement from the detail logics so that the code does not look crowded. i.e. make it easy to read and debug. e.g. you can separate this requirement from the detail logics time>0930 and time<1630 Code: var:
trading.hour(false);
trading.hour = time>0930 and time<1630;
if trading.hour = true then
begin
{--- write your codes here---}
end;
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #10 | ||
![]() | Re: Intraday Orders (EL) Xcellent TAMS (as always) and so patient... It's good 2 follow your logic process 2 built an algorytm After it's a question of reading the EL manual, ain't it ?! ![]() rgds | ||
| |
|
| The Following User Says Thank You to aaa For This Useful Post: | ||
Tams (05-29-2010) | ||
| | #11 | ||
![]() | Re: Intraday Orders (EL) Quote:
EasyLanguage has been around for ~20 years; their manuals and tutorials are the result of years of refinement, no other trading programming language can rival its breadth and depth in coverage and code samples. I would dare to say, practically anything that you can imagine, has been done. It is only a matter of time to search out the fragment of code that is floating around in the ether space.
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
aaa (05-29-2010) | ||
| | #12 | ||
![]() | Re: Intraday Orders (EL) | ||
| |
|
| | #13 | ||
![]() | Re: Intraday Orders (EL) 1) I think you need to write the function for new high for the day, as there is only default indicator( Not sure about TS, my platform is MC), not default function..function will be like this Code: variables: var0( 0 ) ; if BarType < 2 then begin if Date <> Date[1] then var0 = High else if High > var0 then var0 = High ; NEWHD=var0; end ; So your 50 point below new high of the day will look like this Code: Inputs: filter(50),opentime(0930),closetime(1630); vars:trigger(0),newhdShort(false) ; trigger = newhd[1] - filter ; If marketposition = 0 then begin newhdShort = (time > opentime and time < closetime) and high <= newhd[1] - filter ; If newhdshort then sell short next bar at trigger stop ; setexitonclose ; end; | ||
| |
|
| | #14 | ||
![]() | Re: Intraday Orders (EL) Your approach appeals to me. I am also using MultiCharts but it fails to compile the function you wrote. The error is 'assignment is allowed only for variables or array elements' and 'NEWHD' is highlighted. Why is that? I've never created any functions, only signals. Maybe there is a mistake there. And as for variables assignment under 'inputs', I know about that. I just wanted to write the code as small as possible not loading people with lots of words. | ||
| |
|
| | #15 | ||
![]() | Re: Intraday Orders (EL) Quote:
| ||
| |
|
| | #16 | ||
![]() | Re: Intraday Orders (EL) Although, the code doen't work OK so far (there comes only one trade for many mounths), I hope my tuning will help. Alex, thank you so much! | ||
| |
|
| The Following User Says Thank You to GRANDEUR For This Useful Post: | ||
alex_laxya (06-04-2010) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Intraday 1minute Data for Nasdaq | balapandian | Trading and the Markets | 3 | 06-21-2010 10:16 AM |