NexusFi: Find Your Edge


Home Menu

 





Color bar based on alert condition(IF)


Discussion in Sierra Chart

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




 
Search this Thread

Color bar based on alert condition(IF)

  #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: 531

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?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
14 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 thanks
  #2 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603

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: 531



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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts