NexusFi: Find Your Edge


Home Menu

 





Rubber Band Indicator & TS Code


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one TheWizard with 2 posts (4 thanks)
    2. looks_two piersh with 1 posts (4 thanks)
    3. looks_3 shodson with 1 posts (0 thanks)
    4. looks_4 keepdchange with 1 posts (0 thanks)
    1. trending_up 7,032 views
    2. thumb_up 9 thanks given
    3. group 8 followers
    1. forum 8 posts
    2. attach_file 2 attachments




 
Search this Thread

Rubber Band Indicator & TS Code

  #1 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224

Sorry if I'm posting this request in the wrong area. I didn't want to create a new thread just for this, but couldn't find an appropriate place to make the request.

I found this at TradersLaboratory & it looks interesting. Does anyone want to take a stab at programming it for NinjaTrader?

Here's the (TradeStation) code: (& a screenshot)

[LegacyColorValue = true];

Input: LongLeg(35), ShortLeg(5), MultiLeg(10), MultiW(1);
Var: SyncShort(0), SyncLong(0), SyncMulti(0);
Var: TempSyncS(0), TempSyncL(0), TempSyncM(0), MultiOsc(0);
Var: LongWeight(0), ShortWeight(0), MultiWeight(0), MultiHigh(0), MultiLow(0);
var: DateLock(980116);

ShortWeight = 2/(ShortLeg + 1);
LongWeight = 2/(LongLeg + 1);

if TempSyncS = 0 then Begin
SyncShort = Close;
SyncLong = Close;
end
Else Begin
SyncShort = TempSyncS * (1 - ShortWeight) + (ShortWeight * Close);
SyncLong = TempSyncL * (1 - LongWeight) + (LongWeight * Close);
end;

TempSyncS = SyncShort;
TempSyncL = SyncLong;


MultiOsc = (100 * ( (SyncShort / SyncLong) - 1) );
plot1(MultiOsc, "MO");


MultiWeight = 2/(MultiLeg + 1);

if TempSyncM = 0 then
SyncMulti = MultiOsc
Else
SyncMulti = (AbsValue(TempSyncM) * (1 - MultiWeight)) + (MultiWeight * MultiOsc);

TempSyncM = SyncMulti;


MultiHigh = SyncMulti * MultiW;
MultiLow = -1 * MultiHigh;

Plot2(MultiHigh,"MH");
Plot3(MultiLow,"ML");

Print("MO:", MultiOsc, " MH: ", MultiHigh, " ML: ", MultiLow);

After all, it's what you learn AFTER you know it all, that counts!
Attached Thumbnails
Click image for larger version

Name:	RubberBand.png
Views:	943
Size:	229.9 KB
ID:	1283  
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 keepdchange 
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
Posts: 157 since Sep 2009
Thanks Given: 78
Thanks Received: 10

Hello Wizard,

I was wondering if you found someones coding the RubberBand Indicator for Ninja.

Appreciate a response.

Thanks.
-Keep

Reply With Quote
  #3 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224



keepdchange View Post
Hello Wizard,

I was wondering if you found someones coding the RubberBand Indicator for Ninja.

Appreciate a response.

Thanks.
-Keep

No. I posted the request out there, but never got any nibbles. Since then, however, Sefstrat posted his d9ParticleOscillator to the ELITE/VIP section & it is by far, the best indicator I've run across. In conjunction with my Holy Grail (post # 412) setup using the 3 SMI2's, it's a great combo for trading just about anything. I was interested in the Rubber band just because it looked interesting. If it ever does happen, I'll try to make sure it gets posted to the DOWNLOAD section so everyone can get it if they want it. Thanks for your interest & comments!

After all, it's what you learn AFTER you know it all, that counts!
Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
Saroj's Avatar
 Saroj 
Arcata, CA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
Posts: 485 since Jun 2009
Thanks Given: 232
Thanks Received: 415

thanks for the thread Wizard... and the tip about Selftrat's indicator... I'll check it out... and, yes, this is the correct place to post about coding and indicators.

If something is posted in the Elite forum, please don't share it outside of that group... I realize it might happen accidentally, but that is the purpose of that group.

Reply With Quote
Thanked by:
  #5 (permalink)
piersh
California
 
Posts: 87 since Jun 2009
Thanks Given: 5
Thanks Received: 120


TheWizard View Post
I found this at TradersLaboratory & it looks interesting. Does anyone want to take a stab at programming it for NinjaTrader?

here you go


Attached Thumbnails
Click image for larger version

Name:	New Bitmap Image.png
Views:	573
Size:	90.8 KB
ID:	2560  
Reply With Quote
  #6 (permalink)
 Peter2150 
Washington DC
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 210 since Jun 2009
Thanks Given: 110
Thanks Received: 117

Interesting indicator. Does anyone have any idea why the purple plots on expand on an upward move and stay near the zero line on a comparable downmove?

Pete

Reply With Quote
  #7 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

Looks great, how do you use this indicator?

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 pgain 
Easton CT USA
 
Experience: Intermediate
Platform: Tradestation
Trading: ES
Posts: 4 since Oct 2010
Thanks Given: 0
Thanks Received: 0

Wizard,
Just created TS eld and the code worked great.
Thats for sharing.
RB Indicator looks very interesting will give it a test drive tomorrow on ES....

Thanks

Reply With Quote
  #9 (permalink)
creamers
Netherlands
 
Posts: 2 since Aug 2010
Thanks Given: 0
Thanks Received: 0

Is the code available for non-elite members? I see code can be pasted from other charting packages, but hopefully also for this ninjatrader indicator.

edited:
I managed to convert it. Thx anyway.

Reply With Quote




Last Updated on May 20, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts