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.


  Current location        Thread information  
OmniTrader Professional Forum
OmniScripts
Color Chart - OmniScript Help
Last Activity 6/22/2018 4:46 AM
2 replies, 623 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
Vinay

Regular
2525
Posts: 56

Joined: 1/18/2012
Location: Planet Earth

User Profile
 
Subject : Color Chart - OmniScript Help
Posted : 10/12/2015 9:27 AM
Post #24674

OmniScript Help required for the following:

1. I want to draw a vertical color line on the bar which is exactly 100 bars before the current bar.

2. I want to draw a vertical color line on the bars which lies between current bar and 100 bars before the current bar and which has a gap up or gap down of more than 10%.

Thanks in advance.

^ Top
Jim Dean

Sage
2000100010025
Posts: 3142

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

User Profile
 
Subject : RE: Color Chart - OmniScript Help
Posted : 10/12/2015 9:32 AM
Post #24675 - In reply to #24674

1. Use:
bar = numrec - 100
… adjust to taste

2. Use:
Bar > numrec - 100 and abs(O - C[1])/C[1] > 0.1
… adjust to taste

PS: may need to use 101 instead of 100 to get the specific bar you are asking for.

[Edited by Jim Dean on 10/12/2015 9:33 AM]

^ Top
Vinay

Regular
2525
Posts: 56

Joined: 1/18/2012
Location: Planet Earth

User Profile
 
Subject : RE: Color Chart - OmniScript Help
Posted : 10/12/2015 9:34 AM
Post #24676 - In reply to #24674

Thanks Jim. We can always count on your helping hand.

Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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