Candlestick Functions
Author: angel57
Creation Date: 8/27/2008 2:19 AM
profile picture

angel57

#1
I created a simple strategy from rules using candlestick patterns, and then looked at the actual code. It appears one cannot modify the criteria of the candlestick patterns. Is there separate source code somewhere with the underlying information so I could at least see their example definitions and then create some similiar ones of my own? Also, I did not see any information in the QuickRef regarding the candlestick namespace and how to use it. Any help would be appreciated.
profile picture

Eugene

#2
Just a side note on this one:
QUOTE:
Also, I did not see any information in the QuickRef regarding the candlestick namespace and how to use it.
General rule: if you don't find a namespace in the QuickRef, not including it was a Fidelity decision and therefore its usage is unsupported.
profile picture

Cone

#3
I think the Rules methods should eventually be documented in the WealthScript Programming Guide (read: "I will have to eventually document...") for a code reference outside of the Wizard use. Nonetheless, you can easily figure out how to use the methods provided by using one or two of the rules and changing their parameters.

The implementations of the Candlestick rules, although "hidden" in Version 5 to greatly simplify script code, were interpreted directly from the Version 4 rules, whose code you can access. If you want to change the implementation or some rule, just translate the Version 4 code.
profile picture

angel57

#4
Can you provide a link to version 4 code? I did a little searching on that site, but did not find it.
profile picture

Cone

#5
It's integrated into the Wizard Rules. When you use one of the rules, the Candlestick function appears in the code. Do you have Version 4?
profile picture

angel57

#6
No I do not. I started with WL 5.0 and now 5.1.
profile picture

Cone

#7
Hmmm, it seems that it would take an extraordinary effort to export a Memo field to a text file, and, it would be way too painful to copy the code for these one by one. Is there one that you're particularly interested in?

"Bearish Belt Hold",
"Bearish Dark Cloud Cover",
"Bearish Doji Star",
"Bearish Engulfing Lines",
"Bearish Evening Star",
"Bearish Hanging Man",
"Bearish Harami",
"Bearish Harami Cross",
"Bearish Kicking",
"Bearish Long Black Line",
"Bearish Separating Lines",
"Bearish Shooting Star",
"Bearish Side-By-Side White Lines",
"Bearish Three Black Crows",
"Bearish Three Inside Down",
"Bearish Three Outside Down",
"Bearish Tri Star",
"Bullish Belt Hold",
"Bullish Doji Star",
"Bullish Engulfing Lines",
"Bullish Hammer",
"Bullish Harami",
"Bullish Harami Cross",
"Bullish Inverted Hammer",
"Bullish Kicking",
"Bullish Long White Line",
"Bullish Morning Star",
"Bullish Piercing Line",
"Bullish Separating Lines",
"Bullish Side-By-Side White Lines",
"Bullish Three Inside Up",
"Bullish Three Outside Up",
"Bullish Three White Soldiers",
"Bullish Tri Star",
"Neutral Doji",
"Neutral Marubozu",
"Neutral Spinning Top",
"Reversal Dragonfly Doji",
"Reversal Gravestone Doji",
"Reversal Long-legged Doji",

Note - you can install Version 4 and run it as a trial for 30 days to access this code. The ChartScript Wizard works in much the same way as Version 5.
profile picture

angel57

#8
Most interested at the moment in Bullish Hammer, Bullish Three White Soldiers, Bearish Three Black Crows, and the Bullish/Bearish Engulfing Lines.
profile picture

Cone

#9
I don't want to be a middle man in copy and pasting code here, so please just install a Version 4 trial, use the ChartScript Wizard to create a buy rule, and then drag the candle pattern condition(s) that you're interested in and review the corresponding function in the code. You'll get something like this:

CODE:
Please log in to see this code.
Your can then create an equivalent custom set of boolean functions for Version 5.
profile picture

angel57

#10
Thanks. Will do.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).