|
|||||||||||||||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
In "Catching DJIA Breakouts" in this issue, I discuss the strategy of buyingmarkets that are breaking out to new highs, and present the results ofbuying breakouts in the Dow Jones Industrial Average (DJIA). In EasyLanguage, you can create a Boolean variable or a ShowMe studyto simply test whether the two conditions of a breakout are met. However, I thought it more useful to have the function return the numberof bars since the last time a new high was achieved. The only time a numberother than zero is returned is when it is a true breakout (the functionwill return a zero either when no new high is achieved or when a new highhas been achieved, but it has not been a breakout of look_bak length orgreater). Note that all of the work of the breakout system went into the breakout function.
This is perhaps the best way to develop your ideas: first create a function,
then use the function to create indicators, ShowMe studies, and systems. If
later you change the function, all the studies on whichit is based will be changed
automatically, freeing you from the labor requiredto change each study. Code:{********************1/26/2000 Mark Vakkur, M.D. Inputs: Vars: bar_count(0), If CurrentBar = 1 Else {this isn't the highest high } Breakout_Range2 = 0; Type : Signal, Name : Breakout_Range2
Code to difficult? Find somebody to help you with coding here.
all systems for TradeStation all systems
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
||
|
||
|