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
-
new features just released on MultiCharts v5.5 beta 1
-
if you post your request (with specifics) at the Coding Forum, someone might be able to help.
-
note: I have edited the prev post. You can look up the manual for more information on EasyLanguage Date and Time conventions.
-
you can add one more protection into the code: Time Limit If computerdatetime < 40178 then begin 40178 is the number of days since 1900. i.e. the code will expire and stop working on January 1, 2010. .
-
sorry, my mistake. getuserid is for MultiCharts only. For TradeStation, use CustomerID.
-
you can rename the function name just go into the code and rename everything that says "vchart" to your new function name.
-
I don't think you can hide the function name. just incorporate the function code into the indicator, then nobody will see it.
-
if you post what you have tried, maybe someone will chime in...
-
what program/version are you using? pls copy and paste the error message here. (or a screen shot)
-
Look for the following code inside the indicator if date > date[1] then begin The software evaluates each bar one at a time. When it reaches a bar that has a different date than the previous bar, it knows that a new day has begun... and resets the data. you can change the line to the following: if time = 0900 then begin This will do the reset at 0900. .
-
Talk about getting back to the basics... PnF is a very handy tool for those who doesn't know how to define "risk" in an entry... or has problem riding the profit. just use the yellow dot -- it defines your stop loss in an entry, (you know exactly how much you are risking in the trade) and it will help you hang on to the winner. (you just ride the wave until the yellow dot comes home!) This is Price Action at its best; you cannot get more basic than this!
-
I hope our Indian friends can keep up posted on the their front. I know big things are happening there, but we don't read about them on CNN.
-
one small EasyLanguage programming note: you can have more than ONE input section. i.e. if you add the following after the first input section, you don't have to worry about changing the semi-colon. //Squeeze Input INPUT: SQLength(20), nKeltner(1.5), nBBands(2), AlertLine( 1);
-
You might be surprised to find out... MOST of the data providers supply quotes in snapshots. You can check the fine prints in your service contract for detail.
-
from InteractiveBrokers: More opportunities in this global market !
-
Be aware that the behavior of BarsSinceEntry will be different depending on whether the strategy order was generated using the 'this bar' or 'next bar' order action. For 'this bar' strategy orders: The value of BarsSinceEntry is not updated at the close of the current bar but continues to return the bars ago of an existing strategy position. For example, if no previous strategy position exists on the current bar (containing the 'this bar' strategy order code) BarsSinceEntry returns 0 if no previous strategy position exists or returns the number of bars since entry of an existing strategy position. When recalculated on the next bar, BarsSinceEntry returns a 1 to indicate that the strategy position was established 1 bar ago. For example, if the strategy is long and a "sell short this bar" order is executed, BarsSinceEntry will return the number of bars since the long position was initiated when the code runs on the bar of short entry. For 'next bar' strategy orders: The value of BarsSinceEntry returns a bars ago value of 0 at the close of the current bar (containing the 'next bar' strategy order code) and also reports a 0 on the next bar. For example, if the strategy is long and a next bar order is executed in the current bar then, when the code runs at the close of the current bar, BarsSinceEntry will be 0 since 0 bars have passed since the short entry. Source: EasyLanguage manual
-
BarsSinceEntry Returns a numerical value, indicating the number of bars since the initial entry into the specified position. Usage BarsSinceEntry( PosBack ) Where: PosBack - a numerical expression, specifying the position: 0 - open position; 1 - one position back (the last position closed); 2 - two positions back, etc. If PosBack is not specified, a value for the open position will be returned. Note This function can only be used in signals. Examples Assign a value, indicating the number of bars since the current position has been entered, to Value1 variable: Value1 = BarsSinceEntry; Assign a value, indicating the number of bars since the most recently closed position has been entered, to Value1 variable: Value1 = BarsSinceEntry( 1 ); Source: EasyLanguage manual
-
2. Always have a direct number to your broker. not just have the number... but write it down on a piece of paper and tape it to the wall in front of you. People always say: I can look up the broker's number on the internet, or I have it in my email... Well, not when the internet is down, or your computer crashed.
-
The price bars I have in the illustration are from the symbol. You can add price bars by inserting: PlotPaintBar (High, Low, Open, Close ); and changing the rest of the plots to plot5[lb](sv) ; plot6(abh); plot7(abl);
-
SwingHighBar (Function) The SwingHighBar function returns the number of bars ago a Swing High bar occurred. Syntax SwingHighBar( Instance, Price, Strength, Length ) Returns (Integer) A numeric value containing the number of bars ago the specified Swing High occurred, or -1 if not found. Parameters Instance (Numeric) Sets which occurrence (that is, 1 = most recent, 2 = 2nd most recent, and so on) to return. Price (Numeric) Specifies which bar value (price, function, or formula) to use. Strength (Numeric) Sets the required number of bars on either side of the swing bar. Length (Numeric) Sets the number of trailing bars to consider. Remarks A Swing High occurs when the Price of a bar is at least as high as the same Price on the preceding bar(s), and higher than the same Price on the bar(s) that follow it. The input Strength is the number of bars on each side of the SwingHighBar. A strength of 1 indicates that the value returned by the input Price must be: -- greater than or equal to the same value returned for the bar on its left, -- greater than the bar on its right. The input Length refers to the number of bars being examined for the SwingHighBar. The input Instance refers to which SwingHighBar you want to use. For example, if in a twenty-one bar period three swing highs were found, it becomes necessary to specify which SwingHighBar is desired. If the most recent SwingHighBar is desired, a one (1) would be substituted for the input Instance. Note If no SwingHighBar is found in the period (Length) specified, the function will return a minus one (-1). The value of the input Length must exceed Strength by at least one. In addition, the Maximum number of bars referenced by a study (known as MaxBarsBack) must be greater than the sum of the values of Strength and Length. Example Plots the number of bars ago that the most recent swing bar high occurred based on the Close with 3 bars on either side of the swing within 10 trailing bars. Plot1( SwingHighBar( 1, Close, 3, 10 ); SOURCE: EasyLanguage Manual
-
SwingHigh (Function) The SwingHigh function returns the high pivot price where a Swing High occurred. Syntax SwingHigh( Instance, Price, Strength, Length ) Returns (Integer) A numeric value containing the high pivot price where the specified Swing High occurred, or -1 if not found. Parameters Instance (Numeric) Sets which occurrence (that is, 1 = most recent, 2 = 2nd most recent, and so on) to return. Price (Numeric) Specifies which bar value (price, function, or formula) to use. Strength (Numeric) Sets the required number of bars on either side of the swing bar. Length (Numeric) Sets the number of bars to be considered. Remarks A Swing High occurs when the Price of a bar is at least as high as the same Price on the preceding bar(s), and higher than the same Price on the bar(s) that follow it. The input Strength is the number of bars on each side of the SwingHigh. A strength of 1 indicates that the value returned by the input Price must be greater than or equal to the same value returned for the bar on its left and greater than the bar on its right. The input Length refers to the number of bars being examined for the SwingHigh. The input Instance refers to which SwingHigh you want to use. For example, if in a twenty-one bar period three swing highs were found, it becomes necessary to specify which SwingHigh is desired. If the most recent SwingHigh is desired, a one (1) would be substituted for the input Instance. Note If no SwingHigh is found in the period (Length) specified, the function will return a minus one (-1). The value of the input Length must exceed Strength by at least one. In addition, the Maximum number of bars referenced by a study (known as MaxBarsBack) must be greater than the sum of the values of Strength and Length. Example Assigns to Value1 the most recently occurring High in over the last 10 bars that has a strength of 4 on both the left and right sides of the swing bar.. Value1 = SwingHigh(1, Close, 4, 10); SOURCE: EasyLanguage Manual
-
This thread is about programming in EasyLanguage using the following functions: SwingHigh SwingLow SwingHighBar SwingLowBar
-
You can make it a community project.