Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
-
Content Count
466 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by aaa
-
It looks very similar as the MACD histogram
-
I tried other ways but the original one works better // Down if high < high[1] and low < low[1] and high[1] < high[2] and low[1] < low[2] then begin I think that plot is not the right way to do it TL_New is a solution but I'm not competent to do it...
-
I tried without success I'm also interested if it works
-
I'm a good gal, I've made my homeworks. Is it correct ? Var: count( 0 ), count.end( 2 ); Arrays: Line.ID[2]( 0 ), level[2]( 0 ), Color[2]( 0 ); Level[1] = HighD(1); Level[2] = LowD(1); Color[1] = blue; Color[2] = red; for count = 1 to count.end begin Line.ID[count] = TL_New( d , t , level[count], d, t , level[count]); TL_SetColor(Line.ID, Color[count]); end;
-
With colored bars like in TAMS' chart //----------------------------------------------------- inputs: //---------------------------------------------------- up.color( blue ); //---------------------------------------------------- vars: //---------------------------------------------------- RF(0); if CurrentBar > 1 then begin if Date <> Date[1] then RF = 0; if Date = Date[1] then begin if High > High[1] then RF = RF + 1; if High < High[1] then RF = RF - 1; if Low > Low[1] then RF = RF + 1; if Low < Low[1] then RF = RF - 1; end; end; Plot1( 0 , "ZeroLine" ); Plot2( RF , "RF" ); if RF > RF[1] then SetPlotColor( 1 , up.color );
-
There is before TAMS... ...and after TAMS What an amazing program !!! I'm sure that everybody on this forum is glad to learn from you :missy:
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
I have no excuse now ! So array is a loop to read values Well... It is definitly out of my competence If someone knows how to do that he/she will be welcome
-
I'm too shy to do that... :haha: I'm a fan of your indicators and I 'm glad that you appreciate my tiny contribution.
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
Tams, could you help me to adapt my suggestion to your "plot" version ? If condition1 true then condition1 else if Condition2 true then condition2 ect.. I have problems with If * then begin * * end else noplot
- 9 replies
-
- candle
- easylanguage
-
(and 3 more)
Tagged with:
-
one more thanks In fact I'm still using MC 3.1 because I had stability problems with the next beta versions I'm waiting for the official release to test it
- 6 replies
-
- background
- color
-
(and 3 more)
Tagged with:
-
TAMS Thank you for this very interesting trick "Expand scale to indicator" is a new option in MC 5.xx I use to plot histograms below the price like on the pix enclosed Could it be possible painting only below the price instead of all screen ?
- 6 replies
-
- background
- color
-
(and 3 more)
Tagged with:
-
Thank you WaveSlider for your suggestions In fact I am really bad in coding, even EL is (supposed to be) easy, everything is new for me So... I don't know how to do arrays and also what arrays are !!! :crap: A counter will stop after x bars and not exactly when the support/Resistance is reached I was thinking of when the dots meets a price that stops the line It should be more in your logic ; A pivot starts to be interesting when it is a beginning of a wave And the idea of choosing a 3 bars is pertinent breaking his support/resistance supposes a reversal Sometimes it takes long time It should be interesting to view S/R untill it reaches price
-
Top and Bottom mixed in one bottom( 0 ); = Top bottom( 1 ); = Bottom // Masthead + Bottomline // version beta 0.1 // Author: TAMS // date: 20090416 // license: public use // description: this indicator prints the pertinent information on the bottom or top of the screen. // MultiChart version can adjust the text size. // you can easily modify this indicator with information of your choice // input: ATR.length1( 10 ), ATR.length2( 20 ), Text.size( 14 ), Text.color( black ), Bottom( 1 ); var: id.txt( -1 ), txt.data1( "" ), topprice( 0 ), bottomprice( 0 ); if Bottom = 0 then Value1 = getappinfo(aihighestdispvalue) else if Bottom > 0 then Value1 = getappinfo(ailowestdispvalue); txt.data1 = "HL="+NumToStr(highd(0)-lowd(0),2) + ", ATR"+NumToStr(ATR.length2,0)+"="+ NumToStr(AvgTrueRange( ATR.length2),2) + ", ATR"+NumToStr(ATR.length1,0)+"="+ NumToStr(AvgTrueRange( ATR.length1),2) + ", Range[1]="+NumToStr(range[1],2) + ", Range="+NumToStr(range,2); if currentbar = 1 then begin id.txt = text_new(d, t, Value1 , txt.data1); Text_SetStyle (id.txt , 1, 1); Text_Setcolor (id.txt , text.color); {MC only} text_setsize (id.txt , text.size); text_setattribute (id.txt, 1, true); end; text_SetString(id.txt, txt.data1); text_setlocation(id.txt, d, t, Value1);
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
Every week Tams shares great and simple ideas in this forum... Having any kind of information printed on the screen is powerfull.
- 10 replies
-
- atr
- easylanguage
-
(and 2 more)
Tagged with:
-
Like for the Black/white candles to take less space on the screen and avoids duplication This is an other suggestion to choose only one gap It // Gaps if GapUp AND GapUp[1] then Message = Message + "DoubleGapUp" else if L > 1.02 * H1 then Message = Message + "HugeGapUp" else if L > 1.01 * H1 then Message = Message + "BigGapUp" else if GapUp then Message = Message + "GapUp" ; if GapDn AND GapDn[ 1] then Message = Message + "DoubleGapDown" else if H < 0.98 * L1 then Message = Message + "HugeGapDown" else if H < 0.99 * L1 then Message = Message + "BigGapDown" else if GapDn then Message = Message + "GapDown" ;
- 9 replies
-
- candle
- easylanguage
-
(and 3 more)
Tagged with:
-
I use this indicator to filter the "interesting" pivots which could be support/ resistance Also the 3 candles shows a good entry/exit point I'm still try to stop the dots at the next price... Should I create flags for each pivot ? (On my picture the lines are the dots' extension)
-
I like this educative indicator This is a suggestion to have only one candle at a time if ((C>O) AND((C-O)/(.001+H-L)>.6)) then Message = Message + " LongWhiteCandle" else if (C>O) then Message = Message + " WhiteCandle" else if ((C>O) AND ((H-L)>(3*(C-O)))) then Message = Message + " SmallWhiteCandle" ; if (O>C AND (O-C)/(.001+H-L)>.6) then Message = Message + " LongBlkCandle" else if (O>C) then Message = Message + " BlkCandle" else if ((O>C) AND ((H-L)>(3*(O-C)))) then Message = Message + " SmallBlkCandle" ;
- 9 replies
-
- candle
- easylanguage
-
(and 3 more)
Tagged with:
-
Yes, We have good teachers here to help with this excellent trading software But, It is only 2 tiny lines of Blue-Ray's script... Anyway, Thanks for your compliment Tams. Have a nice week trades.
-
I have added size and style option to this nice indicator inputs: // StartTime( 0900 ), // EndTime( 1030 ), StartTime( SessionStartTime(1,1)), EndTime( CalcTime(SessionStartTime(1,1),90)), HL.Size( 1 ), HL.Style( 2 ), HighColor( green), LowColor( red) ; variables: HavePrevLines( false ), TLHigh( 0 ), TLLow( 0 ), PeriodHigh( 0 ), PeriodLow( 999999 ) ; if BarType <= 1 then { ie, if minute or tick bars } begin // if Date <> Date[1] then { ie, if new day } if CurrentSession(0) <> CurrentSession(0)[1] then { ie, if new session } begin { truncate the previous lines if they exist } if HavePrevLines then begin TL_SetEnd( TLHigh, Date[1], Time[1], PeriodHigh ) ; TL_SetEnd( TLLow, Date[1], Time[1], PeriodLow ) ; TL_SetExtRight( TLHigh, false ) ; TL_SetExtRight( TLLow, false ) ; end ; { re-initialize PeriodHigh,PeriodLow for the new day } PeriodHigh = 0 ; PeriodLow = 999999 ; { insert the new H,L lines and set their colors/extents } TLHigh = TL_New( Date, Time, PeriodHigh, Date, Time, PeriodHigh ) ; TLLow = TL_New( Date, Time, PeriodLow, Date, Time, PeriodLow ) ; TL_SetColor( TLHigh, HighColor ) ; TL_SetColor( TLLow, LowColor ) ; TL_SetSize( TLHigh , HL.Size ); TL_SetSize( TLLow , HL.Size ); TL_SetStyle( TLHigh , HL.Style ); TL_SetStyle( TLLow , HL.Style ); TL_SetExtLeft( TLHigh, false ) ; TL_SetExtLeft( TLLow,false ) ; TL_SetExtRight( TLHigh, true ) ; TL_SetExtRight( TLLow, true ) ; { set flag } if HavePrevLines = false then HavePrevLines = true ; end ; if HavePrevLines = true then begin if StartTime <= Time and Time <= EndTime then begin if High > PeriodHigh then begin PeriodHigh = High ; { MUST reset TL end before resetting TL beginning in this case; if order reversed, begin will first be reset to right side of end, and become the new end; this will then again be reset by the subsequent statement; the original begin will not be reset at all. } TL_SetEnd( TLHigh, Date, Time, PeriodHigh ) ; TL_SetBegin( TLHigh, Date, Time, PeriodHigh ) ; end ; if Low < PeriodLow then begin PeriodLow = Low ; { MUST reset TL end before resetting TL beginning in this case; see above. } TL_SetEnd( TLLow, Date, Time, PeriodLow ) ; TL_SetBegin( TLLow, Date, Time, PeriodLow ) ; end ; end ; end ; end ;
-
In an other hand TAMS' zigzag is pretty much better than the original in MC or TS It takes the real High + low with incredible precisions Could it be possible to integrate the tams' code instead of pivotlowvs(1,l,2,2,20) pivothighvs(1,h,2,2,20)
-
Here is a snap The white lines should be the extension of the dots until they reaches a price It wil show the end of Support and resistance based of the last pivots
-
I'm so stupid with the HTML Wrap...:crap: OK I've found it up ! First insert C.O.D.E tag Than write the text than insert the /C.o.d.e tag And very important ; reload the page !!!!!!
-
Hello Is there a way to set the end of each line at the next low/high instead of the next pivot ? I tried but I've reached my limits in programming... var:flag(0),value2last(0),value1last(0),bullflag(0),bearflag(0); if h>h[1] and low>low[1] and h[1]>h[2] and l[1]>l[2] and h[2]>h[3] and l[2]>l[3] then begin value1=pivotlowvs(1,l,2,2,20)[1]; bullflag=bullflag+1; end; //It doesn't work... if h<h[1] and low<low[1] and h[1]<h[2] and l[1]<l[2] and h[2]<h[3] and l[2]<l[3] then begin value2=pivothighvs(1,h,2,2,20)[1]; bearflag=bearflag+1; end; if value1<>value1[1] then value1last=value1[1]; if value2<>value2[1] then value2last=value2[1]; if bullflag>0 and c<value1 then bullflag=0; if bearflag>0 and c>value2 then bearflag=0; if l>value1 and bullflag>=2 and value1>value1last then begin plot1(value1,"stop"); end; if h<value2 and bearflag>=2 and value2<value2last then begin plot2(value2,"sstop"); end; if l>value1 and bullflag>=2 and value1>value1last then begin value10 = tl_new( date, Time , value1, date, Time , value1); end ; if close <= value1 then value11 = time ; tl_setbegin(value10, date, Time , value10 ); tl_setend(value10, date, value11,value10 );
-
Note that a price will never reach an ATR target because they are linked Better to leave a yesterday target like in the code of TAMS // ATR Marker with the option to plot the historical ATR lines // version: 1.1 // author: TAMS // date: 20090325 // license: public use // description: this indicator prints the ATR value on the chart // High ATR = C[1] + ATR[1] // Low ATR = C[1] - ATR[1] // // input: Show.lines(true), x.ATR(3), ATR.Period(10), text.color(black), decimal(2); vars: id.txt.HighAtr(-1), id.txt.LowAtr(-1), Atr(0), HighATR(0), LowATR(0); Atr = AvgTrueRange(ATR.Period); HighATR = h[1] + x.ATR * ATR[1]; LowATR = l[1] - x.ATR * ATR[1]; if currentbar = 1 then begin id.txt.HighAtr = Text_New(Date, Time, HighATR, "High ATR"); id.txt.LowAtr = Text_New(Date, Time, LowATR, "Low ATR"); text_Setcolor(id.txt.HighAtr, text.color); text_Setcolor(id.txt.LowAtr, text.color); text_Setstyle(id.txt.HighAtr, 0, 2); text_Setstyle(id.txt.LowAtr, 0, 2); end; text_SetLocation(id.txt.HighAtr,date, time, HighATR); text_SetLocation(id.txt.LowAtr,date, time, LowATR); text_SetString(id.txt.HighAtr ," < "+NumToStr(HighATR,decimal)+" High ATR"); text_SetString(id.txt.LowAtr, " < "+NumToStr(LowATR,decimal)+" Low ATR"); if Show.lines then begin plot1[1](HighATR, "HighATR"); plot2[1](LowATR, "LowATR"); end;
-
Hi Tams I'm wondering if there is a way to begin the ligne on the last value on the right side of the chart instead of go x bars before And is there an other way to code the numbers to appear like in your ATR Marker ? If you got Xtra time for helpcoding of course