help with sierra custom study, color bar based on condition - futures io
futures io



help with sierra custom study, color bar based on condition


Discussion in Sierra Chart

Updated
    1. trending_up 573 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

help with sierra custom study, color bar based on condition

(login for full post details)
  #1 (permalink)
 rmiller863 
Lake wales FL/ USA
 
Experience: Intermediate
Platform: TOS ,Tradestation, Sierra
Trading: Futures
 
Posts: 40 since Jul 2013
Thanks: 9 given, 2 received

Id like to make a custom study on Sierra charts. Using the color bar based on alert condition, a study that would plot a point if the current candle opens outside the range of open and close of the previous candle? High or low wouldn't matter, as long as its not opening in the body of previous candle?

thank you

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Does the Rithmic bridge connect in plugin mode?
Sierra Chart
Trading platform with volume profile and delta for free?
Platforms and Indicators
PowerLanguage: change bars types, size and number of min …
MultiCharts
Indicator from a HTF on a LTF chart
NinjaTrader
Needing harmonic patterns indicator
TradeStation
 
Best Threads (Most Thanked)
in the last 7 days on futures io
How much do you know about Bitcoin?
113 thanks
I finally blew up an account
44 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
38 thanks
Big Mike in Ecuador
27 thanks
The tiyfTradePlanFactory indicator
23 thanks
 
(login for full post details)
  #2 (permalink)
 tomgilb 
Nashville TN USA
 
Experience: Advanced
Platform: SierraChart
Broker: Sierra Futures/SC Denali
Trading: NQ ES YM
 
Posts: 433 since Nov 2009
Thanks: 169 given, 538 received

Try this:
=OR(AND(C[-1]>O[-1],O>C[-1]),AND(C[-1]<O[-1],O<C[-1]))

You can learn to do this yourself:

With Simple Alert syntax, the OHLC of a bar is:
Open = O
High= H
Low= L
Close=C

Previous bars are located with a [-1] suffix:
previous Open = O[-1]
previous High= H[-1]
previous Low= L[-1]
previous Close=C[-1]

OR and AND functions are opened and closed with parentheses ().

The Close of a [previous] candle is at one side of the candle body, either at the upper or lower.
If it is at the upper, then: C[-1]>O[-1] and the current open must be greater than the previous close: O>C[-1]
If it is at the lower, then: C[-1]<O[-1] and the current open must be less than the previous close: O<C[-1]

Since either can happen, they are combined with OR.

To make it visually easier, you can use spaces to separate sections:
=OR( AND( C[-1]>O[-1], O>C[-1] ), AND( C[-1]<O[-1], O<C[-1] ) )

Reply With Quote
The following 4 users say Thank You to tomgilb for this post:
 
(login for full post details)
  #3 (permalink)
 rmiller863 
Lake wales FL/ USA
 
Experience: Intermediate
Platform: TOS ,Tradestation, Sierra
Trading: Futures
 
Posts: 40 since Jul 2013
Thanks: 9 given, 2 received


Thanks, just what I was looking for.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators Sierra Chart > help with sierra custom study, color bar based on condition


Last Updated on June 24, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

NEW BlackBird Features + FOREX Support w/Jeremy Tang @ SharkIndicators

Elite only
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

June
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts