NexusFi: Find Your Edge


Home Menu

 





Color bar based on alert condition(IF)


Discussion in Sierra Chart

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




 
Search this Thread
  #1 (permalink)
 
Neo1's Avatar
 Neo1 
Christchurch, New Zealand
 
Experience: Beginner
Platform: SC
Broker: IB, BC, Dx Feed
Trading: US Equities
Posts: 428 since Jul 2014
Thanks Given: 471
Thanks Received: 535

I currently have a color bar based alert setup that paints a bar using
=CROSSFROMBELOW(ID7.SG1, ID1.SG5)

I would like to add another condition in so the alert only paints the bar IF price exceeds the highs of the prior 3 bars before crossing back below CROSSFROMABOVE(ID7.SG1, ID1.SG5)

Any help would be appreciated.

Cheers


"Free markets work because they allow people to be lucky, thanks to aggressive trial and error, not by giving rewards or incentives for skill. The strategy is, then, to tinker as much as possible and try to collect as many Black Swan opportunities as you can"
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: EdgeClear, FCM:Phillip, Data:Denali, Routing:Teton
Trading: YM RTY ES NQ
Posts: 480 since Nov 2009
Thanks Given: 222
Thanks Received: 608

If you want to 'store' the crossover event until/if price exceeds the previous 3 highs, you'll need to use a spreadsheet study, as this exceeds the capability of Simple Alerts.

If the crossover occurs concurrently with price exceeding the previous 3 highs, you could use this:
=AND(CROSSFROMBELOW(ID7.SG1, ID1.SG5),C>MAX(H[-1],H[-2],H[-3]))


Reply With Quote
Thanked by:
  #3 (permalink)
 
Neo1's Avatar
 Neo1 
Christchurch, New Zealand
 
Experience: Beginner
Platform: SC
Broker: IB, BC, Dx Feed
Trading: US Equities
Posts: 428 since Jul 2014
Thanks Given: 471
Thanks Received: 535



tomgilb View Post
If you want to 'store' the crossover event until/if price exceeds the previous 3 highs, you'll need to use a spreadsheet study, as this exceeds the capability of Simple Alerts.

If the crossover occurs concurrently with price exceeding the previous 3 highs, you could use this:
=AND(CROSSFROMBELOW(ID7.SG1, ID1.SG5),C>MAX(H[-1],H[-2],H[-3]))

Thanks Tom, I thought that might be the case. Occurring concurrently is still useful though, so really appreciate that.

Aside from what's provided on the SC website, is there any other good resources for learning how to use the spreadsheet studies? I'm not familiar with them at all.


"Free markets work because they allow people to be lucky, thanks to aggressive trial and error, not by giving rewards or incentives for skill. The strategy is, then, to tinker as much as possible and try to collect as many Black Swan opportunities as you can"
Started this thread Reply With Quote




Last Updated on June 23, 2015


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts