NexusFi: Find Your Edge


Home Menu

 





Line Limit


Discussion in ThinkOrSwim

Updated
    1. trending_up 820 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?
Quantum physics & Trading dynamics
The Elite Circle
MC Advanced Simulated Trading.
MultiCharts
Has anyone taken The Confident Trader course from aheadc …
Trading Reviews and Vendors
Radarscreen
TradeStation
How to create dashboard like this one?
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
144 thanks
1 Minute Man
63 thanks
HumbleTraders next chapter
41 thanks
Winning attitudes create winning traders
35 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
25 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