NexusFi: Find Your Edge


Home Menu

 





[tos] Define bodyheight of green candles only?


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one rmejia with 5 posts (4 thanks)
    2. looks_two Massive l with 4 posts (0 thanks)
    3. looks_3 growex with 4 posts (4 thanks)
    4. looks_4 givemethenews99 with 1 posts (0 thanks)
    1. trending_up 5,836 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 7 attachments




 
 

[tos] Define bodyheight of green candles only?

 
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

I put in labels with the parameters, getting these results:

Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	218
Size:	62.4 KB
ID:	141333   Click image for larger version

Name:	2.png
Views:	218
Size:	71.7 KB
ID:	141334   Click image for larger version

Name:	3.png
Views:	249
Size:	73.6 KB
ID:	141335   Click image for larger version

Name:	4.png
Views:	217
Size:	71.4 KB
ID:	141336   Click image for larger version

Name:	5.png
Views:	241
Size:	70.3 KB
ID:	141337   Click image for larger version

Name:	6.png
Views:	217
Size:	71.1 KB
ID:	141338  
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
 
 growex 
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79

input length = 70;
def green = fold i=0 to length with n = 0 do if getvalue(close-open,i, length)>0 then n+(close-open) else green[1];
def red = fold j=0 to length with k = 0 do if getvalue(open-close,j, length)<0 then k+(open-close) else red[1];
plot ratio =(green-red);

Follow me on Twitter
Thanked by:
 
givemethenews99
New Zealand
 
Posts: 2 since Dec 2020
Thanks Given: 0
Thanks Received: 0


Hi

I am new to this forum.

I am using this script to locate candles 15 cent or greater in size with volume over 100 shares per minute.

input cents = 15;
input volpermin=100;

def green = close > open;
def today = GetDay() == GetLastDay();
def count = if green and today and high - low >= (cents / 100) then count[1] + 1 else count[1];
def con= green and today and high - low >= (cents / 100) and volume>=volpermin;
plot scan=con[1] or con;

It does not correctly capture all candles of 15 cents in premarket scans.

How would you rewrite this using the bodyheight command identitfying candles of 15 cents or more?

Cheers


 



Last Updated on December 30, 2020


© 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