New version 18 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: Partha223
About
User Name: Partha223
Groups: Member
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Tuesday, February 13, 2018
Last Visit: Friday, June 22, 2018 9:34:56 PM
Number of Posts: 22
[0.01% of all post / 0.17 posts per day]
Avatar
Last 10 Posts
Topic: Easyscan Breakouts
Posted: Friday, June 22, 2018 8:07:28 PM

Hi Bruce,

 

I was able to create it, earlier i was trying for a condition instead of condition set.

 

Thanks

 

Topic: Easyscan Breakouts
Posted: Thursday, June 21, 2018 10:32:26 PM

Hi Bruce,

 I was watching the webinar to find out the breakout stocks in the link Webinar: EasyScans for Your Favorite Setups - Breakouts, Consolidations & Divergences

But I'm not able to find many Conditions what the presenter was talking.

Please help on how to create those in V 18

 

Thanks

 

Mohan

Topic: Same Symbol Charts appear in different tabs or Layouts
Posted: Friday, March 30, 2018 9:59:23 PM

Hi,

When I'm looking for BA in one layout & switch to another layout, the same BA chart appears. I wanted to have different COST chart in the next layout.

Is there a way to configure this ?

Thanks in advance

Topic: TTM Squeeze
Posted: Friday, March 30, 2018 9:46:18 PM

Hi Bruce,

Can you please share the recent version. Appreciate your support.

 

Topic: NYSE TICK with Bands
Posted: Thursday, March 15, 2018 10:39:37 AM

Thanks Bruce

Topic: NYSE TICK with Bands
Posted: Wednesday, March 14, 2018 1:09:12 PM

Any clue this could be available in future versions ?

Topic: Mean Reversion Swing Setup
Posted: Wednesday, March 14, 2018 1:08:02 PM

Thanks Bruce, It worked like a charm, appreciate your help & Support

Topic: Mean Reversion Swing Setup
Posted: Tuesday, March 13, 2018 9:24:15 PM

BTW this appeared in TSAC Jan 2017 on Page # 48

Topic: NYSE TICK with Bands
Posted: Tuesday, March 13, 2018 9:14:21 PM

Hi Bruce,

Here is one of the ThinkorSwim platform code to draw the bands abround the NYSE tick charts.

Appreciate if this can be coverterd to use in our TC2000 platform.

This has got notfication as well in sound, if not possible in sound any popup kinda alert mechanism should help.

Thanks a ton in advance.

input showOnlyToday = YES;
input Market_Open_Time = 0930;
input Market_Close_Time = 1600;
input tickAveragePeriod = 20;
input bollingerBandFactor = 2.0;
def day = getDay();
def lastDay = getLastDay();
def isToday = if(day==lastDay,1,0);
def shouldPlot = if(showOnlyToday and isToday, 1,if(!showOnlyToday,1,0));
def pastOpen = if((secondsTillTime(Market_Open_Time) > 0), 0,1);
def pastClose = if((secondsTillTime(Market_Close_Time) > 0), 0,1);
def marketOpen = if(pastOpen and !pastClose, 1, 0);
def rstBar =if (day[1] != day, day-1, 0);
rec regHoursHigh = if(high > regHoursHigh[1] and marketOpen, high, if(marketOpen and !rstBar, regHoursHigh[1], high));
plot TICK_High = if(marketOpen and shouldPlot, regHoursHigh, Double.nan);
TICK_High.SetDefaultColor(color.orange);
TICK_High.SetLineWeight(1);
rec regHoursLow = if(low < regHoursLow[1] and marketOpen, low, if(marketOpen and !rstBar, regHoursLow[1],low));
plot TICK_Low = if(marketOpen and shouldPlot, regHoursLow, double.nan);
TICK_Low.SetLineWeight(1);
TICK_Low.setDefaultColor(color.red);
input HighThreshold = 1000;
input LowThreshold = -1000;
def tickDataLow = low("$TICK");
def tickDataHigh = high("$TICK");
def tickClose = close("$TICK");
def isLow = if((tickDataLow < LowThreshold), 1, 0);
def isHigh = if((tickDataHigh > HighThreshold), 1, 0);
plot ExtremeTick = if(isLow and !isHigh, low, if(isHigh and !isLow , high, double.nan));
ExtremeTick.setStyle(curve.POINTS);
ExtremeTick.setPaintingStrategy(paintingStrategy.LINE_VS_TRIANGLES);
ExtremeTick.setDefaultColor(color.yellow);
ExtremeTick.setLineWeight(3);
plot tickSMA = average(tickClose,tickAveragePeriod);
tickSMA.setLineWeight(3);
tickSMA.setDefaultColor(color.white);
def ticksDev = stdev(tickClose, tickAveragePeriod);
plot tickBBH = tickSMA+bollingerBandFactor*tickSDev;
tickBBH.setLineWeight(1);
tickBBH.setDefaultColor(color.dark_gray);
plot tickBBL = tickSMA-bollingerBandFactor*tickSDev;
tickBBL.setLineWeight(1);
tickBBL.setDefaultColor(color.dark_gray);
AssignPriceColor(if tickSMA >= 0 then color.light_gray else color.light_gray);
plot eHT = HighThreshold;
eHT.setDefaultColor(color.dark_gRAY);
plot eLT = LowThreshold;
eLT.setDefaultColor(color.dark_gRAY);
plot zero = 0;
zero.setDefaultColor(color.red);
zero.setLineWeight(2);
alert(TICK_High>TICK_High[1], "New High Tick", alert.bar, sound.ring);
alert(TICK_Low<TICK_Low[1], "New Low Tick", alert.bar, sound.ring);

 

Topic: Mean Reversion Swing Setup
Posted: Tuesday, March 13, 2018 7:07:55 PM

Hi Bruce,

 

I came across the mean revsersion strategy Swing setup & pasted the code here for the tradestation. Is there a way this can be replicated in TC2000.

Appreciate your help in replication. Please find the code below

 

Strategy: MeanReversion
 
// Mean-Reversion Swing Trading
 
inputs:
ChanLength( 20 ),
StopDollars( 1 ),
MALength( 50 ) ;
variables:
UpperBand( 0 ),
LowerBand( 0 ),
MidBand( 0 ),
LongOK( false ),
ShortOK( false ),
LowRef( 0 ),
HighRef( 0 ),
TriggerLine( 0 ),
MAValue( 0 ) ;
UpperBand = Highest( High, ChanLength ) ;
LowerBand = Lowest( Low, ChanLength ) ;
MAValue = Average( Close, MALength ) ;
if Low = LowerBand then
begin
LowRef = Low ;
LongOK = false ;
ShortOK = true ;
end ;
if High = UpperBand then
begin
HighRef = High ;
LongOK = true ;
ShortOK = false ;
end ;
// 50% Pull Back Level
TriggerLine = .5 * ( HighRef + LowRef ) ;
if LongOK[1] and LongOK
and Close crosses over TriggerLine
and Close > MAValue
and MarketPosition( 1 ) < 1 then
begin
Buy next bar at Market ;
LongOK = false ;
end
else if ShortOK[1] and ShortOK
and Close crosses under TriggerLine
and Close < MAValue
and MarketPosition( 1 ) > -1 then
begin
SellShort next bar at Market ;
ShortOK = false ;
end ;
Sell next bar at Upperband Limit ;
Sell next bar at Lowerband Stop ;
Buy to Cover next bar at Lowerband Limit ;
Buy to Cover next bar at UpperBand Stop ;
SetStopShare ;
SetStopLoss( StopDollars ) ;

 

 

Indicator: MeanReversion
 
// Mean-Reversion Swing Trading
 

inputs:
ChanLength( 20 ),
MALength( 50 ) ;
variables:
UpperBand( 0 ),
LowerBand( 0 ),
MidBand( 0 ),
LongOK( false ),
ShortOK( false ),
LowRef( 0 ),
HighRef( 0 ),
TriggerLine( 0 ),
MAValue( 0 ) ;
UpperBand = Highest( High, ChanLength ) ;
LowerBand = Lowest( Low, ChanLength ) ;
MAValue = Average( Close, MALength ) ;
if Low = LowerBand then
begin
LowRef = Low ;
LongOK = false ;
ShortOK = true ;
end ;
if High = UpperBand then
begin
HighRef = High ;
LongOK = true ;
ShortOK = false ;
end ;
TriggerLine = .5 * ( HighRef + LowRef ) ;
Plot1( UpperBand, "UpperBand" ) ;
Plot2( LowerBand, "LowerBand" ) ;
Plot3( TriggerLine, "Trigger" ) ;
Plot4( MAValue, "Mov Avg" ) ;
if LongOK then
begin
SetPlotColor( 1, Green ) ;
SetPlotColor( 2, Green ) ;
end
else
begin
SetPlotColor( 1, Red ) ;
SetPlotColor( 2, Red ) ;
end ;

 

Thanks in advance