NexusFi: Find Your Edge


Home Menu

 





Study to PLOT a LINE connecting two or more matching candle lows


Discussion in ThinkOrSwim

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




 
Search this Thread

Study to PLOT a LINE connecting two or more matching candle lows

  #1 (permalink)
 
WildWex's Avatar
 WildWex 
Tarzana, CA
 
Experience: Intermediate
Platform: TOS, TS, MC, NT8, MT4
Trading: Futures: ES, CL, NQ, HO, SI
Posts: 9 since Jul 2017
Thanks Given: 6
Thanks Received: 6

Hello - I'm trying to write a study that connects the lows between 2 or more candles with equivalent lows. *I wrote this:


plot PatternPlot5 = if (low[-1] == low or low[1] == low,low,DOUBLE.NAN);
PatternPlot5.SetPaintingStrategy(PaintingStrategy.LINE_vs_POINTS);
PatternPlot5.SetDefaultColor(color.red);


which works most of the time when two or more candles have equivalent low values, but it's drawing some diagonal lines between two sets of equivalent candles, which I'm trying to avoid. *I'd like to use LINE and not DASHES as a painting strategy because my goal is to connect the low wicks/shadows, of matching low candles.

Do you have any suggestions, recommendations on how I might modify my script to get it to work correctly and not show the diagonal lines?


Started this thread Reply With Quote




Last Updated on January 7, 2018


© 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