| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Can't Follow the Code, Please Help.... Last edited by Corey; 02-06-2011 at 05:16 PM. | ||
| |
|
| | #10 | ||
![]() | Re: Can't Follow the Code, Please Help.... Do you know what the function "swingHighBar(...)" does? also you need to understand this notation "H[possibleHighBarsAgo];" spend some more time studying the code. If you know what the purpose of the overall strategy is supposed to do then viewing the code is alot easier. I believe you dont understand this comment from the original code "This plots swing highs/lows with a strength of 2 bars on each side, on the condition that there is a close above/below the high/low the bar after the said swing bar......whew that's a mouthful!" | ||
| |
|
| | #11 | ||
![]() | Re: Can't Follow the Code, Please Help.... Quote:
you can do that if you are a programmer. try 20 hours if you are not.
__________________ Only an idiot would reply to a stupid post Last edited by Tams; 02-06-2011 at 06:11 PM. | ||
| |
|
| | #12 | ||
![]() | Re: Can't Follow the Code, Please Help.... Quote:
draw a flow chart as you go. don't forget, you are dealing with a "system" here. this is not as simple as a few sentences' worth of explanation. but if you have patience and trace through the process, you will find the logic is not that difficult.
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #13 | ||
![]() | Re: Can't Follow the Code, Please Help.... You do have to spend a lot more than two hours to learn EasyLanguage programming. Let me try to help you understand this code a little better. First, open the tradestation Help and in the search tab put in swingHighBar. That'll give you a page that explains what this function does exactly, and what the different input parameters mean. Essentially it'll give you the bar number for the swing high. H[2] means the high of two bars ago, it does not mean that the high is 2. Numbers or variables inside square brackets tell you how many bars ago to reference. Your question about the if - the code is checking if the most recent swing high is lower than the prior highest swing level, which I believe is then used by the program to determine that the uptrend is over. You really need to commit to spending more time learning EasyLanguage, there are simply no shortcuts to that. And I fear you may be setting yourself up for a hard time in the markets if you think all you need is some free trading strategy and a couple of hours time to get started. Buckle down and invest the time to learn, start with the simple code examples in the tradestation tutorials, write your own simple strategy and test it out, do some demo trading, and if after all of that you think that you have a winning strategy, then go ahead and trade real money. And be prepared to deal with losing trades because they will come and are an unavoidable element of trading. Good luck in your studies. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does Anyone Use a Smartphone to Follow the Markets and the News... | HighStakes | Tools of the Trade | 11 | 05-27-2011 12:16 PM |
| 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 |
| Follow The Smart $$: Let Candles & Volume Guide The Way | brownsfan019 | The Candlestick Corner | 16 | 01-13-2009 10:27 PM |
| Hey Guys, just follow the smart money ¡¡ | walterw | General Discussion | 2 | 03-22-2007 07:54 PM |