| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Candlestick Coding Below is from MC and this indicates doji. Looking to have the text display above/below the bar, thanks. inputs: Percent( 5 ) ; if C_Doji( Percent ) = 1 then begin Plot1( Close, "Doji" ) ; Alert( "Doji" ) ; end ; | ||
| |
|
| | #2 | ||
![]() | Re: Candlestick Coding | ||
| |
|
| | #3 | ||
![]() | Re: Candlestick Coding Quote:
This is how its done in TS, it should work in MC too. //------------------------------------------------------------------------------------------------------------------- Input: My_TEXT ("Doji"); Input: Txt_below_bar (2); Input: Long_Clr (magenta); Input: Horizdown (3); Input: Vertdown (2); inputs: Percent( 5 ) ; variables:Text_ID2(0),one tick(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; //-------------------------------------------------------------------------------------------------------------------- | ||
| |
|
| | #4 | ||
![]() | Re: Candlestick Coding thanks for the reply. This looks to be what i'm trying to accomplish; however, when I compile I get the below error, any thoughts? "assignment is allowed only for variables or array elements" Input: My_TEXT ("Doji"); Input: Txt_below_bar (2); Input: Long_Clr (magenta); Input: Horizdown (3); Input: Vertdown (2); inputs: Percent( 5 ) ; 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; | ||
| |
|
| | #5 | ||
![]() | Re: Candlestick Coding Quote:
Code: variables:Text_ID2(0),one tick(0); Code: variables:Text_ID2(0),onetick(0); | ||
| |
|
| | #6 | ||
![]() | Re: Candlestick Coding Quote:
| ||
| |
|
| | #7 | ||
![]() | Re: Candlestick Coding Many thanks, it now works the way I had hoped. In applying these variables (and learning easy language/power language), is it possible to use the same inputs for other candlestick patters, for example bullish/bearish engulfing, etc... or are the parameters for the doji unique? | ||
| |
|
| | #8 | ||
![]() | Re: Candlestick Coding Candlestick detection is an ideal starter project to learn some easy language as it simply compares O,H,L & C's. Whether it is useful to trade with these patterns rather than reading the sentiment behind them depends on your objectives I guess. Edit: Its up to you what are suitable parameters for the indicators. I might require that a hanging man has 3 times the wick to the body tou might want 2.5. Easy language will simply detect what you tell it to. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why Do Candlestick Patterns Work? | TraderBG | The Candlestick Corner | 9 | 10-16-2008 06:53 PM |
| Why Candlestick Anaylsis is Different and Might Work for You | brownsfan019 | The Candlestick Corner | 18 | 04-10-2008 12:58 PM |
| Intraday Candlestick Trading | brownsfan019 | The Candlestick Corner | 53 | 12-19-2007 08:23 AM |
| Daily Candlestick Triggers | MrPaul | Technical Analysis | 36 | 03-29-2007 11:50 AM |