| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Trend Indicator for TS? | ||
| |
|
| | #2 | ||
![]() | Re: Trend Indicator for TS? Could you post some pics of what you're referring to. ( a picture can speak a thousand words ) Cheers 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 | ||
| |
|
| | #3 | ||
![]() | Re: Trend Indicator for TS? Agreed, but I don't really know what to take a picture of here. Really, any strong trend would do it. You know, just a trend not really broken up by any substantial retracements. | ||
| |
|
| | #4 | ||
![]() | Re: Trend Indicator for TS? I think the main question would be what criteria you are after to define an uptrend, eg higher highs and higher lows, higher highs only, or consecutive higher closes etc........ if so how many bars.......... This would need to be worked out for it to be put into a TS code and that was the reason I was asking for a couple of pics to see what you mean. 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 | ||
| |
|
| | #5 | ||
![]() | Re: Trend Indicator for TS? | ||
| |
|
| | #6 | ||
![]() | Re: Trend Indicator for TS? Quote:
I'll have a look into after hours, but if you can post a pic it would really help. In the meantime if anyone else comes forward............ Cheers 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 | ||
| |
|
| | #7 | ||
![]() | Re: Trend Indicator for TS? | ||
| |
|
| | #8 | ||
![]() | Re: Trend Indicator for TS? https://www.tradestation.com/discuss...topic_id=30775 A lot of smarter traders than you and I have tried to define it and in the above threads you have mmillar, Bamboo, ghkramer, waynechem and others trying to do so. There is really no need to start your own new definition of trend when the market is full of traders following each other in these definitions. If you want a short summary, here it is: 1. about half the market is looking at a moving average trend 2. the other half may be looking at some trend lines (or zigzags, similar idea). 3. the calculation of trends can be made more precise by using the average true range function (ATR). The market often trades with an ATR stop. In practice, a trend would often stall or ends once the ATR trailing stop is hit. If you like the idea of following a moving average trend, the following waynechem indicator based on calculating the area under the trending moving averages may be a start: Code: { TrendArea Indicator WAV 9/15/04 }
inputs: ThresholdArea(1500);
vars: BarCount(0),SlowMA(0),FastMA(0),
color(0),area(0);
SlowMA = average(close,15);
FastMA = average(close,5);
{ see if we have a new possible trend starting }
if FastMA crosses above SlowMA or
FastMA crosses below SlowMA then
begin
BarCount = 0;
area = 0;
end;
{ increment BarCount +1 if FastMA above SlowMA...
decrement BarCount -1 if FastMA below SlowMA}
BarCount = IFF(FastMA > SlowMA,BarCount + 1,BarCount);
BarCount = IFF(FastMA < SlowMA,BarCount - 1,BarCount);
{ multiply each individual area by its barcount }
area = area + AbsValue(BarCount) * (FastMA - SlowMA);
color = IFF(BarCount > 0,green,cyan);
color = IFF(BarCount < 0,red,color);
plot1(area,"Area",color);
plot2(0,"zero line");
plot3(ThresholdArea,"+Thresh");
plot4(-ThresholdArea,"-Thresh"); | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Heikin Ashi Trend Indicator | Soultrader | Trading Indicators | 37 | 07-26-2009 06:06 PM |
| Trend lines on an indicator | zardoz | Technical Analysis | 6 | 04-21-2009 12:37 PM |
| Objective ways to define a trend day before the trend has run its course?? | Adamned | Technical Analysis | 7 | 01-29-2008 09:06 AM |
| REQ Help with Trend Indicator | jjthetrader | Coding Forum | 55 | 12-14-2007 05:33 PM |
| Volume Gradient + Heikin Ashii Trend Indicator | GCB | Trading Indicators | 27 | 04-07-2007 08:29 AM |