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
4075 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by Tams
-
other text manipulation keywords Text_SetAttribute Text_SetBorder Text_SetFontName Text_SetSize (MultiCharts only) Text_SetString color Text_SetBGColor Text_SetColor placement Text_SetLocation_s (MultiCharts only) Text_SetLocation Text_SetStyle
-
James: Thanks for this link placement... I hope this Recent Activity page, with all the stimulating topics, will prompt more discussions and participations. TAMS
-
it would be alright if you have this link at the top of the page, with default to 50 threads Traders Laboratory - Latest Forum Activity people can look at the topics at a glance... and choose whatever that catches their eyes. about this page: http://www.traderslaboratory.com/forums/ the design is clean, and the categories are nicely structured, but difficult to find threads because they are buried in another layer. also, when people do not see what catches the eyes, they tend to move away instead of dig deeper.
-
XCAP iPolyFitPredict Note: This indicator was written in EasyLanguage. Please refer to your users manual for importation instructions. Your comments and rating of this indicator is appreciated. XCAP_iPolyFitPredict_(MultiCharts).pla XCAP_iPolyFitPredict_(EasyLanguage).txt
- 3 replies
-
- polyfit
- polynomial
-
(and 1 more)
Tagged with:
-
when I applied your code to my chart, the text objects where relocating without a previous trace. you must have another text_new there somewhere... as long as you understand the concept... and tested the basic functionality to be working... you are in good hands. you just have to trace the code line-by-line to flush out the bug. Good luck.
-
is that because you have 2 text objects going at the same time? think... if you want Htxt to print, but not Ltxt, where would you want to put Ltxt?
-
try simplify your code to isolate the problem... e.g. change CalcTime(Time,RightOffset) to TIME change Close-(txtOff) to CLOSE change text_SetString(Ltxt," "+SEtxt+RightStr(NumtoStr(LoE,Dec),TTrun)); to text_SetString(Ltxt, " THIS IS A TEST "); ie. test the TEXT_SETLOCATION concept to make sure it works... before adding additional parameters and/or variables.
-
make sure the alert is enabled in your study. check your manual to see how to enable it.
-
Peter: remove all occurrences of these codes from your indicator: (all TEXT_NEW) Htxt = text_new(date,time,close," "); Ltxt = text_new(date,time,close," "); and add this to the beginning of the your indicator. (right after the variables) if currentbar = 1 then begin Htxt = text_new(date,time,close," "); Ltxt = text_new(date,time,close," "); end; the idea is this: at bar #1, you draw a text object to the chart. bar #1 is somewhere to the left of your chart... but you really don't care where that is. you only draw that once, because currentbar = 1 only happens one time. subsequently when your conditions are triggered, your code reloactes the text object to a new location, and your code reassigns a new value to the text object... when a new condition is triggered again, your code reloactes the text object to a new location... yet again !!! and your code reassigns a new value to the text object...... yet again !!! how come you do not see repeated text objects on your chart? because you have only drew it once.... at bar #1. enjoy !
-
I trade the HSI... it is fun, you should try it. (if the volatility does not kill you, the trading hours will... LOL) this thread might help... http://www.traderslaboratory.com/forums/f208/looking-beyong-pnl-mae-mfe-6049.html the brutal reality is, a bad method will always yield bad results... "bad" including drawdowns, stress, indecisions, uncertainties, on the wrong side of the market... etc., it is not worth the trouble in the long run. the only way to get good results is to stop practicing bad methods. :-||
-
try this: if currentbar = 1 then Ltxt = text_new(date,time,close," "); text_SetLocation(Ltxt,date,CalcTime(time,RightOffset),Close-(txtOff)); text_SetString(Ltxt," "+SEtxt+RightStr(NumtoStr(LoE,Dec),TTrun)); text_SetColor(Ltxt,Locolor); ;-)
-
here's another version, alert included. // kelter channel inputs: Price( Close ), Length( 20 ), NumATRs( 1.5 ), Displace( 0 ) ; variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ; var0 = AverageFC( Price, Length ) ; var1 = NumATRs * AvgTrueRange( Length ) ; var3 = var0 + var1 ; var2 = var0 - var1 ; condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ; if condition1 then begin Plot1[Displace]( var3, "UpperBand" ) ; Plot2[Displace]( var2, "LowerBand" ) ; Plot3[Displace]( var0, "MidLine" ) ; if Displace <= 0 then begin condition1 = Price crosses over var3 ; if condition1 then Alert( "Price crossing over upper band" ) else begin condition1 = Price crosses under var2 ; if condition1 then Alert( "Price crossing under lower band" ) ; end ; end; end ;
-
have you tested the mod at post #21 ?
-
you can do that with the clock icon in 3 clicks...
-
that's why I always ask people to make a mock up... LOL, I think I see what you want... you want to build a HUD like UrmaBlume's. Is that right? http://www.traderslaboratory.com/forums/f208/morning-outlook-10-07-a-6914.html You should try Microsoft's Visual Studio. pls note: The Visual Studio is NOT one thing... it is a suite of "things"... a WHOLE NEW WORLD... with connections like an octopus... not just to MultiCharts or TradeStation, but to the web, to your database, and to the outside databases... and beyond. You should go and download it first... most of it is FREE try it out, play with it... there are LOTS of free tutorial on the web there are LOTS of free examples there are LOTS of tools and toys and whistles to add on... I think you will like it. but still, I think you should make a mock up of what you want. ;-)
-
I would use the PRINT statement to extract the variables during the backtest... to see which variable that is causing the unfavored impact. this indicator might help, I have not tried it, but it looks useful. http://www.traderslaboratory.com/forums/f46/open-equity-curve-indicator-6943.html#post77607
-
it is not a matter of which one you like... but which one you are trained on. Different languages are simply different ways of doing the same thing. none are easy... but all is not lost. MOST people who use GlobalVariable DO NOT write their own DLL. There are a lot of routines around. Please go back to the GV thread to read the doc again. Your requirement might be easily met. .
-
each language comes with its own editor. most (all) of them include something called IDE.. Integrated Development Environment it is an editor and compiler combination. e.g. MultiChart's PLE (PowerLanguageEditor) is an IDE, you write the code, and compiles the code with it. or you can start with a plain text editor.
-
note: your plot1 is not the ATR. I just want to make sure you understand your data points. your plot is based on: (Price - Avg) / ATR
-
simple enough... I just copied your { Color criteria } and converted it to ALERT. for more information about alert, check here: http://www.traderslaboratory.com/forums/f56/alert-easylanguage-7049.html#post78999 [LegacyColorValue = true]; { plot the number of ATRs between price and the 20 day MA } input: Length( 18), Price( Close), Warn( 2), OverBColor(Red), OverSColor(Green); vars: Avg( 0 ), ATR( 0 ), diff( 0 ); Avg = AverageFC( Price, Length ) ; ATR = AvgTrueRange( Length ); plot1((Price - Avg) / ATR, "n ATRs"); Plot2( Warn, "OverSld" ) ; Plot3( -Warn, "OverBot" ) ; Plot4( 0, "Zero" ) ; { Color criteria } if Plot1 > Warn then SetPlotColor( 1, OverBColor ) else if Plot1 < -Warn then SetPlotColor( 1, OverSColor ) ; { Alert criteria } if Plot1 > Warn then ALERT( "OverBColor" ) else if Plot1 < -Warn then ALERT( "OverSColor" ) ; p.s. not sure what you mean by the radarscreen monkey wrench you threw in at the last minute.
-
from post #2 To compile the C# source code, you can download the Visual Studio "Express" edition, which is free from Microsoft. you can also use QBasic or FreeBasic. Both are free. FreeBASIC compiler (a free BASIC compiler) - official page - News [en] http://www.petesqbsite.com/sections/express/express.shtml
-
This thread is about how to use the alert in EasyLanguage Alert Triggers an alert window where the necessary text can be created. The text can be dynamic, static or absent. Usage Alert ("Description") ; Notes If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed Alerts are shown on the lastest bar only (MultiCharts) Detailed information of alerts' settings is available in Formatting Studies > Alerts Example This statement will call an alert without text message: Alert; This statement creates a dynamic alert text and displays the number of the weekday: Alert( Text( "Day of week is ", DayOfWeek(Date) ) ); This statement will show static text: If Close > Close[1] Then Alert( Text( "Price turning up" ) ) ; source: EasyLanguage manual
-
AT&T Natural Voices™ Text-To-Speech (TTS) Demo Speaks Your Text AT&T Labs Text-to-Speech: Demo
-
can you post the code you are using? (use copy and paste) you code is different than mine...
-
one suggestion: we post a lot of codes in this forum. can you put the Code tag button in the main message window? instead of the Advanced window. TIA