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
-
What modifications have you tried? I have not looked at the code yet; I don't want to duplicate your effort if you have proved that does not work.
-
p.s. I have moved some of your Variables to Inputs.
-
How I use the Print statement to debug: http://www.traderslaboratory.com/forums/f56/help-trend-strength-indicator-6101.html
- 14 replies
-
- debug
- easylanguage
-
(and 3 more)
Tagged with:
-
here's how I use the print statement to debug. http://www.traderslaboratory.com/forums/f56/print-easylanguage-6000.html First, I added a print statement after the first batch of calculations aValue = jthma(aprice, alength); bValue = jtHMA(bprice, blength); cValue = jtHMA(cprice, clength); dValue = jtHMA(dprice, dlength); eValue = jtHMA(eprice, elength); fValue = jtHMA(fprice, flength); print(aValue, bValue, cValue, dValue, eValue, fValue ); the red colored Print statement tells me that the variables were properly assigned. next, I added a print statement after the 2nd batch of calculations: if avalue > avalue[1] then utrend1=1 else utrend1=0; if bvalue > bvalue[1] then utrend2=1 else utrend2=0; if cvalue > cvalue[1] then utrend3=1 else utrend3=0; if dvalue > dvalue[1] then utrend4=1 else utrend4=0; if evalue > evalue[1] then utrend5=1 else utrend5=0; if fvalue > fvalue[1] then utrend6=1 else utrend6=0; Print(uTrend1, utrend2, utrend3, utrend4, utrend5, utrend6); The 2nd print statement returns a value of "1" for all variables at all time intervals. Voila! the culprit is found !
-
if you post a chart... with arrows and notes on what and where you want to achieve... someone might be able to help.
-
You need to have an "else" value for the variables, otherwise it will keep the previous value, which will always be "1". give this a try: input: aPrice(Close), alength(9), bprice(Close), blength(15), cprice(Close), clength(21), dprice(Close), dlength(27), eprice(Close), elength(34), fprice(Close), flength(40); Variables: aValue (0), bValue (0), cValue (0), dValue (0), eValue (0), fValue (0), utrend (0), uTrend1 (0), utrend2 (0), utrend3 (0), utrend4 (0), utrend5 (0), utrend6 (0), dtrend(0), dTrend1(0), dtrend2(0), dtrend3(0), dtrend4(0), dtrend5(0), dtrend6(0); aValue = jthma(aprice, alength); bValue = jtHMA(bprice, blength); cValue = jtHMA(cprice, clength); dValue = jtHMA(dprice, dlength); eValue = jtHMA(eprice, elength); fValue = jtHMA(fprice, flength); if avalue > avalue[1] then utrend1=1 else utrend1=0; if bvalue > bvalue[1] then utrend2=1 else utrend2=0; if cvalue > cvalue[1] then utrend3=1 else utrend3=0; if dvalue > dvalue[1] then utrend4=1 else utrend4=0; if evalue > evalue[1] then utrend5=1 else utrend5=0; if fvalue > fvalue[1] then utrend6=1 else utrend6=0; if avalue < avalue[1] then dtrend1=1 else dtrend1=0; if bvalue < bvalue[1] then dtrend2=1 else dtrend2=0; if cvalue < cvalue[1] then dtrend3=1 else dtrend3=0; if dvalue < dvalue[1] then dtrend4=1 else dtrend4=0; if evalue < evalue[1] then dtrend5=1 else dtrend5=0; if fvalue < fvalue[1] then dtrend6=1 else dtrend6=0; utrend=utrend1+utrend2+utrend3+utrend4+utrend5+utrend6; dtrend=dtrend1-dtrend2-dtrend3-dtrend4-dtrend5-dtrend6; Plot1 (uTrend); Plot2 (dtrend);
-
what program are you using?
-
... and that, distinguishes someone who reacts, and someone who anticipates.
-
fit a moving average on the basis... then the data can oscillate around it.
-
stop being childish take your OT editorial elsewhere .
-
you need volume for daytrading... I would check out the higher volume symbols first...
-
An indicator is useful only if you understand the mathematical operation inside it. I would never trust a black box with my money.
-
I don't appreciate your repeated "harassment/invitation" to join your p/l thread. There are reasons for participation, and there are reasons for opt-out. Proving one's method works is NOT a reason to post at the p/l thread.
-
Why ask for a hamburger when you can have steak? Rule # Uno: The Trend is Your Friend. Don't argue with a friend.
-
There are ways to pick Top/Bottom. It is possible; I know people who do it consistently. But you must employ the finer "Tools" to read the market at the finer level. You also need a deeper understanding of the auction process that is happening behind the scene. Picking Top/Bottom can be intense; not everybody wants to trade at that intensity. .
-
I always tell people: Don't be a hero, you don't have to be the first to sell a top, or the first to buy a bottom.
-
a close below previous bar's close does not necessarily mean a "Down" trend has been established. it is a "down" close in relation to 5 minutes ago. it is still an "up" price in relation to previous bar's LOW, or median price.
-
you then have to ask yourself which is the way you want to go... 1. I want to Short because the buying has dried up. 2. I want to Short because people are selling.
-
What do you mean by "technically a down bar"?
-
"Was this a good short here?" matching the volume that causes the price to go up, and volume that causes the price to go down, will help you visualize the participants of the market.
-
Patterns techniques works best in an oscillating market. Some currencies has been making a run lately. These movements usually leave the pattern traders behind. To see the best result, you should experiment with different chart resolutions until you can see the price oscillations making higher highers and lower lows.
- 21 replies
-
- easylanguage
- gartley
-
(and 2 more)
Tagged with:
-
most data feeds are aggregated now.
-
Trading With Market Statistics.II The Volume Weighted Average Price (VWAP).
Tams replied to jperl's topic in Market Profile
at the top right corner of this page... -
.......... have you?
- 21 replies
-
- easylanguage
- gartley
-
(and 2 more)
Tagged with:
-
That shouldn't be surprising... because about half the Technical Analysis under the sun is a rehash of trendlines and moving averages. ;-)