How to use ACS buttons to turn a study on/off - Sierra Chart Programming | futures io social day trading
futures io futures trading


How to use ACS buttons to turn a study on/off
Updated: Views / Replies:806 / 4
Created: by hendrikus Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

How to use ACS buttons to turn a study on/off

  #1 (permalink)
Trading Apprentice
Alkmaar Netherlands
 
Futures Experience: Intermediate
Platform: Sierra Chart
Favorite Futures: CL ES 6E
 
Posts: 3 since Dec 2010
Thanks: 0 given, 1 received

How to use ACS buttons to turn a study on/off

Hi,

wouldl ike to see if anyone can help me out on the following issue. I am looking to use the ACS buttons in SC in order to turn on a certain study. The following code does not seem to work.
Does anybody have another way of doing this?

Thanks in advance,

FHV

 
Code
SCInputRef Enabled = sc.Input[0]; 
 
 
// wait for an event 
  if (sc.MenuEventID != 0) 
  { 
    if (sc.MenuEventID == SC_ACS_TOOL1) 
    { 
        Enabled.SetYesNo(1); 
    } 
  } 
  else 
  { 
    Enabled.SetYesNo(0); 
  } 
 
  if (!Enabled.GetYesNo()) 
    return; 
 
/// the rest of my study

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Trading Apprentice
Alkmaar Netherlands
 
Futures Experience: Intermediate
Platform: Sierra Chart
Favorite Futures: CL ES 6E
 
Posts: 3 since Dec 2010
Thanks: 0 given, 1 received


Figured it out how to do this. Its a nice feature to toggle between strategies. Hope somebody can use it as well.

Goodluck.

FHV

 
Code
if (sc.MenuEventID != 0)  

  {  

    if (sc.MenuEventID == SC_ACS_TOOL1)  

    {  

      if (sc.MouseEventType == SC_ACS_TOOL_ON) 

      { 

        Enabled.SetYesNo(1);  

      } 

      else if (sc.MouseEventType == SC_ACS_TOOL_OFF) 

      { 

        Enabled.SetYesNo(0); 

      } 

    } 

  }   

 

  if (!Enabled.GetYesNo()) 

           return; 

 

// rest of the study 

 

// place an order with brackets when completed 

//.... 

// acs button to off 

  sc.SetACSToolEnable(SC_ACS_TOOL1, false); 

  Enabled.SetYesNo(0);

Reply With Quote
The following 3 users say Thank You to hendrikus for this post:
 
  #4 (permalink)
Elite Member
Alesia E.U.
 
Futures Experience: Intermediate
Platform: Sierra chart
Favorite Futures: Futures
 
Posts: 166 since Feb 2011
Thanks: 139 given, 110 received

Hi
take a look here :

Advanced Custom Study Interaction With Menus, ToolBar Buttons, Mouse Pointer Events - Sierra Chart

sc.ReceiveMousePointerEvents = 1;

i did 2 buttons , LONG & SHORT , they work only with attached charts

Reply With Quote
 
  #5 (permalink)
Elite Member
Boston MA/ USA
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: ZB,YM,NQ
 
Posts: 1 since Apr 2016
Thanks: 3 given, 0 received


crazybears View Post
Hi
take a look here :

Advanced Custom Study Interaction With Menus, ToolBar Buttons, Mouse Pointer Events - Sierra Chart

sc.ReceiveMousePointerEvents = 1;

i did 2 buttons , LONG & SHORT , they work only with attached charts


Hello..
Maybe it's 4 years to late, but would you please share the long/short on/off code.
I'm new to SC/programing and any help will be appreciated
TK

Reply With Quote

Reply



futures io > > > > > How to use ACS buttons to turn a study on/off

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
 

Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Hide/Show studies" Buttons Study slickiam Sierra Chart 9 January 7th, 2014 10:15 AM
Color bar study always outputting 0 to spreadsheet study vegasfoster Sierra Chart 2 January 3rd, 2013 12:30 PM
Laguerre ACS? Joseph689 NinjaTrader 4 December 8th, 2012 04:03 PM
Toolbar Buttons tony2604 NinjaTrader Programming 2 July 21st, 2012 05:57 PM


All times are GMT -4. The time now is 08:11 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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
Page generated 2018-10-14 in 0.11 seconds with 15 queries on phoenix