| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Help with Creating a 9/30 Crossover Paintbar Indicator | ||
| |
|
| | #2 | ||
![]() | Re: Help with Creating a 9/30 Crossover Paintbar Indicator Code: If {yourMA1} > {yourMA2} then PlotPB(H,L,O,C,"Long",Blue) else PlotPB(H,L,O,C,"Short",Red); I haven't used TS in ages, but back in the day it would only allow 4 plots per indicator. I'm assuming they've gotten beyond this by now. Last edited by chop51; 12-13-2008 at 07:58 AM. Reason: weird formatting without the [code] tags | ||
| |
|
| | #3 | ||
![]() | Re: Help with Creating a 9/30 Crossover Paintbar Indicator Look for under paintbar studies. You will see paint bar study MA Avg crossover. Just plot and change the lengths of the MA to what you like | ||
| |
|
| | #4 | ||
![]() | Re: Help with Creating a 9/30 Crossover Paintbar Indicator pgain is correct, If you still find difficulties in finding the code, here it is.. just copy and paste it into a new paintbar. Code: inputs:
Price( Close ),
FastLength( 7 ),
SlowLength( 14 ),
UpColor( Cyan ),
DnColor( Blue ) ;
variables:
FastAvg( 0 ),
SlowAvg( 0 ) ;
FastAvg = Average( Price, FastLength ) ;
SlowAvg = Average( Price, SlowLength ) ;
if FastAvg > SlowAvg then
begin
PlotPaintBar( High, Low, "MACross", UpColor ) ;
Alert( "FastAvg above SlowAvg" ) ;
end
else if FastAvg < SlowAvg then
begin
PlotPaintBar( High, Low, "MACross", DnColor ) ;
Alert( "FastAvg below SlowAvg" ) ;
end
else
NoPlot( 1 ) ; { unpaint the bar } Good Luck, Easytrader_I. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trend Indicator Paintbar | Squire69 | Coding Forum | 12 | 08-15-2010 05:11 PM |
| moving average crossover with volume surge | cjstrader5 | Technical Analysis | 6 | 02-07-2009 06:56 AM |
| Creating Gap-downs by Hitting Bids? | RobinHood | Beginners Forum | 4 | 08-29-2008 11:24 AM |
| Creating a RSS Feeder for News | brownsfan019 | Market Analysis | 10 | 05-25-2008 09:33 AM |
| Up and DownTicks PaintBar | jojojo | Coding Forum | 0 | 11-15-2007 04:05 AM |