OmniTrader Professional Forum - OmniScripts
plot a line

^ Top
beech pilot

Posts: 37

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : plot a line
Posted : 3/6/2023 9:14 PM
Post #32213

can someone help with an indicator that plots a line at the high of the candle when price has went up 20 pct within 5 bars . so if price on a 1 min chart is 1.00 and it goes up 20pct to 1.20 within 5 bars a line is plotted on the 1 min cndles high that the 20 pct was achieved
^ Top
beech pilot

Posts: 37

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : RE: plot a line
Posted : 3/8/2023 9:45 PM
Post #32215 - In reply to #32213

anyone
^ Top
Bekaert

Posts: 52

Joined: 2/1/2008
Location: Oostkamp, Belgium, Europe

User Profile
 
Subject : RE: plot a line
Posted : 3/12/2023 5:52 AM
Post #32219 - In reply to #32213

Hi
in annexe you will find the OL code for such an indicator
it plots a cyan line for the lest 5 bars at the lowest low(5) and a blue line at the XX percent level for the last 5 bars

Regards
Marc
Attached file : Beech1.txt (0KB - 243 downloads)

^ Top
beech pilot

Posts: 37

Joined: 11/1/2018
Location: Visalia

User Profile
 
Subject : RE: plot a line
Posted : 3/12/2023 10:03 AM
Post #32220 - In reply to #32219

Thank you kindly Marc that is perfect really appreciate the help


https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=8098&posts=4