NexusFi: Find Your Edge


Home Menu

 





Please help with with Logic/ Bar Alert


Discussion in Sierra Chart

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




 
Search this Thread

Please help with with Logic/ Bar Alert

  #1 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617

I'm using "color bar based on alert condition."

Numbers Bars Calculated Values

NBCV is ID 5 and SG 37 is selling COT (in a nutshell) specifically it is "high pullback ask volume and bid volume difference." SG 38 is buying COT.

I'm using the following logic for selling (SG37) =and((ABS(ID5.SG37))>8*(ABS(ID5.SG38))) and this for buying =and((ABS(ID5.SG38))>8*(ABS(ID5.SG37)))

The logic works fine with the following exception

If SG37 or SG38 is zero it returns a positive or meets criteria and colors bar ie SG37 is zero(0) and SG38 is nine(9.) If not a zero the logic works as it should

Any help very much appreciated

-William


Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
ZombieSqueeze
Platforms and Indicators
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #2 (permalink)
 crazybears 
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
Posts: 168 since Feb 2011
Thanks Given: 146
Thanks Received: 115

Hi

(SG37) =and((ABS(ID5.SG37))>8*(ABS(ID5.SG38)),ID5.SG37<>0)

buying =and((ABS(ID5.SG38))>8*(ABS(ID5.SG37)),ID5.SG38<>0)

Reply With Quote
  #3 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617


Thank you for the help

For what I'm using this for ie color bar based on SG37 & 38 of the NBCV study I'm using this to eliminate having to show the NBCV study itself (takes up too much real estate on an M1 Bar chart

= abs (ID5.SG37) > abs (ID5.SG38 )*5

= abs (ID5.SG38) > abs (ID5.SG37 )*5

-William

Follow me on Twitter Started this thread Reply With Quote
  #4 (permalink)
 crazybears 
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
Posts: 168 since Feb 2011
Thanks Given: 146
Thanks Received: 115

Hi William

sorry i don't understand if you want to skip calculation when ID5.SG37 == 0 or ID5.SG38==0

Reply With Quote
  #5 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617

Thank you

I'm trading /CL

The problem is the COT data (SG37 & 38) has different thresholds of significance between 0200AM ET through 0900AM and 0900AM through the pit close. The majority of the time SG37 will be zero and 38 will have a number greater than zero, vice versa SG37 will have a negative number and 38 will be zero.

I'm still dialing this in. I have set the multiplier to as high as 20X but 20 times zero is obviously zero.

Are you versed/ skilled in SC syntax? I can pick away at it, more of a hack. I don't have access to spreadsheet studies through my SC platform

-William

Follow me on Twitter Started this thread Reply With Quote
  #6 (permalink)
 crazybears 
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
Posts: 168 since Feb 2011
Thanks Given: 146
Thanks Received: 115

i'm not so skilled but i can try .
can you explain what do you want to calc?

Reply With Quote
  #7 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617

I'm good for now, I was curious

I think I'm going to have to go with using numbers bars in conjunction with my M1 standard deviation bars I started in another thread

Thank you

-William

Follow me on Twitter Started this thread Reply With Quote
  #8 (permalink)
 
WilleeMac's Avatar
 WilleeMac 
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
Posts: 687 since Jan 2012
Thanks Given: 309
Thanks Received: 617


crazybears View Post
i'm not so skilled but i can try .
can you explain what do you want to calc?

I am such a dumbass

I finally dug into your code, thank you

Sometimes I'm not worth shooting

Works perfect



-William

Follow me on Twitter Started this thread Reply With Quote




Last Updated on August 26, 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