NexusFi: Find Your Edge


Home Menu

 



Categories Help    

ThinkOrSwim
ThinkOrSwim Downloads / ThinkOrSwim Indicators

Share ThinkOrSwim strategies and indicators.


Entries
tos range bars 3 *
range bar sim for thinkorswim
============================
input Range = 2;

def HighAndLowConcatenated = (high * 100000000) + (low * 100);

rec RangeBreakOut = if IsNan(RangeBreakOut[1]) or RangeBreakOut[1] == 0 or
RangeBreakOut[1] == 1 then HighAndLowConcatenated else if
(round(RangeBreakOut[1]/100000000) - close) >= Range then 1 else if (close -
((RangeBreakOut[1] - ((round(RangeBreakOut[1]/100000000)) * 100000000))/100))
>= Range then 1 else if high > (round(RangeBreakOut[1]/100000000)) then (high
* 100000000) + ((RangeBreakOut[1] - ((round(RangeBreakOut[1]/100000000)) *
100000000))/100) else if low < ((RangeBreakOut[1] -
((round(RangeBreakOut[1]/100000000)) * 100000000))/100) then
(round(RangeBreakOut[1]/100000000)) + low else RangeBreakOut[1];


rec NewBarOpen = if IsNan(NewBarOpen[1]) then close else if RangeBreakOut == 1
then open else NewBarOpen[1];

plot NewBarLevel = if NewBarOpen > 0 then NewBarOpen else double.nan;


Category ThinkOrSwim 
 
Suggest other entries I might like
Details: tos range bars
Category: ThinkOrSwim 


November 11th, 2010
Size: 68.87 KB
Downloaded: 1095 times
 


 
Category
 




© 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