| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | I was watching a vid from TradeGuider.com and liked the way their charts plotted a horizontal trendline at the value of every current tick. Here is the code I was playing with: Code: Vars: mytime(0), mydate(0); If barnumber=1 then begin mytime=time; mydate=date; end; Variables: ID(0); if lastbaronchart then begin ID = TL_New(MyDate, MyTime, Close, Date, Time, Close); Value1 = TL_SetExtRight(ID, True); "a condition here".................TL_Delete(ID); end; I'm assuming that the 'lastbaronchart' may not need to be used. This was used to test the recent activity of the T/L. I also played with barnumber<>barnumber[1] parameters to delete previuos T/Ls but since T/Ls were plotted more than once per bar this did not seem to work. Any ideas? Thanks in advance, Sim. | ||
| |
|
| | #2 | ||
![]() | Re: Help with Plotting Close T/L on Each New Bar Here you go, try this : Code: Variables: mytime(0),mydate(0),ID(0),OldID(0); If barnumber=1 then begin mytime=time; mydate=date; end; If TL_Exist(OldID) then TL_Delete(OldID); if lastbaronchart then begin ID = TL_New(MyDate, MyTime, Close, Date, Time, Close); Value1 = TL_SetExtRight(ID, True); OldID = ID; end; Hope this helps Blu-Ray
__________________ “ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google Last edited by Blu-Ray; 11-02-2009 at 07:18 AM. | ||
| |
|
| The Following User Says Thank You to Blu-Ray For This Useful Post: | ||
aaa (11-07-2009) | ||
| | #3 | ||
![]() | Re: Help with Plotting Close T/L on Each New Bar | ||
| |
|
| The Following User Says Thank You to simterann22 For This Useful Post: | ||
Blu-Ray (11-03-2009) | ||
![]() |
| Tags |
| trendline |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paintbar Plotting | chrisleonard | Coding Forum | 8 | 10-02-2009 12:50 PM |
| Anyway to Plot an Indicator Value Without Actually Plotting It? | daedalus | Coding Forum | 3 | 04-24-2009 11:43 PM |
| Plotting Globex High and Low | brownsfan019 | Open E Cry | 3 | 03-26-2009 06:38 AM |
| Can Someone Tell Me How to Get an Indicator to Stop Plotting | shortski | Coding Forum | 31 | 02-08-2009 12:49 PM |
| Plotting Market Profile on TS | dah7 | Market Profile | 9 | 03-16-2007 09:49 PM |