Auxiliary functions Error - Sierra Chart Programming | futures io social day trading
futures io futures trading


Auxiliary functions Error
Updated: Views / Replies:404 / 1
Created: by goun 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 90,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
 

Auxiliary functions Error

  #1 (permalink)
Trading Apprentice
Lisboa
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 5 since Jul 2014
Thanks: 0 given, 1 received

Auxiliary functions Error

Hello everyone, recently i i have been trying to fix this error:

Failed to get the Advanced Custom Study function address for scsf_MyFunction in Win32Project1.dll. Error: Windows error code 127: The specified procedure could not be found. | 2014-12-12 12:20:32 *

Im working on the ADXVMA study to keep a record of a particular instance and i just added two simple auxiliary functions.

 
Code
int ObtainMax(SCStudyInterfaceRef sc, SCFloatArrayRef A, int n){ 
  float Max = 0; 
  for (int i = 0; i < n; i++){ 
    if (A[i] > Max){ 
      Max = A[i]; 
    } 
  } 
  SCString Buffer; 
  Buffer.Format("Max = %f", Max); 
  sc.AddMessageToLog(Buffer, 0); 
 
  return Max; 
 
} 
 
void Shift(SCStudyInterfaceRef sc, SCFloatArrayRef Array, int tam){ 
 
  for (int i = 0; i < (tam - 1); i++){ 
    Array[i] = Array[i + 1]; 
  } 
  Array[tam - 1] = 0; 
}

I've also tryied to log the results but doesn't log.


The modified part of the ADXVMA:

 
Code
SCString Buffer; 
  Buffer.Format("Log M HERE"); 
 
  ADXVMA[i] = ma[i]; 
 
  if (ADXVMA[i] > ADXVMA[i - 1]){ 
 
    sc.Subgraph[0].DataColor[i] = sc.Input[2].GetColor(); 
 
    if (sc.Subgraph[0].DataColor[i - 1] == sc.Input[3].GetColor()){ 
      Cont++; 
    } 
 
    if (Cont == sc.Input[5].GetInt()){ 
      if (ADXVMA[i] >= ObtainMax(sc, Array, sc.Input[5].GetInt())){ 
        sc.Subgraph[0].DataColor[i] = CYAN; 
        Cont = 0; 
        sc.AddMessageToLog(Buffer, 0); 
      } 
      else { 
        Shift(sc, Array, sc.Input[5].GetInt()); 
 
        Cont--; 
      } 
    } 
  } 
  else if (ADXVMA[i] < ADXVMA[i - 1]){ 
 
    sc.Subgraph[0].DataColor[i] = sc.Input[4].GetColor(); 
 
    if (sc.Subgraph[0].DataColor[i - 1] == sc.Input[3].GetColor()){ 
      Cont++; 
    } 
 
    if (Cont == sc.Input[5].GetInt()){ 
      if (ADXVMA[i] >= ObtainMax(sc, Array, sc.Input[5].GetInt())){ 
     
        sc.Subgraph[0].DataColor[i] = CYAN; 
        Cont = 0; 
        sc.AddMessageToLog(Buffer, 0); 
      } 
      else { 
        Shift(sc, Array, sc.Input[5].GetInt()); 
 
        Cont--; 
      } 
    } 
  } 
  else if (ADXVMA[i] == ADXVMA[i - 1]){ 
    Array[Cont] = ADXVMA[i]; 
    sc.Subgraph[0].DataColor[i] = sc.Input[3].GetColor(); 
    if (ADXVMA[i] > Max){ 
      Max = ADXVMA[i]; 
    } 
  }

The variables Array and Price are declared this way:

 
Code
 
  SCFloatArrayRef Array = sc.Subgraph[0].Arrays[1]; 
 
  SCFloatArrayRef Price = sc.BaseDataIn[sc.Input[0].GetInputDataIndex()];
I would like to see any example or get any advice on how to work with any kind of auxiliary functions. I think that the variables aren't getting any value.

Any help would be appreciated!

Thxanks,

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.


Reply



futures io > > > > > Auxiliary functions Error

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
NT Indicator that would give me colors between 2 functions? tracy NinjaTrader 2 March 18th, 2014 01:20 PM
EUR/USD price decimal in functions LetmeInNow TradeStation 2 May 8th, 2013 01:49 AM
Help changing from MT4 to NT7 (Functions and testing) dream3r NinjaTrader 4 November 8th, 2012 04:00 AM
System Optimization Fitness Functions fluxsmith NinjaTrader Programming 27 April 29th, 2011 07:52 PM
Music + neuronal functions max-td Traders Hideout 0 October 12th, 2009 10:04 AM


All times are GMT -4. The time now is 01:54 AM.

Copyright © 2017 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 2017-12-13 in 0.07 seconds with 19 queries on phoenix via your IP 54.92.201.232