Please help with with Logic/ Bar Alert - futures io
futures io futures trading



Please help with with Logic/ Bar Alert


Discussion in Sierra Chart

Updated
    1. trending_up 1,028 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 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
 

Please help with with Logic/ Bar Alert

(login for full post details)
  #1 (permalink)
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
 
WilleeMac's Avatar
 
Posts: 687 since Jan 2012
Thanks: 309 given, 613 received

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

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(169 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
 
Posts: 168 since Feb 2011
Thanks: 146 given, 112 received

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
 
(login for full post details)
  #3 (permalink)
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
 
WilleeMac's Avatar
 
Posts: 687 since Jan 2012
Thanks: 309 given, 613 received


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
 
(login for full post details)
  #4 (permalink)
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
 
Posts: 168 since Feb 2011
Thanks: 146 given, 112 received

Hi William

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

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
 
WilleeMac's Avatar
 
Posts: 687 since Jan 2012
Thanks: 309 given, 613 received

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
 
(login for full post details)
  #6 (permalink)
Alesia E.U.
 
Experience: Intermediate
Platform: Sierra chart
Trading: Futures
 
Posts: 168 since Feb 2011
Thanks: 146 given, 112 received

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

Reply With Quote
 
(login for full post details)
  #7 (permalink)
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
 
WilleeMac's Avatar
 
Posts: 687 since Jan 2012
Thanks: 309 given, 613 received

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
 
(login for full post details)
  #8 (permalink)
Prospect, KY. USA
 
Experience: None
Platform: Sierra Chart
Broker: Infinity
Trading: /CL
 
WilleeMac's Avatar
 
Posts: 687 since Jan 2012
Thanks: 309 given, 613 received


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


futures io Trading Community Platforms and Indicators Sierra Chart > Please help with with Logic/ Bar Alert


Last Updated on August 26, 2015


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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