NexusFi: Find Your Edge


Home Menu

 





Line Limit


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
05vprice
Detroit, MI
 
Posts: 2 since Mar 2020
Thanks Given: 0
Thanks Received: 0

Hello everyone!

I am sure this is going to be very simple for someone, but I am stuck haha. Take a look at the image below. I am trying to only allow that magenta line to go to the right 3 candles. I will also share the code I am using to draw the line too. I'd appreciate any help. I have came across many other posts that have lines plotted, but I was unable to get any snippets to work with my plot

input showRetraceLine = Yes;
input extendRetraceLine = Yes;

def upper50line = if meetsCriteriaUp and showRetraceLine then high[1] - retraceAmt else If(extendRetraceLine, upper50line[1], Double.NaN);

plot DrawUpper50 = upper50line;
DrawUpper50.SetDefaultColor(Color.CYAN);
DrawUpper50.SetPaintingStrategy(PaintingStrategy.DASHES);


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
MyForexFunds Begins Returning Frozen Funds After CFTC Ca …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
MegaETH Proves the Crowd Right: Prediction Markets Calle …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
05vprice
Detroit, MI
 
Posts: 2 since Mar 2020
Thanks Given: 0
Thanks Received: 0

Got it figured out. Now my issue is trying to get the signal to wait until the large bar actually closes. Right now it paints that wedge as soon as the criteria is met, but I need it to wait until that bar fully closes. Any thoughts?


Reply With Quote




Last Updated on March 29, 2020


© 2026 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 - Downloads - Top
no new posts