Help with TOS lbr indictator - futures io
futures io futures trading



Help with TOS lbr indictator


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,184 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Help with TOS lbr indictator

(login for full post details)
  #1 (permalink)
uk
 
Experience: Intermediate
Platform: ninja
Broker: amp
Trading: ES
 
Posts: 169 since Aug 2009
Thanks: 109 given, 80 received

Hi.
Recently downloaded TOS to play around with.

I see that it actually comes with LBR 3/10 indicator as standard.

I have this indicator on my NT7 platform, but with the NT7 version, it draws these 'momentum dots' that I sometimes use when playing a breakout trade in the early part of the day

I'm wondering it someone could create a Thinkorswim version with the dots for me.

I'm assuming it would just take a few seconds as the indicator is already in thinkorswim and I just want the dots added.

I know NOTHING about programming, but I've attaced the NT7 code, and i've emboldened the part which I assume is where the dots come from:

/// <summary>
/// LBR:3/10 Oscillator
/// </summary>
[Description("LBR:3/10 Oscillator")]
[Gui.Design.DisplayName("LBR310")]
public class LBR310 : Indicator
{
#region Variables
// Wizard generated variables
private int fast = 3; // Default setting for Fast
private int slow = 10; // Default setting for Slow
private int longLine = 16; // Default setting for LongLine
private int MoMoPeriod = 40; //Look for momentum highs
private int BarHiLo = 20; //Look for price highs
private int BarLookback = 3; //Period in which the BarHigh needs to have occurred
private DataSeries diff;
private DataSeries avg;
// User defined variables (add any user defined variables below)
#endregion

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(new Plot(Color.DarkOrange, PlotStyle.Line, "OscLine"));
Add(new Plot(Color.CornflowerBlue, PlotStyle.Bar, "OscBarUP"));
Add(new Plot(Color.Maroon, PlotStyle.Bar, "OscBarDn"));
Add(new Plot(Color.Lime, PlotStyle.Line, "HPLineUp"));
Add(new Plot(Color.DarkViolet, PlotStyle.Line, "HPLineDn"));
Add(new Line(Color.LightGray, 0, "ZeroLine"));

diff = new DataSeries(this);
avg = new DataSeries(this);

CalculateOnBarClose = false;
DrawOnPricePanel = false;
Overlay = false;
PriceTypeSupported = false;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.

double FastAvg = SMA(Close, fast)[0];
double SlowAvg = SMA(Close, slow)[0];

double Difference = (FastAvg - SlowAvg) / TickSize;

diff.Set((FastAvg - SlowAvg) / TickSize);

double Average = SMA(diff, longLine)[0];

avg.Set(SMA(diff, longLine)[0]);

OscLinePlot.Set(Difference);
Print(High + " " + CurrentBar);
if (Rising(diff))
OscBarUpPlot.Set(Difference);
else
OscBarDnPlot.Set(Difference);

if ((HighestBar(diff, MoMoPeriod) == 0 && HighestBar(High, BarHiLo) <= BarLookback) || (LowestBar(diff, MoMoPeriod) == 0 && LowestBar(Low, BarHiLo) <= BarLookback))
// DrawDot("Up Dot" + CurrentBar, 0, Difference, Color.Lime);
DrawDot("Up Dot" + CurrentBar, true, 0, Difference, Color.Lime);


if (Rising(avg))
{
HPLinePlotUp.Set(1, avg[1]);
HPLinePlotUp.Set(Average);
}
else if (Falling(avg))


{
HPLinePlotDn.Set(1, avg[1]);
HPLinePlotDn.Set(Average);

----



thanks for any help

Started this thread Reply With Quote

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(170 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
uk
 
Experience: Intermediate
Platform: ninja
Broker: amp
Trading: ES
 
Posts: 169 since Aug 2009
Thanks: 109 given, 80 received

*silence*

I'm assuming this is much more complicated that I suspected.

Started this thread Reply With Quote
 
(login for full post details)
  #3 (permalink)
Albany, New York, USA & sometimes Central Florida
 
Experience: Intermediate
Platform: Tradovate+Jigsaw, TOS
Broker: Tradovate/CQG, TOS/Pony Express
Trading: Energies, Indexes, Grains
 
Posts: 159 since Mar 2016
Thanks: 544 given, 361 received


Did you ever get something like this ?

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Help with TOS lbr indictator


Last Updated on July 23, 2017


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts