| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Candlestick Coding Quote:
If I understand you correctly then yes, you can use the same code above and below the code for the doji, in concert with another code that describes another candle pattern and just name them engulfing or what ever via an input. In the past I have coded apprx 30+ candle patterns and use the same text code and inputs (inputs/variables related to plotting the text)that I posted above. By the way,...Im sure you are already aware of this, just in case, the definitions for candlesstick pattern in TS Indicator Library or most books e.g. Nison are very....hmm how to say this....lets just say that they are very humble and thats being kind, an introduction at most. | ||
| |
|
| | #10 | ||
![]() | Re: Candlestick Coding Quote:
| ||
| |
|
| | #11 | ||
![]() | Re: Candlestick Coding | ||
| |
|
| | #12 | ||
![]() | Re: Candlestick Coding I would then have a case statement with the appropriate combination of the booleans so for example OpenNearClose and CloseHigh and LowTailTwiceBody .......then do hammer code or set hammer boolean for later printing. Makes things very easy extensible. | ||
| |
|
| | #13 | ||
![]() | Re: Candlestick Coding Quote:
like this? ![]() 73.57 http://www.traderslaboratory.com/for...tern-5736.html
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... | ||
| |
|
| | #14 | ||
![]() | Re: Candlestick Coding I was able to add the text for the remainder of the candlestick indicators but now curious how I would go about painting the bar a different colour so its easier to view. Below is the code you and sevensa helped with: Input: My_TEXT ("Doji"); Input: Txt_below_bar (15); Input: Long_Clr (white); Input: Horizdown (3); Input: Vertdown (2); inputs: Percent (5); variables: Text_ID2(0), onetick(0); onetick = minmove/pricescale; if C_Doji( Percent ) = 1 then begin Text_ID2 = Text_New( Date, Time, low-Txt_below_bar*onetick, My_TEXT ); text_setcolor( Text_ID2,long_clr) ; Text_SetStyle(Text_ID2, horizdown, vertdown); end; | ||
| |
|
| | #15 | ||
![]() | Re: Candlestick Coding Quote:
Usually if you want to paint the bar it self then a Paintbar study/format is used. You can take a look at existing paintbar studies to get an idea. That said... you can use, for example, a showme to place a market on the bar it self...You would just need to specify which part of the bar to place the marker. Below is a your doji code in paintabr study....I bracketed the codes related to the text plots because you dont need it for the paint bar. Code: //Input: My_TEXT ("Doji");
//Input: Txt_below_bar (15);
//Input: Long_Clr (white);
//Input: Horizdown (3);
//Input: Vertdown (2);
inputs: Percent (5);
//variables: Text_ID2(0),onetick(0);
//onetick = minmove/pricescale;
if C_Doji( Percent ) = 1 then begin
{Text_ID2 = Text_New( Date, Time, low-Txt_below_bar*onetick, My_TEXT );
text_setcolor( Text_ID2,long_clr) ;
Text_SetStyle(Text_ID2, horizdown, vertdown);
end;}
PlotPaintBar( High,Low ) ;
Alert ;
end
else
NoPlot( 1 ) ; { remove the marker } | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why Do Candlestick Patterns Work? | TraderBG | The Candlestick Corner | 9 | 10-16-2008 07:53 PM |
| Why Candlestick Anaylsis is Different and Might Work for You | brownsfan019 | The Candlestick Corner | 18 | 04-10-2008 01:58 PM |
| Intraday Candlestick Trading | brownsfan019 | The Candlestick Corner | 53 | 12-19-2007 09:23 AM |
| Daily Candlestick Triggers | MrPaul | Technical Analysis | 36 | 03-29-2007 12:50 PM |