ThinkOrSwim - tos range bars
futures io futures trading


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 12th, 2010
Size: 68.87 KB
Downloaded: 1042 times
 


 
Category
 



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.