OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: How do we Plot a line at a price level?
Posted : 12/27/2015 6:57 PM
Post #24952 - In reply to #24951

Here you go. Limitations: OLang does not permit specification of the line style (dash dot). It does allow the color to be specified, and the line width. However, you can double click on the plotted line and set the color and style that way. Coding for alternative colors is sort of messy, so I'll leave it up to you to use the double click method (default will be random colors).

Instructions: type in the price to be plotted. If you leave an input blank, it will be ignored.

#Indicator
#param "Price1", 0
#param "Price2", 0
#param "Price3", 0
#param "Price4", 0
#param "Price5", 0
#param "Price6", 0
#param "Price7", 0
#param "Price8", 0

if Price1 > 0 then PlotPrice("P1",Price1)
if Price2 > 0 then PlotPrice("P2",Price2)
if Price3 > 0 then PlotPrice("P3",Price3)
if Price4 > 0 then PlotPrice("P4",Price4)
if Price5 > 0 then PlotPrice("P5",Price5)
if Price6 > 0 then PlotPrice("P6",Price6)
if Price7 > 0 then PlotPrice("P7",Price7)
if Price8 > 0 then PlotPrice("P8",Price8)

return 0
Deleting message 24952 : RE: How do we Plot a line at a price level?


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.