NexusFi: Find Your Edge


Home Menu

 





Color bar based on alert condition(IF)


Discussion in Sierra Chart

Updated
    1. trending_up 2,132 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?
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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