OmniTrader Professional Forum - OmniScan
Setups in RT

^ Top
kel

Posts: 2

Joined: 4/20/2006
Location: uk

User Profile
 
Subject : Setups in RT
Posted : 1/18/2022 11:52 AM
Post #31854

Hi I'm trying to work on a code in setups so i can have the share price changing to green and red
as the price keeps changing any help .cheers kelvin

^ Top
Jim Dean

Posts: 3433

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

User Profile
 
Subject : RE: Setups in RT
Posted : 1/18/2022 12:48 PM
Post #31855 - In reply to #31854

Rule for green:
C >= c[1]

Rule for red:
C < c[1]

Note that the change won’t occur print by print unless you are using Tick feed.
C[1] will always be the prior bar, not the prior print.
^ Top
kel

Posts: 2

Joined: 4/20/2006
Location: uk

User Profile
 
Subject : RE: Setups in RT
Posted : 1/18/2022 12:57 PM
Post #31856 - In reply to #31854

Hi Jim

Thank you very much for that and a very quick reply
Top Man
Cheers Kelvin



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