NexusFi: Find Your Edge


Home Menu

 





Line Limit


Discussion in ThinkOrSwim

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




 
Search this Thread

Line Limit

  #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?
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Quantum physics & Trading dynamics
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
16 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 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


© 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