| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #1 | ||
![]() | EL Code Doubt ![]() i want all the orders to be cancelled before moving to the next day(this problem is there when giving stop orders). | ||
| |
|
| | #2 | ||
![]() | Re: EL Code Doubt vars:hi(0),lo(0); if time=1000 then{calculating high and low of the 10 am bar} hi=high; lo=low; end; buy next bar at hi stop;{placing orders to buy at high stop} sellshort next bar at low stop;{placing orders to buy at low} in this code the problem is that the orders get filled even on the next day and i dont want that.I want just the order to be filled that day itself if not then all orders should be cancelled. how to do can anybody help pls. | ||
| |
|
| | #3 | ||
![]() | Re: EL Code Doubt Building Winning Trading Systems with tradestation by George Pruitt & John R. Hill "When you code (slang for writing your ideas into a programming language) an analysis technique, you are directing the computer to follow your instructions to..." Key Phrases: buy next bar, buytocover next bar, certain price stop, Futures Truth, Super Combo, Dynamic Break Out ... ![]() http://www.amazon.com/Building-Winni...8783817&sr=8-1 | ||
| |
|
| | #4 | ||
![]() | Re: EL Code Doubt go to the EasyLanguage Dictionary... read through all the keywords once. (at least the strategy order keywords!) | ||
| |
|
| | #5 | ||
![]() | Re: EL Code Doubt for example see the code below: Inputs: longLength(5), shortLength(5); Buy tomorrow at Highest(High,longLength) stop; Sell Short tomorrow at Lowest(Low,shortLength) stop; when i put this strategy then when the next day opens it buy or sells in the opening bar itself( that is it takes the orders of previous days). But what i intend is to cancell all orders that day itself. for example if the next day opens, it should calculate from the first bar the highest high of bars and lowest low of 5 bars for entering.(It should not take previous days counting of bars) is there any way to do it? Thanks very much Tams for giving ur time to answer a newbie's questions. | ||
| |
|
| | #6 | ||
![]() | Re: EL Code Doubt write out your ideas one logic at a time write out your logic one thought at a time, write out your thoughts one action at a time, write out your actions one line at a time, think of the computer as a dumb machine. it can only take one instruction at a time, you have to give it step by step directions... otherwise it will be confused. if you can write out your thoughts in the above underlined fashion, maybe I can give you a hand. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
TIKITRADER (07-28-2009) | ||
| | #7 | ||
![]() | Re: EL Code Doubt | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Code | chrisleonard | Coding Forum | 3 | 07-10-2009 08:55 AM |
| What EL Code Should I Use ? | emptyvault | Coding Forum | 4 | 07-01-2009 10:08 AM |
| ADE Code | karsat | Coding Forum | 0 | 03-08-2009 08:06 PM |
| P&F Code | point-figure | Coding Forum | 0 | 02-17-2009 06:24 AM |
| Help To Code My EA | pepe1 | Coding Forum | 0 | 06-24-2008 01:41 PM |