[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Help with keying static variables


  • Date: Wed, 10 Mar 2010 14:54:54 -0500
  • From: Herman <psytek@xxxxxxxx>
  • Subject: Re: [amibroker] Help with keying static variables

PureBytes Links

Trading Reference Links

Title: Re: [amibroker] Help with keying static variables


If the SVKey is shared between several programs you can get this type of thing.

make sure you use a unique key for each chart.

herman





Thanks Herman,
 
I've isolated it to another variable, unrelated to your code. The system failed to send an order to IBController due to the number of shares variable doing something stupid. 
 
My whole system is going awry today. It's sending orders when the buy signal is not triggered. Very wierd. And it's sending multple orders, even though there is a valid OrderID and a valid "if OrderID == "".
 
Very strange indeed!
 
Adrian
 


 
On Wed, Mar 10, 2010 at 8:10 PM, Herman <psytek@xxxxxxxx> wrote:
  
Looks like SVKey is undefined, try adding _trace("SVKey: "+SVKey);
to see what value it has.

herman






I have been using Hermans excellent info on keying static variables, found here:
 
http://www.amibroker.org/userkb/2007/04/21/using-a-static-variable-key/
 
However, I started a new DB today, and now the code is failing on me. I keep getting the error:
 
Stock Breakout2 
global SVKey; 
lnlndicator= Status(’Action”) == 1; 
if( Inindicator) StaticVarSetText(Sname+SVKey, Svalue) 

ErrorS. 
Argument #2 has incorrect type (the function expects different argument type here) Use ‘Edit Formula’ to correct error 

Any ideas on what might be the issue here? 
 
Thanks,
 
Adrian

 







__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___